I am creating customRouter,but it shows error in in definition #2884
-
Beta Was this translation helpful? Give feedback.
Answered by
kumilingus
Feb 19, 2025
Replies: 1 comment 1 reply
-
You should use the routerNamespace paper option to define a new routers. new dia.Paper({
/* ... */
routerNamespace: {
...routers,
myRouter: function() { /* ... */ }
}
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rajveekadchha
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should use the routerNamespace paper option to define a new routers.