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
The overall size of the all examples decreases:
- use `BaseGraph` to control the default styles that are registered
- use `EdgeMarker` instead of the duplicated implementation in the example
In addition:
- use the `CellEditorHandler` plugin that was missing in the list of declared plugins.
- remove ts-ignore that are no longer generated when calling the maxGraph API
* Create a custom implementation to not load all default built-in styles. This is because Graph registers them.
84
-
*
85
-
* In the future, we expect to have an implementation of Graph that does not do it.
86
-
* See https://github.com/maxGraph/maxGraph/issues/760
21
+
* Custom implementation of {@link BaseGraph} that only register the built-in styles required by the example.
87
22
*/
88
-
classCustomGraphextendsGraph{
23
+
classCustomGraphextendsBaseGraph{
89
24
/**
90
25
* Only registers the elements required for this example. Do not let Graph load all default built-in styles.
91
26
*/
92
27
protectedoverrideregisterDefaults(){
93
28
// Register builtin shapes
94
29
// RectangleShape is not registered here because it is always available. It is the fallback shape for vertices when no shape is returned by the registry
95
-
// TODO remove ts-ignore when maxGraph 0.18.0 is released
0 commit comments