Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Mostly offline java caching diagrams

Mike Kamermans edited this page Aug 5, 2015 · 2 revisions

The following page operations were switched from from "routed through api.wmo for every operation" to a queued modification system, where all modifications are aggregated and then communicated all at once to api.wmo when the page view is left to return to the project view:

  1. element creation
  2. element deletion
  3. element modification en-place (translation, rotation, zoom)
  4. element modification by using the "edit" functionality
  5. link element modification by using the "set destination" button

The diagrams of how things work, with java-caching and bulk-save when leaving "page" for "project:

page-01

Updates via the element editor follow the same "track change, only save as part of pre-leave-bulk-call" concept, but getting the data into, and out of, the element editor is a little more work:

page-2

Updates via tinker mode call save on the element before changing view to Tinker mode, so tinker mode simply checks java for data in the edited-element cache bin, and puts data back as edit-element (these correspond to what element.jsx and page.jsx use, too):

d2

Updates to the link button destination can occur in two different ways, one initiated via the link editor, the other via the "set destination" button while in page view:

destination