sp-svg-diagram 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +6 -1
- package/index.js +1 -0
- package/package.json +1 -1
- package/wasm/SVGDiagramWASM.wasm +0 -0
package/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ declare module 'sp-svg-diagram' {
|
|
|
6
6
|
const NODE_SHAPE_DOUBLE_CIRCLE: string
|
|
7
7
|
const NODE_SHAPE_RECT: string
|
|
8
8
|
const NODE_SHAPE_ELLIPSE: string
|
|
9
|
+
const NODE_SHAPE_RECORD: string
|
|
9
10
|
const EDGE_SPLINES_LINE: string
|
|
10
11
|
const EDGE_SPLINES_SPLINE: string
|
|
11
12
|
const ARROW_SHAPE_NONE: string
|
|
@@ -54,6 +55,8 @@ declare module 'sp-svg-diagram' {
|
|
|
54
55
|
static ARROW_EMPTY: string
|
|
55
56
|
setConnection(nodeFromId: string, nodeToId: string): void
|
|
56
57
|
setSplines(splines: string): void
|
|
58
|
+
setFieldFrom(fieldId: string): void
|
|
59
|
+
setFieldTo(fieldId: string): void
|
|
57
60
|
addConnectionPoint(x: number, y: number): void
|
|
58
61
|
setArrowHead(arrow?: string): void
|
|
59
62
|
setArrowTail(arrow?: string): void
|
|
@@ -64,7 +67,7 @@ declare module 'sp-svg-diagram' {
|
|
|
64
67
|
export class SVGGraph extends SVGItem {
|
|
65
68
|
constructor()
|
|
66
69
|
defaultNodeAttributes(): SVGNode
|
|
67
|
-
|
|
70
|
+
defaultEdgeAttributes(): SVGEdge
|
|
68
71
|
addNode(nodeId: string): SVGNode
|
|
69
72
|
addEdge(edgeId: string): SVGEdge
|
|
70
73
|
addSubgraph(graphId: string): SVGGraph
|
|
@@ -72,6 +75,8 @@ declare module 'sp-svg-diagram' {
|
|
|
72
75
|
|
|
73
76
|
export class SVGDiagram {
|
|
74
77
|
constructor()
|
|
78
|
+
defaultNodeAttributes(): SVGNode
|
|
79
|
+
defaultEdgeAttributes(): SVGEdge
|
|
75
80
|
setBackgroundColor(color: string): void
|
|
76
81
|
setFixedViewBox(x: number, y: number, width: number, height: number): void
|
|
77
82
|
setRotation(angle: number): void
|
package/index.js
CHANGED
|
@@ -45,6 +45,7 @@ SVGNode.SHAPE_CIRCLE = SVGDiagramWASM.NODE_SHAPE_CIRCLE;
|
|
|
45
45
|
SVGNode.SHAPE_DOUBLE_CIRCLE = SVGDiagramWASM.NODE_SHAPE_DOUBLE_CIRCLE;
|
|
46
46
|
SVGNode.SHAPE_RECT = SVGDiagramWASM.NODE_SHAPE_RECT;
|
|
47
47
|
SVGNode.SHAPE_ELLIPSE = SVGDiagramWASM.NODE_SHAPE_ELLIPSE;
|
|
48
|
+
SVGNode.SHAPE_RECORD = SVGDiagramWASM.NODE_SHAPE_RECORD;
|
|
48
49
|
|
|
49
50
|
SVGEdge.SPLINES_LINE = SVGDiagramWASM.EDGE_SPLINES_LINE;
|
|
50
51
|
SVGEdge.SPLINES_SPLINE = SVGDiagramWASM.EDGE_SPLINES_SPLINE;
|
package/package.json
CHANGED
package/wasm/SVGDiagramWASM.wasm
CHANGED
|
Binary file
|