dcim-topology2d 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. package/activity-diagram/src/final/final.d.ts +1 -1
  2. package/activity-diagram/src/final/final.rect.d.ts +1 -1
  3. package/activity-diagram/src/final/final.rect.js +1 -1
  4. package/activity-diagram/src/fork/fork.anchor.d.ts +1 -1
  5. package/activity-diagram/src/fork/fork.anchor.js +1 -1
  6. package/activity-diagram/src/fork/fork.d.ts +1 -1
  7. package/activity-diagram/src/fork/fork.rect.d.ts +1 -1
  8. package/activity-diagram/src/fork/fork.rect.js +1 -1
  9. package/activity-diagram/src/register.js +1 -1
  10. package/activity-diagram/src/swimlaneH/swimlaneH.d.ts +1 -1
  11. package/activity-diagram/src/swimlaneH/swimlaneH.rect.d.ts +1 -1
  12. package/activity-diagram/src/swimlaneH/swimlaneH.rect.js +1 -1
  13. package/activity-diagram/src/swimlaneV/swimlaneV.d.ts +1 -1
  14. package/activity-diagram/src/swimlaneV/swimlaneV.rect.d.ts +1 -1
  15. package/activity-diagram/src/swimlaneV/swimlaneV.rect.js +1 -1
  16. package/chart-diagram/src/echarts/index.d.ts +1 -1
  17. package/chart-diagram/src/echarts/index.js +1 -1
  18. package/chart-diagram/src/register.js +1 -1
  19. package/class-diagram/src/class/class.d.ts +1 -1
  20. package/class-diagram/src/class/class.rect.d.ts +1 -1
  21. package/class-diagram/src/class/class.rect.js +1 -1
  22. package/class-diagram/src/register.js +1 -1
  23. package/core/src/poll.js +0 -2
  24. package/core/src/utils/dom.d.ts +1 -3
  25. package/core/src/utils/dom.js +1 -1
  26. package/flow-diagram/src/comment/comment.anchor.d.ts +1 -1
  27. package/flow-diagram/src/comment/comment.anchor.js +1 -1
  28. package/flow-diagram/src/comment/comment.d.ts +1 -1
  29. package/flow-diagram/src/data/data.anchor.d.ts +1 -1
  30. package/flow-diagram/src/data/data.anchor.js +1 -1
  31. package/flow-diagram/src/data/data.d.ts +1 -1
  32. package/flow-diagram/src/data/data.rect.d.ts +1 -1
  33. package/flow-diagram/src/data/data.rect.js +1 -1
  34. package/flow-diagram/src/db/db.d.ts +1 -1
  35. package/flow-diagram/src/db/db.rect.d.ts +1 -1
  36. package/flow-diagram/src/db/db.rect.js +1 -1
  37. package/flow-diagram/src/display/display.anchor.d.ts +1 -1
  38. package/flow-diagram/src/display/display.anchor.js +1 -1
  39. package/flow-diagram/src/display/display.d.ts +1 -1
  40. package/flow-diagram/src/display/display.rect.d.ts +1 -1
  41. package/flow-diagram/src/display/display.rect.js +1 -1
  42. package/flow-diagram/src/document/document.anchor.d.ts +1 -1
  43. package/flow-diagram/src/document/document.anchor.js +1 -1
  44. package/flow-diagram/src/document/document.d.ts +1 -1
  45. package/flow-diagram/src/document/document.rect.d.ts +1 -1
  46. package/flow-diagram/src/document/document.rect.js +1 -1
  47. package/flow-diagram/src/externStorage/externStorage.anchor.d.ts +1 -1
  48. package/flow-diagram/src/externStorage/externStorage.anchor.js +1 -1
  49. package/flow-diagram/src/externStorage/externStorage.d.ts +1 -1
  50. package/flow-diagram/src/externStorage/externStorage.rect.d.ts +1 -1
  51. package/flow-diagram/src/externStorage/externStorage.rect.js +1 -1
  52. package/flow-diagram/src/internalStorage/internalStorage.d.ts +1 -1
  53. package/flow-diagram/src/internalStorage/internalStorage.rect.d.ts +1 -1
  54. package/flow-diagram/src/internalStorage/internalStorage.rect.js +1 -1
  55. package/flow-diagram/src/manually/manually.anchor.d.ts +1 -1
  56. package/flow-diagram/src/manually/manually.anchor.js +1 -1
  57. package/flow-diagram/src/manually/manually.d.ts +1 -1
  58. package/flow-diagram/src/manually/manually.rect.d.ts +1 -1
  59. package/flow-diagram/src/manually/manually.rect.js +1 -1
  60. package/flow-diagram/src/parallel/parallel.anchor.d.ts +1 -1
  61. package/flow-diagram/src/parallel/parallel.anchor.js +1 -1
  62. package/flow-diagram/src/parallel/parallel.d.ts +1 -1
  63. package/flow-diagram/src/queue/queue.d.ts +1 -1
  64. package/flow-diagram/src/queue/queue.rect.d.ts +1 -1
  65. package/flow-diagram/src/queue/queue.rect.js +1 -1
  66. package/flow-diagram/src/register.js +1 -1
  67. package/flow-diagram/src/subprocess/subprocess.d.ts +1 -1
  68. package/flow-diagram/src/subprocess/subprocess.rect.d.ts +1 -1
  69. package/flow-diagram/src/subprocess/subprocess.rect.js +1 -1
  70. package/layout/src/align.d.ts +1 -1
  71. package/layout/src/align.js +1 -1
  72. package/layout/src/layout.d.ts +1 -1
  73. package/layout/src/layout.js +1 -1
  74. package/myShape-diagram/myShape.js +1 -1
  75. package/package.json +1 -1
  76. package/sequence-diagram/src/focus/focus.anchor.d.ts +1 -1
  77. package/sequence-diagram/src/focus/focus.anchor.js +1 -1
  78. package/sequence-diagram/src/focus/focus.d.ts +1 -1
  79. package/sequence-diagram/src/focus/focus.rect.d.ts +1 -1
  80. package/sequence-diagram/src/focus/focus.rect.js +1 -1
  81. package/sequence-diagram/src/lifeline/lifeline.anchor.d.ts +1 -1
  82. package/sequence-diagram/src/lifeline/lifeline.anchor.js +1 -1
  83. package/sequence-diagram/src/lifeline/lifeline.d.ts +1 -1
  84. package/sequence-diagram/src/lifeline/lifeline.rect.d.ts +1 -1
  85. package/sequence-diagram/src/lifeline/lifeline.rect.js +1 -1
  86. package/sequence-diagram/src/register.js +1 -1
@@ -1,2 +1,2 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function activityFinal(ctx: CanvasRenderingContext2D, node: Node): void;
@@ -1,3 +1,3 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function activityFinalIconRect(node: Node): void;
3
3
  export declare function activityFinalTextRect(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Rect } from 'dcim-topology/core';
1
+ import { Rect } from '../../../core';
2
2
  export function activityFinalIconRect(node) {
3
3
  node.iconRect = new Rect(0, 0, 0, 0);
4
4
  }
@@ -1,3 +1,3 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function forkHAnchors(node: Node): void;
3
3
  export declare function forkVAnchors(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Point, Direction } from 'dcim-topology/core';
1
+ import { Point, Direction } from '../../../core';
2
2
  export function forkHAnchors(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.ex, node.rect.y + node.rect.height / 2, Direction.Right));
@@ -1,2 +1,2 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function fork(ctx: CanvasRenderingContext2D, node: Node): void;
@@ -1,3 +1,3 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function forkIconRect(node: Node): void;
3
3
  export declare function forkTextRect(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Rect } from 'dcim-topology/core';
1
+ import { Rect } from '../../../core';
2
2
  export function forkIconRect(node) {
3
3
  node.iconRect = new Rect(0, 0, 0, 0);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { registerNode } from 'dcim-topology/core';
1
+ import { registerNode } from '../../core';
2
2
  import { activityFinal, activityFinalIconRect, activityFinalTextRect } from './final';
3
3
  import { fork, forkHAnchors, forkVAnchors, forkIconRect, forkTextRect } from './fork';
4
4
  import { swimlaneH, swimlaneHIconRect, swimlaneHTextRect } from './swimlaneH';
@@ -1,2 +1,2 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function swimlaneH(ctx: CanvasRenderingContext2D, node: Node): void;
@@ -1,3 +1,3 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function swimlaneHIconRect(node: Node): void;
3
3
  export declare function swimlaneHTextRect(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Rect } from 'dcim-topology/core';
1
+ import { Rect } from '../../../core';
2
2
  export function swimlaneHIconRect(node) {
3
3
  node.iconRect = new Rect(0, 0, 0, 0);
4
4
  }
@@ -1,2 +1,2 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function swimlaneV(ctx: CanvasRenderingContext2D, node: Node): void;
@@ -1,3 +1,3 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function swimlaneVIconRect(node: Node): void;
3
3
  export declare function swimlaneVTextRect(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Rect } from 'dcim-topology/core';
1
+ import { Rect } from '../../../core';
2
2
  export function swimlaneVIconRect(node) {
3
3
  node.iconRect = new Rect(0, 0, 0, 0);
4
4
  }
@@ -1,4 +1,4 @@
1
1
  // @ts-ignore
2
- import { Node } from 'dcim-topology/core';
2
+ import { Node } from '../../../core';
3
3
  export declare const echartsData: any;
4
4
  export declare function echarts(ctx: CanvasRenderingContext2D, node: Node): void;
@@ -1,4 +1,4 @@
1
- import { s8, createDiv, rectangle } from 'dcim-topology/core';
1
+ import { s8, createDiv, rectangle } from '../../../core';
2
2
  export let echartsData = {};
3
3
  export function echarts(ctx, node) {
4
4
  //console.log('echarts绘制-----node', node);
@@ -1,4 +1,4 @@
1
- import { registerNode, loadJS } from 'dcim-topology/core';
1
+ import { registerNode, loadJS } from '../../core';
2
2
  import { echarts, echartsData } from './echarts';
3
3
  import './echarts/echarts.min.js';
4
4
  export function register(_echarts) {
@@ -1,3 +1,3 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function simpleClass(ctx: CanvasRenderingContext2D, node: Node): void;
3
3
  export declare function interfaceClass(ctx: CanvasRenderingContext2D, node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function simpleClassIconRect(node: Node): void;
3
3
  export declare function simpleClassTextRect(node: Node): void;
4
4
  export declare function interfaceClassIconRect(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Rect } from 'dcim-topology/core';
1
+ import { Rect } from '../../../core';
2
2
  export function simpleClassIconRect(node) {
3
3
  node.iconRect = new Rect(0, 0, 0, 0);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { registerNode } from 'dcim-topology/core';
1
+ import { registerNode } from '../../core';
2
2
  import { simpleClass, simpleClassIconRect, simpleClassTextRect, interfaceClass, interfaceClassIconRect, interfaceClassTextRect } from './class';
3
3
  export function register() {
4
4
  registerNode('simpleClass', simpleClass, null, simpleClassIconRect, simpleClassTextRect);
package/core/src/poll.js CHANGED
@@ -1,5 +1,3 @@
1
- import { EventType } from 'dcim-topology/core/src/models';
2
-
3
1
  // 轮询
4
2
  var POLL = /** @class */ (function () {
5
3
  function POLL(data, message, val) {
@@ -1,6 +1,4 @@
1
- import { Node } from '../models/node';
2
- // @ts-ignore
3
- import { TopologyData } from 'dcim-topology/core'
1
+ import { Node, TopologyData } from '../models';
4
2
  export declare let DomElements: {};
5
3
  export declare function createChildrenDivByElementId(node: Node, data?: TopologyData): HTMLDivElement;
6
4
  export declare function setStyleForElementIdDiv(node: Node, elem: HTMLElement, data: TopologyData): void;
@@ -1,5 +1,5 @@
1
1
  import { Store } from 'le5le-store';
2
- import { Lock } from 'dcim-topology/core/src/models/status'
2
+ import { Lock } from '../models'
3
3
  export let DomElements = {};
4
4
  export function createChildrenDivByElementId(node, data) {
5
5
  if (!DomElements[node.id]) {
@@ -1,2 +1,2 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowCommentAnchors(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Point, Direction } from 'dcim-topology/core';
1
+ import { Point, Direction } from '../../../core';
2
2
  export function flowCommentAnchors(node) {
3
3
  node.anchors.push(new Point(node.rect.x, node.rect.y + node.rect.height / 2, Direction.Left));
4
4
  }
@@ -1,2 +1,2 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowComment(ctx: CanvasRenderingContext2D, node: Node): void;
@@ -1,2 +1,2 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowDataAnchors(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Point, Direction } from 'dcim-topology/core';
1
+ import { Point, Direction } from '../../../core';
2
2
  export function flowDataAnchors(node) {
3
3
  node.anchors.push(new Point(node.rect.x + node.rect.width / 14, node.rect.y + node.rect.height / 2, Direction.Left));
4
4
  node.anchors.push(new Point(node.rect.x + (node.rect.width * 4) / 7, node.rect.y, Direction.Up));
@@ -1,2 +1,2 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowData(ctx: CanvasRenderingContext2D, node: Node): void;
@@ -1,3 +1,3 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowDataIconRect(node: Node): void;
3
3
  export declare function flowDataTextRect(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Rect } from 'dcim-topology/core';
1
+ import { Rect } from '../../../core';
2
2
  export function flowDataIconRect(node) {
3
3
  node.iconRect = new Rect(0, 0, 0, 0);
4
4
  }
@@ -1,2 +1,2 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowDb(ctx: CanvasRenderingContext2D, node: Node): void;
@@ -1,4 +1,4 @@
1
1
  // @ts-ignore
2
- import { Node } from 'dcim-topology/core';
2
+ import { Node } from '../../../core';
3
3
  export declare function flowDbIconRect(node: Node): void;
4
4
  export declare function flowDbTextRect(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Rect } from 'dcim-topology/core';
1
+ import { Rect } from '../../../core';
2
2
  export function flowDbIconRect(node) {
3
3
  node.iconRect = new Rect(0, 0, 0, 0);
4
4
  }
@@ -1,2 +1,2 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowDisplayAnchors(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Point, Direction } from 'dcim-topology/core';
1
+ import { Point, Direction } from '../../../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 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowDisplay(ctx: CanvasRenderingContext2D, node: Node): void;
@@ -1,3 +1,3 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowDisplayIconRect(node: Node): void;
3
3
  export declare function flowDisplayTextRect(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Rect } from 'dcim-topology/core';
1
+ import { Rect } from '../../../core';
2
2
  export function flowDisplayIconRect(node) {
3
3
  node.iconRect = new Rect(0, 0, 0, 0);
4
4
  }
@@ -1,2 +1,2 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowDocumentAnchors(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Point, Direction } from 'dcim-topology/core';
1
+ import { Point, Direction } from '../../../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 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowDocument(ctx: CanvasRenderingContext2D, node: Node): void;
@@ -1,3 +1,3 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowDocumentIconRect(node: Node): void;
3
3
  export declare function flowDocumentTextRect(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Rect } from 'dcim-topology/core';
1
+ import { Rect } from '../../../core';
2
2
  export function flowDocumentIconRect(node) {
3
3
  node.iconRect = new Rect(0, 0, 0, 0);
4
4
  }
@@ -1,2 +1,2 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowExternStorageAnchors(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Point, Direction } from 'dcim-topology/core';
1
+ import { Point, Direction } from '../../../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 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowExternStorage(ctx: CanvasRenderingContext2D, node: Node): void;
@@ -1,3 +1,3 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowExternStorageIconRect(node: Node): void;
3
3
  export declare function flowExternStorageTextRect(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Rect } from 'dcim-topology/core';
1
+ import { Rect } from '../../../core';
2
2
  export function flowExternStorageIconRect(node) {
3
3
  node.iconRect = new Rect(0, 0, 0, 0);
4
4
  }
@@ -1,2 +1,2 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowInternalStorage(ctx: CanvasRenderingContext2D, node: Node): void;
@@ -1,3 +1,3 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowInternalStorageIconRect(node: Node): void;
3
3
  export declare function flowInternalStorageTextRect(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Rect } from 'dcim-topology/core';
1
+ import { Rect } from '../../../core';
2
2
  export function flowInternalStorageIconRect(node) {
3
3
  node.iconRect = new Rect(0, 0, 0, 0);
4
4
  }
@@ -1,2 +1,2 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowManuallyAnchors(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Point, Direction } from 'dcim-topology/core';
1
+ import { Point, Direction } from '../../../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 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowManually(ctx: CanvasRenderingContext2D, node: Node): void;
@@ -1,3 +1,3 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowManuallyIconRect(node: Node): void;
3
3
  export declare function flowManuallyTextRect(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Rect } from 'dcim-topology/core';
1
+ import { Rect } from '../../../core';
2
2
  export function flowManuallyIconRect(node) {
3
3
  node.iconRect = new Rect(0, 0, 0, 0);
4
4
  }
@@ -1,2 +1,2 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowParallelAnchors(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Point, Direction } from 'dcim-topology/core';
1
+ import { Point, Direction } from '../../../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 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowParallel(ctx: CanvasRenderingContext2D, node: Node): void;
@@ -1,2 +1,2 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowQueue(ctx: CanvasRenderingContext2D, node: Node): void;
@@ -1,3 +1,3 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowQueueIconRect(node: Node): void;
3
3
  export declare function flowQueueTextRect(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Rect } from 'dcim-topology/core';
1
+ import { Rect } from '../../../core';
2
2
  export function flowQueueIconRect(node) {
3
3
  node.iconRect = new Rect(0, 0, 0, 0);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { registerNode } from 'dcim-topology/core';
1
+ import { registerNode } from '../../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 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowSubprocess(ctx: CanvasRenderingContext2D, node: Node): void;
@@ -1,3 +1,3 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function flowSubprocessIconRect(node: Node): void;
3
3
  export declare function flowSubprocessTextRect(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Rect } from 'dcim-topology/core';
1
+ import { Rect } from '../../../core';
2
2
  export function flowSubprocessIconRect(node) {
3
3
  node.iconRect = new Rect(0, 0, 0, 0);
4
4
  }
@@ -1,3 +1,3 @@
1
- import { Pen, Rect } from 'dcim-topology/core';
1
+ import { Pen, Rect } from '../../core';
2
2
  export declare function alignNodes(pens: Pen[], rect: Rect, align: string): void;
3
3
  export declare function spaceBetween(pens: Pen[], width: number): void;
@@ -1,4 +1,4 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../core';
2
2
  export function alignNodes(pens, rect, align) {
3
3
  for (var _i = 0, pens_1 = pens; _i < pens_1.length; _i++) {
4
4
  var item = pens_1[_i];
@@ -1,4 +1,4 @@
1
- import { Pen } from 'dcim-topology/core';
1
+ import { Pen } from '../../core';
2
2
  export declare function layout(pens: Pen[], params: {
3
3
  maxWidth: number;
4
4
  nodeWidth?: number;
@@ -1,4 +1,4 @@
1
- import { PenType, getRect } from 'dcim-topology/core';
1
+ import { PenType, getRect } from '../../core';
2
2
  import { alignNodes, spaceBetween } from './align';
3
3
  export function layout(pens, params) {
4
4
  var spaceWidth = params.spaceWidth || 30;
@@ -1,5 +1,5 @@
1
1
  // 源码版写法
2
- import { registerNode } from 'dcim-topology/core'
2
+ import { registerNode } from '../core'
3
3
 
4
4
  // 组件版写法和bundle一致
5
5
  // window.Le5leTopology.registerNode
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcim-topology2d",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "main": "-",
6
6
  "scripts": {
@@ -1,2 +1,2 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function sequenceFocusAnchors(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Point, Direction } from 'dcim-topology/core';
1
+ import { Point, Direction } from '../../../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 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function sequenceFocus(ctx: CanvasRenderingContext2D, node: Node): void;
@@ -1,3 +1,3 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function sequenceFocusIconRect(node: Node): void;
3
3
  export declare function sequenceFocusTextRect(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Rect } from 'dcim-topology/core';
1
+ import { Rect } from '../../../core';
2
2
  export function sequenceFocusIconRect(node) {
3
3
  node.iconRect = new Rect(0, 0, 0, 0);
4
4
  }
@@ -1,2 +1,2 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function lifelineAnchors(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Point, Direction } from 'dcim-topology/core';
1
+ import { Point, Direction } from '../../../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 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function lifeline(ctx: CanvasRenderingContext2D, node: Node): void;
@@ -1,3 +1,3 @@
1
- import { Node } from 'dcim-topology/core';
1
+ import { Node } from '../../../core';
2
2
  export declare function lifelineIconRect(node: Node): void;
3
3
  export declare function lifelineTextRect(node: Node): void;
@@ -1,4 +1,4 @@
1
- import { Rect } from 'dcim-topology/core';
1
+ import { Rect } from '../../../core';
2
2
  export function lifelineIconRect(node) {
3
3
  node.iconRect = new Rect(0, 0, 0, 0);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { registerNode } from 'dcim-topology/core';
1
+ import { registerNode } from '../../core';
2
2
  import { lifeline, lifelineAnchors, lifelineIconRect, lifelineTextRect } from './lifeline';
3
3
  import { sequenceFocus, sequenceFocusAnchors, sequenceFocusIconRect, sequenceFocusTextRect } from './focus';
4
4
  export function register() {