examples: add math example (#1461)
* examples: add math example * docs: add math example
This commit is contained in:
@@ -19,6 +19,7 @@ import { SnapToHandleApp, SnappableConnectionLine } from './connection-radius'
|
||||
import { NodeResizerApp, ResizableNode } from './node-resizer'
|
||||
import { ToolbarApp, ToolbarNode } from './node-toolbar'
|
||||
import { LayoutApp, LayoutEdge, LayoutElements, LayoutIcon, LayoutNode, useLayout, useRunProcess, useShuffle } from './layout'
|
||||
import { MathApp, MathCSS, MathElements, MathIcon, MathOperatorNode, MathResultNode, MathValueNode } from './math'
|
||||
|
||||
export const exampleImports = {
|
||||
basic: {
|
||||
@@ -140,4 +141,13 @@ export const exampleImports = {
|
||||
'@dagrejs/dagre': 'https://cdn.jsdelivr.net/npm/@dagrejs/dagre@1.1.2/+esm',
|
||||
},
|
||||
},
|
||||
math: {
|
||||
'App.vue': MathApp,
|
||||
'ValueNode.vue': MathValueNode,
|
||||
'OperatorNode.vue': MathOperatorNode,
|
||||
'ResultNode.vue': MathResultNode,
|
||||
'Icon.vue': MathIcon,
|
||||
'style.css': MathCSS,
|
||||
'initial-elements.js': MathElements,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user