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
refactor: export mxGraph objects directly instead of via mxgraph namespace (#3491)
Destructure mxGraph objects from the mxgraph factory export so internal
code imports them directly (e.g. `mxGraph`, `mxConstants`) rather than
accessing them through `mxgraph.mxGraph`, `mxgraph.mxConstants`.
This enables tree-shaking since bundlers can track individual named
imports, improves readability by removing the repetitive `mxgraph.`
prefix, and makes imports explicit about which mxGraph objects each
module actually depends on.
mxGraph is exported separately with an explicit `typeof` annotation to
work around api-extractor losing constructor type information during
.d.ts rollup, which caused TS2507 in downstream type checks.
0 commit comments