Protected_Protected Optional_Protected_OptionalcontextExtra text for contextLine
The store of a note made with addNote when it names none. Default: the first store.
The notes of the file store: saved in the viewer config, so in an exported .glb
Static Optional ReadonlyOldStatic ReadonlyPluginAll the notes, in the order of the stores, then the order they were made
Protected_Protected_Optionalprefix: stringMakes a note, at the end of the notes of its store (defaultStore when none is named)
Adds a store, and loads its notes when the plugin is in a viewer. A store with the same id is replaced.
Removes all the notes of a store
A line "[time · context · selected: names]" for a note: the time, contextProvider, the selected objects
Saves the changed stores now, instead of 600 ms after the last change, and waits for all the saves that run. A store that still loads and has changes is saved after its load; one that cannot load keeps its changes.
Optionalmeta: SerializationMetaTypeOptionalsetOptionalmeta: SerializationMetaTypeChanges the text of a note, or moves it to the end of the notes of another store
Notes Plugin
A list of notes, each kept in a store:
file: fileNotes, a serialized property, so these notes are saved in the viewer config, inside an exported .glb, and come back when the file loads;browser:localStorage(BrowserNotesStore);The plugin has no notes UI: a view shows notes and edits them with addNote, updateNote and removeNote, for example
StickyNotesUiPlugin(post-its over the canvas). ThenotesChangeevent tells the views to update. Changes are saved per store, 600 ms after the last one, and when the plugin is removed.Its UI folder (Notes) has the settings: the store of new notes, and clear the notes in the file.