You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VertexHandler.rotationEnabled has been removed as it was not possible to correctly change its value.
Use VertexHandlerConfig.rotationEnabled to configure the rotation behavior globally or override the VertexHandler.isRotationEnabled method.
For more details, see #480.
Highlights
The code in the @maxgraph/core npm package is now free from side effects.
This change improves the tree-shaking β¨.
Here are a few examples of measured decreases.
Notice that the bundlers used in these examples are not tuned, they are mainly using the default configuration. So, it is probably possible to improve the tree-shaking efficiency in these examples.
Examples in the maxGraph repository
As a reminder:
ts-example:
TypeScript application built with Vite
includes custom shapes
sizes shown are for the maxGraph chunk only which doesn't include the rest of the application
js-example:
JavaScript application built with webpack
includes model codecs
bundles the maxGraph common.css file (4.33kB unminified) within the js bundle
sizes shown are for the entire application
Example
0.11.0
0.12.0
ts-example (maxGraph chunk)
444.89 kB
444.46 kB
js-example
512.61 kB
458.7 kB
Without this change, the size of the chunk in ts-example would have been 555.24 kB.
For more details, see #484
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
β‘ This new version contains enhancements, documentation improvements and bug fixes. β‘
This release also improves the tree-shaking π, so the size of applications using
maxGraph
should therefore decrease.npm package: 0.12.0
Fixed issues: milestone 0.12.0
See also the Changelog file.
Breaking changes
VertexHandler.rotationEnabled
has been removed as it was not possible to correctly change its value.Use
VertexHandlerConfig.rotationEnabled
to configure the rotation behavior globally or override theVertexHandler.isRotationEnabled
method.For more details, see #480.
Highlights
The code in the
@maxgraph/core
npm package is now free from side effects.This change improves the tree-shaking β¨.
Here are a few examples of measured decreases.
Notice that the bundlers used in these examples are not tuned, they are mainly using the default configuration. So, it is probably possible to improve the tree-shaking efficiency in these examples.
Examples in the
maxGraph
repositoryAs a reminder:
Vite
webpack
Without this change, the size of the chunk in ts-example would have been 555.24 kB.
For more details, see #484
Examples in the https://github.com/maxGraph/maxgraph-integration-examples repository
Sizes collected from maxGraph/maxgraph-integration-examples#139.
What's Changed
π New Features
Element
parameter inModelXmlSerializer.import
by @tbouffard in feat: acceptElement
parameter inModelXmlSerializer.import
Β #471π Bug Fixes
GraphCodec
implementation by @tbouffard in fix: restore theGraphCodec
implementationΒ #434π Documentation
SnapMixin
in type definition by @tbouffard in docs: declare JSDoc ofSnapMixin
in type definitionΒ #451SwimlaneMixin
in type definition by @tbouffard in docs: declare JSDoc ofSwimlaneMixin
in type definitionΒ #452EventsMixin
in type definition by @tbouffard in docs: declare JSDoc ofEventsMixin
in type definitionΒ #453FoldingMixin
in type definition by @tbouffard in docs: declare JSDoc ofFoldingMixin
in type definitionΒ #454PageBreaksMixin
in type definition by @tbouffard in docs: declare JSDoc ofPageBreaksMixin
in type definitionΒ #455PortsMixin
in type definition by @tbouffard in docs: declare JSDoc ofPortsMixin
in type definitionΒ #456PanningMixin
in type definition by @tbouffard in docs: declare JSDoc ofPanningMixin
in type definitionΒ #457DragDropMixin
in type definition by @tbouffard in docs: declare JSDoc ofDragDropMixin
in type definitionΒ #458EdgeMixin
by @tbouffard in docs: improve JSDoc ofEdgeMixin
Β #459EditingMixin
in type definition by @tbouffard in docs: declare JSDoc ofEditingMixin
in type definitionΒ #460SelectionMixin
in type definition by @tbouffard in docs: declare JSDoc ofSelectionMixin
in type definitionΒ #461OverlaysMixin
in type definition by @tbouffard in docs: declare JSDoc ofOverlaysMixin
in type definitionΒ #463CellsMixin
in type definition by @tbouffard in docs: declare JSDoc ofCellsMixin
in type definitionΒ #464OrderMixin
in type definition by @tbouffard in docs: declare JSDoc ofOrderMixin
in type definitionΒ #465LabelMixin
in type definition by @tbouffard in docs: declare JSDoc ofLabelMixin
in type definitionΒ #466ImageMixin
in type definition by @tbouffard in docs: declare JSDoc ofImageMixin
in type definitionΒ #467ConnectionMixin
in type definition by @tbouffard in docs: declare JSDoc ofConnectionMixin
in type definitionΒ #468GroupingMixin
in type definition by @tbouffard in docs: declare JSDoc ofGroupingMixin
in type definitionΒ #469βοΈ Refactor
New Contributors
Full Changelog: v0.11.0...v0.12.0
This discussion was created from the release 0.12.0.
Beta Was this translation helpful? Give feedback.
All reactions