dcim-topology2d 2.2.0 → 3.0.2
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/activity-diagram/src/final/final.d.ts +1 -1
 - package/activity-diagram/src/final/final.rect.d.ts +1 -1
 - package/activity-diagram/src/final/final.rect.js +1 -1
 - package/activity-diagram/src/fork/fork.anchor.d.ts +1 -1
 - package/activity-diagram/src/fork/fork.anchor.js +1 -1
 - package/activity-diagram/src/fork/fork.d.ts +1 -1
 - package/activity-diagram/src/fork/fork.rect.d.ts +1 -1
 - package/activity-diagram/src/fork/fork.rect.js +1 -1
 - package/activity-diagram/src/register.js +1 -1
 - package/activity-diagram/src/swimlaneH/swimlaneH.d.ts +1 -1
 - package/activity-diagram/src/swimlaneH/swimlaneH.rect.d.ts +1 -1
 - package/activity-diagram/src/swimlaneH/swimlaneH.rect.js +1 -1
 - package/activity-diagram/src/swimlaneV/swimlaneV.d.ts +1 -1
 - package/activity-diagram/src/swimlaneV/swimlaneV.rect.d.ts +1 -1
 - package/activity-diagram/src/swimlaneV/swimlaneV.rect.js +1 -1
 - package/chart-diagram/index.d.ts +1 -3
 - package/chart-diagram/index.js +1 -2
 - package/chart-diagram/src/echarts/index.d.ts +2 -1
 - package/chart-diagram/src/echarts/index.js +104 -112
 - package/chart-diagram/src/register.js +8 -9
 - package/class-diagram/src/class/class.d.ts +1 -1
 - package/class-diagram/src/class/class.rect.d.ts +1 -1
 - package/class-diagram/src/class/class.rect.js +1 -1
 - package/class-diagram/src/register.js +1 -1
 - package/core/index.d.ts +0 -2
 - package/core/index.js +0 -2
 - package/core/src/activeLayer.d.ts +10 -2
 - package/core/src/activeLayer.js +47 -42
 - package/core/src/animateLayer.d.ts +7 -3
 - package/core/src/animateLayer.js +12 -10
 - package/core/src/calling.d.ts +4 -1
 - package/core/src/calling.js +41 -43
 - package/core/src/canvas.d.ts +6 -1
 - package/core/src/canvas.js +21 -22
 - package/core/src/common.d.ts +7 -6
 - package/core/src/common.js +675 -343
 - package/core/src/core.d.ts +4 -5
 - package/core/src/core.js +385 -536
 - package/core/src/divLayer.d.ts +36 -2
 - package/core/src/divLayer.js +305 -33
 - package/core/src/healps/changeData.d.ts +2 -1
 - package/core/src/healps/changeData.js +100 -86
 - package/core/src/hoverLayer.d.ts +9 -2
 - package/core/src/hoverLayer.js +34 -31
 - package/core/src/middles/default.d.ts +3 -1
 - package/core/src/middles/default.js +51 -63
 - package/core/src/middles/index.js +2 -3
 - package/core/src/middles/nodes/arbitrarygraph.js +9 -11
 - package/core/src/middles/nodes/pentagon.rect.js +1 -1
 - package/core/src/middles/nodes/rectangle.rect.js +1 -1
 - package/core/src/models/data.d.ts +26 -0
 - package/core/src/models/data.js +77 -0
 - package/core/src/models/data.js.map +1 -0
 - package/core/src/models/index.d.ts +1 -0
 - package/core/src/models/index.js +1 -0
 - package/core/src/models/line.js +7 -7
 - package/core/src/models/node.d.ts +0 -10
 - package/core/src/models/node.js +101 -148
 - package/core/src/models/pen.js +67 -27
 - package/core/src/models/rect.js +2 -2
 - package/core/src/mqtt.d.ts +14 -0
 - package/core/src/mqtt.js +82 -0
 - package/core/src/mqtt.js.map +1 -0
 - package/core/src/offscreen.d.ts +4 -1
 - package/core/src/offscreen.js +24 -26
 - package/core/src/options.d.ts +1 -3
 - package/core/src/options.js +0 -2
 - package/core/src/poll.js +39 -0
 - package/core/src/preview.d.ts +13 -2
 - package/core/src/preview.js +43 -144
 - package/core/src/renderLayer.d.ts +9 -11
 - package/core/src/renderLayer.js +61 -60
 - package/core/src/socket.d.ts +10 -0
 - package/core/src/socket.js +51 -0
 - package/core/src/socket.js.map +1 -0
 - package/core/src/utils/canvas.js +1 -1
 - package/core/src/utils/construction.d.ts +3 -36
 - package/core/src/utils/construction.js +1 -29
 - package/core/src/utils/conversion.d.ts +0 -15
 - package/core/src/utils/conversion.js +0 -319
 - package/core/src/utils/dom.d.ts +8 -0
 - package/core/src/utils/dom.js +67 -0
 - package/core/src/utils/dom.js.map +1 -0
 - package/core/src/utils/index.d.ts +1 -2
 - package/core/src/utils/index.js +1 -2
 - package/core/src/utils/onmousevent.d.ts +0 -3
 - package/core/src/utils/onmousevent.js +10 -42
 - package/flow-diagram/src/comment/comment.anchor.d.ts +1 -1
 - package/flow-diagram/src/comment/comment.anchor.js +1 -1
 - package/flow-diagram/src/comment/comment.d.ts +1 -1
 - package/flow-diagram/src/data/data.anchor.d.ts +1 -1
 - package/flow-diagram/src/data/data.anchor.js +1 -1
 - package/flow-diagram/src/data/data.d.ts +1 -1
 - package/flow-diagram/src/data/data.rect.d.ts +1 -1
 - package/flow-diagram/src/data/data.rect.js +1 -1
 - package/flow-diagram/src/db/db.d.ts +1 -1
 - package/flow-diagram/src/db/db.rect.d.ts +1 -1
 - package/flow-diagram/src/db/db.rect.js +1 -1
 - package/flow-diagram/src/display/display.anchor.d.ts +1 -1
 - package/flow-diagram/src/display/display.anchor.js +1 -1
 - package/flow-diagram/src/display/display.d.ts +1 -1
 - package/flow-diagram/src/display/display.rect.d.ts +1 -1
 - package/flow-diagram/src/display/display.rect.js +1 -1
 - package/flow-diagram/src/document/document.anchor.d.ts +1 -1
 - package/flow-diagram/src/document/document.anchor.js +1 -1
 - package/flow-diagram/src/document/document.d.ts +1 -1
 - package/flow-diagram/src/document/document.rect.d.ts +1 -1
 - package/flow-diagram/src/document/document.rect.js +1 -1
 - package/flow-diagram/src/externStorage/externStorage.anchor.d.ts +1 -1
 - package/flow-diagram/src/externStorage/externStorage.anchor.js +1 -1
 - package/flow-diagram/src/externStorage/externStorage.d.ts +1 -1
 - package/flow-diagram/src/externStorage/externStorage.rect.d.ts +1 -1
 - package/flow-diagram/src/externStorage/externStorage.rect.js +1 -1
 - package/flow-diagram/src/internalStorage/internalStorage.d.ts +1 -1
 - package/flow-diagram/src/internalStorage/internalStorage.rect.d.ts +1 -1
 - package/flow-diagram/src/internalStorage/internalStorage.rect.js +1 -1
 - package/flow-diagram/src/manually/manually.anchor.d.ts +1 -1
 - package/flow-diagram/src/manually/manually.anchor.js +1 -1
 - package/flow-diagram/src/manually/manually.d.ts +1 -1
 - package/flow-diagram/src/manually/manually.rect.d.ts +1 -1
 - package/flow-diagram/src/manually/manually.rect.js +1 -1
 - package/flow-diagram/src/parallel/parallel.anchor.d.ts +1 -1
 - package/flow-diagram/src/parallel/parallel.anchor.js +1 -1
 - package/flow-diagram/src/parallel/parallel.d.ts +1 -1
 - package/flow-diagram/src/queue/queue.d.ts +1 -1
 - package/flow-diagram/src/queue/queue.rect.d.ts +1 -1
 - package/flow-diagram/src/queue/queue.rect.js +1 -1
 - package/flow-diagram/src/register.js +1 -1
 - package/flow-diagram/src/subprocess/subprocess.d.ts +1 -1
 - package/flow-diagram/src/subprocess/subprocess.rect.d.ts +1 -1
 - package/flow-diagram/src/subprocess/subprocess.rect.js +1 -1
 - package/layout/src/align.d.ts +1 -1
 - package/layout/src/align.js +1 -1
 - package/layout/src/layout.d.ts +1 -1
 - package/layout/src/layout.js +1 -1
 - package/myShape-diagram/{index.js → myShape.js} +1 -4
 - package/package.json +1 -1
 - package/sequence-diagram/src/focus/focus.anchor.d.ts +1 -1
 - package/sequence-diagram/src/focus/focus.anchor.js +1 -1
 - package/sequence-diagram/src/focus/focus.d.ts +1 -1
 - package/sequence-diagram/src/focus/focus.rect.d.ts +1 -1
 - package/sequence-diagram/src/focus/focus.rect.js +1 -1
 - package/sequence-diagram/src/lifeline/lifeline.anchor.d.ts +1 -1
 - package/sequence-diagram/src/lifeline/lifeline.anchor.js +1 -1
 - package/sequence-diagram/src/lifeline/lifeline.d.ts +1 -1
 - package/sequence-diagram/src/lifeline/lifeline.rect.d.ts +1 -1
 - package/sequence-diagram/src/lifeline/lifeline.rect.js +1 -1
 - package/sequence-diagram/src/register.js +1 -1
 - package/chart-diagram/src/utils/changeOptions.d.ts +0 -8
 - package/chart-diagram/src/utils/changeOptions.js +0 -267
 - package/chart-diagram/src/utils/conversion.d.ts +0 -19
 - package/chart-diagram/src/utils/conversion.js +0 -560
 - package/chart-diagram/src/utils/drawGraphic.d.ts +0 -3
 - package/chart-diagram/src/utils/drawGraphic.js +0 -97
 - package/chart-diagram/src/utils/formatter.d.ts +0 -1
 - package/chart-diagram/src/utils/formatter.js +0 -206
 - package/chart-diagram/src/utils/index.d.ts +0 -5
 - package/chart-diagram/src/utils/index.js +0 -5
 - package/chart-diagram/src/utils/render.d.ts +0 -8
 - package/chart-diagram/src/utils/render.js +0 -219
 - package/chart-diagram/src/utils/surfaceParametricConversion.d.ts +0 -3
 - package/chart-diagram/src/utils/surfaceParametricConversion.js +0 -252
 - package/core/src/element/common.d.ts +0 -6
 - package/core/src/element/common.js +0 -63
 - package/core/src/element/datePicker.d.ts +0 -3
 - package/core/src/element/datePicker.js +0 -44
 - package/core/src/element/iframe.d.ts +0 -3
 - package/core/src/element/iframe.js +0 -12
 - package/core/src/element/index.d.ts +0 -5
 - package/core/src/element/index.js +0 -6
 - package/core/src/element/select.d.ts +0 -11
 - package/core/src/element/select.js +0 -273
 - package/core/src/element/tab.d.ts +0 -1
 - package/core/src/element/tab.js +0 -20
 - package/core/src/element/time.d.ts +0 -3
 - package/core/src/element/time.js +0 -44
 - package/core/src/middles/arrows/index.d.ts +0 -4
 - package/core/src/middles/arrows/index.js +0 -5
 - package/core/src/middles/lines/index.d.ts +0 -4
 - package/core/src/middles/lines/index.js +0 -5
 - package/core/src/middles/nodes/formDatePicker.d.ts +0 -2
 - package/core/src/middles/nodes/formDatePicker.js +0 -107
 - package/core/src/middles/nodes/formoverflow.js +0 -61
 - package/core/src/middles/nodes/formselect.d.ts +0 -2
 - package/core/src/middles/nodes/formselect.js +0 -111
 - package/core/src/middles/nodes/iframe.d.ts +0 -2
 - package/core/src/middles/nodes/iframe.js +0 -29
 - package/core/src/middles/nodes/index.d.ts +0 -51
 - package/core/src/middles/nodes/index.js +0 -53
 - package/core/src/middles/nodes/switchs.d.ts +0 -2
 - package/core/src/middles/nodes/switchs.js +0 -46
 - package/core/src/middles/nodes/time.d.ts +0 -2
 - package/core/src/middles/nodes/time.js +0 -98
 - package/core/src/store/common.d.ts +0 -9
 - package/core/src/store/common.js +0 -5
 - package/core/src/store/data.d.ts +0 -196
 - package/core/src/store/data.js +0 -193
 - package/core/src/store/index.d.ts +0 -2
 - package/core/src/store/index.js +0 -2
 - package/core/src/utils/assignment.d.ts +0 -7
 - package/core/src/utils/assignment.js +0 -216
 - package/core/src/utils/params.d.ts +0 -3
 - package/core/src/utils/params.js +0 -136
 - package/static/echartsDefaultData.js +0 -178
 - package/static/element.js +0 -14
 - package/static/form.js +0 -11
 - package/static/index.js +0 -3
 - package/store/actions.js +0 -1
 - package/store/clear.js +0 -10
 - package/store/default.js +0 -22
 - package/store/index.js +0 -3
 - package/style/common.css +0 -15
 - package/style/datePicker.css +0 -44
 - package/style/editor.css +0 -16
 - package/style/index.css +0 -5
 - package/style/select.css +0 -143
 - /package/myShape-diagram/{index.ts → myShape.ts} +0 -0
 
| 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Node } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Node } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export declare function flowDb(ctx: CanvasRenderingContext2D, node: Node): void;
         
     | 
| 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Node } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Node } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export declare function flowDisplayAnchors(node: Node): void;
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Point, Direction } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Point, Direction } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export function flowDisplayAnchors(node) {
         
     | 
| 
       3 
3 
     | 
    
         
             
                node.anchors.push(new Point(node.rect.x, node.rect.y + node.rect.height / 2, Direction.Left));
         
     | 
| 
       4 
4 
     | 
    
         
             
                node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y, Direction.Up));
         
     | 
| 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Node } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Node } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export declare function flowDisplay(ctx: CanvasRenderingContext2D, node: Node): void;
         
     | 
| 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Node } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Node } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export declare function flowDocumentAnchors(node: Node): void;
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Point, Direction } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Point, Direction } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export function flowDocumentAnchors(node) {
         
     | 
| 
       3 
3 
     | 
    
         
             
                node.anchors.push(new Point(node.rect.x, node.rect.y + node.rect.height / 2, Direction.Left));
         
     | 
| 
       4 
4 
     | 
    
         
             
                node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y, Direction.Up));
         
     | 
| 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Node } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Node } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export declare function flowDocument(ctx: CanvasRenderingContext2D, node: Node): void;
         
     | 
| 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Node } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Node } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export declare function flowExternStorageAnchors(node: Node): void;
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Point, Direction } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Point, Direction } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export function flowExternStorageAnchors(node) {
         
     | 
| 
       3 
3 
     | 
    
         
             
                node.anchors.push(new Point(node.rect.x, node.rect.y + node.rect.height / 2, Direction.Left));
         
     | 
| 
       4 
4 
     | 
    
         
             
                node.anchors.push(new Point(node.rect.x + (node.rect.width * 8) / 15, node.rect.y, Direction.Up));
         
     | 
| 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Node } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Node } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export declare function flowExternStorage(ctx: CanvasRenderingContext2D, node: Node): void;
         
     | 
| 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Node } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Node } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export declare function flowInternalStorage(ctx: CanvasRenderingContext2D, node: Node): void;
         
     | 
| 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Node } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Node } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export declare function flowManuallyAnchors(node: Node): void;
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Point, Direction } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Point, Direction } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export function flowManuallyAnchors(node) {
         
     | 
| 
       3 
3 
     | 
    
         
             
                node.anchors.push(new Point(node.rect.x, node.rect.y + (node.rect.height * 5) / 8, Direction.Left));
         
     | 
| 
       4 
4 
     | 
    
         
             
                node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y + node.rect.height / 8, Direction.Up));
         
     | 
| 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Node } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Node } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export declare function flowManually(ctx: CanvasRenderingContext2D, node: Node): void;
         
     | 
| 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Node } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Node } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export declare function flowParallelAnchors(node: Node): void;
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Point, Direction } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Point, Direction } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export function flowParallelAnchors(node) {
         
     | 
| 
       3 
3 
     | 
    
         
             
                node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y, Direction.Up));
         
     | 
| 
       4 
4 
     | 
    
         
             
                node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y + node.rect.height, Direction.Bottom));
         
     | 
| 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Node } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Node } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export declare function flowParallel(ctx: CanvasRenderingContext2D, node: Node): void;
         
     | 
| 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Node } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Node } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export declare function flowQueue(ctx: CanvasRenderingContext2D, node: Node): void;
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { registerNode } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { registerNode } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            import { flowData, flowDataAnchors, flowDataIconRect, flowDataTextRect } from './data';
         
     | 
| 
       3 
3 
     | 
    
         
             
            import { flowSubprocess, flowSubprocessIconRect, flowSubprocessTextRect } from './subprocess';
         
     | 
| 
       4 
4 
     | 
    
         
             
            import { flowDb, flowDbIconRect, flowDbTextRect } from './db';
         
     | 
| 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Node } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Node } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export declare function flowSubprocess(ctx: CanvasRenderingContext2D, node: Node): void;
         
     | 
    
        package/layout/src/align.d.ts
    CHANGED
    
    
    
        package/layout/src/align.js
    CHANGED
    
    
    
        package/layout/src/layout.d.ts
    CHANGED
    
    
    
        package/layout/src/layout.js
    CHANGED
    
    
| 
         @@ -1,7 +1,5 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            // 源码版写法
         
     | 
| 
       2 
     | 
    
         
            -
            import { registerNode } from ' 
     | 
| 
       3 
     | 
    
         
            -
            import { formOverflow } from '../core/src/middles/nodes/formoverflow'
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
      
 2 
     | 
    
         
            +
            import { registerNode } from 'dcim-topology/core'
         
     | 
| 
       5 
3 
     | 
    
         | 
| 
       6 
4 
     | 
    
         
             
            // 组件版写法和bundle一致
         
     | 
| 
       7 
5 
     | 
    
         
             
            // window.Le5leTopology.registerNode
         
     | 
| 
         @@ -193,7 +191,6 @@ export function registerMyShape() { 
     | 
|
| 
       193 
191 
     | 
    
         
             
              registerNode('electricFan', electricFan);
         
     | 
| 
       194 
192 
     | 
    
         
             
              registerNode('pool', pool);
         
     | 
| 
       195 
193 
     | 
    
         
             
              registerNode('thermometer', thermometer);
         
     | 
| 
       196 
     | 
    
         
            -
              registerNode('formOverflow', formOverflow);
         
     | 
| 
       197 
194 
     | 
    
         
             
            }
         
     | 
| 
       198 
195 
     | 
    
         | 
| 
       199 
196 
     | 
    
         
             
            // src\views\data.ts 里面加载到工具栏,第一个就是此自定义图形库
         
     | 
    
        package/package.json
    CHANGED
    
    
| 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Node } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Node } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export declare function sequenceFocusAnchors(node: Node): void;
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Point, Direction } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Point, Direction } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export function sequenceFocusAnchors(node) {
         
     | 
| 
       3 
3 
     | 
    
         
             
                node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y, Direction.Up));
         
     | 
| 
       4 
4 
     | 
    
         
             
                node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.ey, Direction.Bottom));
         
     | 
| 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Node } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Node } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export declare function sequenceFocus(ctx: CanvasRenderingContext2D, node: Node): void;
         
     | 
| 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Node } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Node } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export declare function lifelineAnchors(node: Node): void;
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Point, Direction } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Point, Direction } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export function lifelineAnchors(node) {
         
     | 
| 
       3 
3 
     | 
    
         
             
                node.anchors.push(new Point(node.rect.x, node.rect.y + 25, Direction.Left));
         
     | 
| 
       4 
4 
     | 
    
         
             
                node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y, Direction.Up));
         
     | 
| 
         @@ -1,2 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { Node } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { Node } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            export declare function lifeline(ctx: CanvasRenderingContext2D, node: Node): void;
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { registerNode } from ' 
     | 
| 
      
 1 
     | 
    
         
            +
            import { registerNode } from 'dcim-topology/core';
         
     | 
| 
       2 
2 
     | 
    
         
             
            import { lifeline, lifelineAnchors, lifelineIconRect, lifelineTextRect } from './lifeline';
         
     | 
| 
       3 
3 
     | 
    
         
             
            import { sequenceFocus, sequenceFocusAnchors, sequenceFocusIconRect, sequenceFocusTextRect } from './focus';
         
     | 
| 
       4 
4 
     | 
    
         
             
            export function register() {
         
     | 
| 
         @@ -1,8 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export declare function setRingChartText<T>(textData: T): void;
         
     | 
| 
       2 
     | 
    
         
            -
            export declare function setRingPreSeriesOptions<T>(option: T, appearance: T): void;
         
     | 
| 
       3 
     | 
    
         
            -
            export declare function setRingProSeriesOptions<T>(option: T, appearance: T): void;
         
     | 
| 
       4 
     | 
    
         
            -
            export declare function set3DPieOptions<T>(option: T, appearance: T, labelLineData: any, realData: any): {};
         
     | 
| 
       5 
     | 
    
         
            -
            export declare function setChartLegendData<T>(legend: T, appearance: T): void;
         
     | 
| 
       6 
     | 
    
         
            -
            export declare function setChartXAxisData<T>(xAxis: [], appearance: T): void;
         
     | 
| 
       7 
     | 
    
         
            -
            export declare function setChartYAxisData<T>(yAxis: [], appearance: T): void;
         
     | 
| 
       8 
     | 
    
         
            -
            export declare function setLineSeriesStyleData<T>(series: [], appearance: T): void;
         
     |