Implemented new useSharedTree and useTreeNode hooks to showcase SharedTree from Fluid V2. Also added ExampleSharedTree file to sample 04. Required major changes to tsconfig for all packages.
SharedTree in LiveCanvas
Updated LiveCanvas to use SharedTree, with the following key changes:
Now using SharedTree instead of SharedMap
Developers can override the default data source with their own LiveCanvasTreeNode node if they want to share the undo/redo stack with their main TreeView and/or more easily use the stroke data in their core tree w/o initializing LiveCanvas
Supports undo/redo out of the box, assuming they aren't using the legacy SharedMap and didn't override the data source (will address #101)
Backwards compatible with DDS's created with SharedMap (though new features won't work for "1.0" legacy versions of the DDS)
useSharedTree
anduseTreeNode
Implemented new
useSharedTree
anduseTreeNode
hooks to showcaseSharedTree
from Fluid V2. Also addedExampleSharedTree
file to sample 04. Required major changes to tsconfig for all packages.SharedTree
inLiveCanvas
Updated
LiveCanvas
to useSharedTree
, with the following key changes:Fixed inking bug
Fixed #723