sp-svg-diagram 1.2.5 → 1.2.6

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.
Files changed (2) hide show
  1. package/index.d.ts +26 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,4 +1,17 @@
1
1
  declare module 'sp-svg-diagram' {
2
+
3
+ function _compareSVG(a: string, b: string): boolean
4
+ const NODE_SHAPE_NONE: string
5
+ const NODE_SHAPE_CIRCLE: string
6
+ const NODE_SHAPE_DOUBLE_CIRCLE: string
7
+ const NODE_SHAPE_RECT: string
8
+ const NODE_SHAPE_ELLIPSE: string
9
+ const EDGE_SPLINES_LINE: string
10
+ const EDGE_SPLINES_SPLINE: string
11
+ const ARROW_SHAPE_NONE: string
12
+ const ARROW_SHAPE_NORMAL: string
13
+ const ARROW_SHAPE_EMPTY: string
14
+
2
15
  export class SVGItem {
3
16
  constructor()
4
17
  setID(itemId: string): void
@@ -18,21 +31,34 @@ declare module 'sp-svg-diagram' {
18
31
  appendStyleDashed(): void
19
32
  appendStyleDotted(): void
20
33
  setGradientAngle(angle: number): void
34
+ delete(): void
21
35
  }
22
36
 
23
37
  export class SVGNode extends SVGItem {
24
38
  constructor()
39
+ static SHAPE_NONE: string
40
+ static SHAPE_CIRCLE: string
41
+ static SHAPE_DOUBLE_CIRCLE: string
42
+ static SHAPE_RECT: string
43
+ static SHAPE_ELLIPSE: string
25
44
  setCenter(cx: number, cy: number): void
26
45
  setShape(shape: string): void
27
46
  }
28
47
 
29
48
  export class SVGEdge extends SVGItem {
30
49
  constructor()
50
+ static SPLINES_LINE: string
51
+ static SPLINES_SPLINE: string
52
+ static ARROW_NONE: string
53
+ static ARROW_NORMAL: string
54
+ static ARROW_EMPTY: string
31
55
  setConnection(nodeFromId: string, nodeToId: string): void
32
56
  setSplines(splines: string): void
33
57
  addConnectionPoint(x: number, y: number): void
34
58
  setArrowHead(arrow?: string): void
35
59
  setArrowTail(arrow?: string): void
60
+ _setArrowHead(arrow: string): void
61
+ _setArrowTail(arrow: string): void
36
62
  }
37
63
 
38
64
  export class SVGGraph extends SVGItem {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sp-svg-diagram",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",