maxGraph/packages/html/stories
Thomas Bouffard 835bfe7ce9
feat: allow to load an XML-stored model produced by `mxGraph` (#300)
Implementation relies on both the declaration of aliases and the
introduction of dedicated codecs.
`Codec.getCodecByName` now takes aliases into account, so that importing
is fully functional.
The code of some `CodecRegistry` and `Codec` methods has been simplified
(check for nullity of method parameters).

The cell style is converted thanks to a specific utility function that
can serve as an example for those wishing to migrate their applications
from mxGraph to maxGraph.

test
- The `Codec` example has been restored from the stashed directory. It
is now available as a story written in TypeScript.
- The `ModelChecker` utility class was previously used only to validate
the imported model after import from the maxGraph model. It is now
shared and also used in mxGraph import tests. It has also been enhanced
to check the total number of cells in the model.
2024-01-16 11:03:56 +01:00
..
css - Convert more examples. 2021-04-24 21:32:54 +09:00
shared chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
stashed feat: allow to load an XML-stored model produced by `mxGraph` (#300) 2024-01-16 11:03:56 +01:00
Anchors.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Animation.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
AutoLayout.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Boundary.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Clipboard.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Codec.stories.ts feat: allow to load an XML-stored model produced by `mxGraph` (#300) 2024-01-16 11:03:56 +01:00
Collapse.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Constituent.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
ContextIcons.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Control.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
DragSource.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Drop.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
DynamicLoading.stories.ts fix: make the DynamicLoading story work again (#296) 2024-01-08 18:49:27 +01:00
DynamicStyle.stories.js fix: make the DynamicLoading story work again (#296) 2024-01-08 18:49:27 +01:00
DynamicToolbar.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
EdgeTolerance.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Editing.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Events.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
ExtendCanvas.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
FileIO.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
FixedIcons.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
FixedPoints.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Folding.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
GraphLayout.stories.js feat: restore remaining non-"Editor" examples to Storybook (#150) 2023-12-22 06:54:34 +01:00
Grid.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Groups.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Guides.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Handles.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
HelloPort.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
HelloWorld.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
HierarchicalLayout.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
HoverIcons.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
HoverStyle.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
HtmlLabel.stories.js feat: restore remaining non-"Editor" examples to Storybook (#150) 2023-12-22 06:54:34 +01:00
Images.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Indicators.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Introduction.mdx chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
JsonData.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
LabelPosition.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Labels.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Layers.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
LoD.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Manhattan.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Markers.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
MenuStyle.stories.js feat: restore remaining non-"Editor" examples to Storybook (#150) 2023-12-22 06:54:34 +01:00
Merge.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Monitor.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Morph.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
OffPage.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
OrgChart.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Orthogonal.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Overlays.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
PageBreaks.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Perimeter.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Permissions.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
PortRefs.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
RadialTreeLayout.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Scrollbars.stories.js feat: restore remaining non-"Editor" examples to Storybook (#150) 2023-12-22 06:54:34 +01:00
SecondLabel.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Shape.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
ShowRegion.stories.js feat: restore remaining non-"Editor" examples to Storybook (#150) 2023-12-22 06:54:34 +01:00
Stencils.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Stylesheet.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
SwimLanes.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Thread.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Toolbar.stories.ts chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Tree.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
UserObject.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Validation.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Visibility.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Window.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00
Wires.stories.js feat: restore remaining non-"Editor" examples to Storybook (#150) 2023-12-22 06:54:34 +01:00
Wrapping.stories.js chore: migrate to storybook v7 (#230) 2023-10-12 23:41:37 +02:00