@univerjs-pro/engine-shape 0.15.3-insiders.20260131-cbd5fac
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/README.md +232 -0
- package/lib/cjs/index.js +1 -0
- package/lib/es/index.js +1 -0
- package/lib/index.js +1 -0
- package/lib/types/index.d.ts +200 -0
- package/lib/types/model/group-shape-model.d.ts +0 -0
- package/lib/types/model/shape-model.d.ts +107 -0
- package/lib/types/perset-shape-config.d.ts +2 -0
- package/lib/types/render-engine/base-shape-context.d.ts +9 -0
- package/lib/types/render-engine/bent-connector-router-util.d.ts +48 -0
- package/lib/types/render-engine/connector-points-util.d.ts +44 -0
- package/lib/types/render-engine/line-shape-render-model.d.ts +135 -0
- package/lib/types/render-engine/point-to-shape-transform.d.ts +13 -0
- package/lib/types/render-engine/shape-context-operator.d.ts +19 -0
- package/lib/types/render-engine/shape-render-model.d.ts +96 -0
- package/lib/types/shape-default.d.ts +27 -0
- package/lib/types/shape-enum.d.ts +314 -0
- package/lib/types/shape-type.d.ts +836 -0
- package/lib/types/shapes/accent-border-callout1-shape.d.ts +6 -0
- package/lib/types/shapes/accent-border-callout2-shape.d.ts +6 -0
- package/lib/types/shapes/accent-border-callout3-shape.d.ts +6 -0
- package/lib/types/shapes/accent-callout1-shape.d.ts +6 -0
- package/lib/types/shapes/accent-callout2-shape.d.ts +6 -0
- package/lib/types/shapes/accent-callout3-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-back-previous-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-beginning-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-blank-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-document-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-end-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-forward-next-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-help-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-home-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-information-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-movie-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-return-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-sound-shape.d.ts +6 -0
- package/lib/types/shapes/arc-shape.d.ts +6 -0
- package/lib/types/shapes/bent-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/bent-connector2-shape.d.ts +7 -0
- package/lib/types/shapes/bent-connector3-shape.d.ts +7 -0
- package/lib/types/shapes/bent-connector4-shape.d.ts +7 -0
- package/lib/types/shapes/bent-connector5-shape.d.ts +7 -0
- package/lib/types/shapes/bent-up-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/bevel-shape.d.ts +6 -0
- package/lib/types/shapes/block-arc-shape.d.ts +6 -0
- package/lib/types/shapes/border-callout1-shape.d.ts +6 -0
- package/lib/types/shapes/border-callout2-shape.d.ts +6 -0
- package/lib/types/shapes/border-callout3-shape.d.ts +6 -0
- package/lib/types/shapes/brace-pair-shape.d.ts +6 -0
- package/lib/types/shapes/bracket-pair-shape.d.ts +6 -0
- package/lib/types/shapes/callout1-shape.d.ts +6 -0
- package/lib/types/shapes/callout2-shape.d.ts +6 -0
- package/lib/types/shapes/callout3-shape.d.ts +6 -0
- package/lib/types/shapes/can-shape.d.ts +6 -0
- package/lib/types/shapes/chart-plus-shape.d.ts +6 -0
- package/lib/types/shapes/chart-star-shape.d.ts +6 -0
- package/lib/types/shapes/chart-x-shape.d.ts +6 -0
- package/lib/types/shapes/chevron-shape.d.ts +6 -0
- package/lib/types/shapes/chord-shape.d.ts +6 -0
- package/lib/types/shapes/circle-shape.d.ts +6 -0
- package/lib/types/shapes/circular-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/cloud-callout-shape.d.ts +6 -0
- package/lib/types/shapes/cloud-callout1-shape.d.ts +6 -0
- package/lib/types/shapes/cloud-shape.d.ts +6 -0
- package/lib/types/shapes/corner-shape.d.ts +6 -0
- package/lib/types/shapes/corner-tabs-shape.d.ts +6 -0
- package/lib/types/shapes/cube-shape.d.ts +6 -0
- package/lib/types/shapes/curved-connector2-shape.d.ts +7 -0
- package/lib/types/shapes/curved-connector3-shape.d.ts +7 -0
- package/lib/types/shapes/curved-connector4-shape.d.ts +7 -0
- package/lib/types/shapes/curved-connector5-shape.d.ts +7 -0
- package/lib/types/shapes/curved-down-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/curved-left-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/curved-right-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/curved-up-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/decagon-shape.d.ts +6 -0
- package/lib/types/shapes/diagonal-stripe-shape.d.ts +6 -0
- package/lib/types/shapes/diamond-shape.d.ts +6 -0
- package/lib/types/shapes/dodecagon-shape.d.ts +6 -0
- package/lib/types/shapes/donut-shape.d.ts +6 -0
- package/lib/types/shapes/double-wave-shape.d.ts +6 -0
- package/lib/types/shapes/down-arrow-callout-shape.d.ts +6 -0
- package/lib/types/shapes/down-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/ellipse-ribbon-shape.d.ts +6 -0
- package/lib/types/shapes/ellipse-ribbon2-shape.d.ts +6 -0
- package/lib/types/shapes/ellipse-shape.d.ts +6 -0
- package/lib/types/shapes/flow-chart-offline-storage-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-alternate-process-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-collate-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-connector-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-data-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-decision-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-delay-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-display-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-document-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-extract-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-internal-storage-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-magnetic-disk-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-magnetic-drum-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-magnetic-tape-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-manual-input-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-manual-operation-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-merge-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-multidocument-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-offpage-connector-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-online-storage-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-or-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-predefined-process-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-preparation-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-process-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-punched-card-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-punched-tape-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-sort-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-summing-junction-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-terminator-shape.d.ts +6 -0
- package/lib/types/shapes/folded-corner-shape.d.ts +6 -0
- package/lib/types/shapes/frame-shape.d.ts +6 -0
- package/lib/types/shapes/frame2-shape.d.ts +6 -0
- package/lib/types/shapes/funnel-shape.d.ts +6 -0
- package/lib/types/shapes/gear6-shape.d.ts +6 -0
- package/lib/types/shapes/gear9-shape.d.ts +6 -0
- package/lib/types/shapes/half-frame-shape.d.ts +6 -0
- package/lib/types/shapes/heart-shape.d.ts +6 -0
- package/lib/types/shapes/heptagon-shape.d.ts +6 -0
- package/lib/types/shapes/hexagon-shape.d.ts +6 -0
- package/lib/types/shapes/home-plate-shape.d.ts +6 -0
- package/lib/types/shapes/horizontal-scroll-shape.d.ts +6 -0
- package/lib/types/shapes/index.d.ts +3 -0
- package/lib/types/shapes/irregular-seal1-shape.d.ts +6 -0
- package/lib/types/shapes/irregular-seal2-shape.d.ts +6 -0
- package/lib/types/shapes/left-arrow-callout-shape.d.ts +6 -0
- package/lib/types/shapes/left-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/left-brace-shape.d.ts +6 -0
- package/lib/types/shapes/left-bracket-shape.d.ts +6 -0
- package/lib/types/shapes/left-circular-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/left-right-arrow-callout-shape.d.ts +6 -0
- package/lib/types/shapes/left-right-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/left-right-circular-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/left-right-ribbon-shape.d.ts +6 -0
- package/lib/types/shapes/left-right-up-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/left-up-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/lightning-bolt-shape.d.ts +6 -0
- package/lib/types/shapes/line-lnv-shape.d.ts +6 -0
- package/lib/types/shapes/line-shape.d.ts +7 -0
- package/lib/types/shapes/math-divide-shape.d.ts +6 -0
- package/lib/types/shapes/math-equal-shape.d.ts +6 -0
- package/lib/types/shapes/math-minus-shape.d.ts +6 -0
- package/lib/types/shapes/math-multiply-shape.d.ts +6 -0
- package/lib/types/shapes/math-not-equal-shape.d.ts +6 -0
- package/lib/types/shapes/math-plus-shape.d.ts +6 -0
- package/lib/types/shapes/moon-shape.d.ts +6 -0
- package/lib/types/shapes/no-smoking-shape.d.ts +6 -0
- package/lib/types/shapes/non-isosceles-trapezoid.d.ts +6 -0
- package/lib/types/shapes/notched-right-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/octagon-shape.d.ts +6 -0
- package/lib/types/shapes/oval-callout1-shape.d.ts +6 -0
- package/lib/types/shapes/parallelogram-shape.d.ts +6 -0
- package/lib/types/shapes/pentagon-shape.d.ts +6 -0
- package/lib/types/shapes/pie-shape.d.ts +6 -0
- package/lib/types/shapes/pie-wedge-shape.d.ts +6 -0
- package/lib/types/shapes/plaque-shape.d.ts +6 -0
- package/lib/types/shapes/plaque-tabs-shape.d.ts +6 -0
- package/lib/types/shapes/plus-shape.d.ts +6 -0
- package/lib/types/shapes/quad-arrow-callout-shape.d.ts +6 -0
- package/lib/types/shapes/quad-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/rectangle-callout1-shape.d.ts +6 -0
- package/lib/types/shapes/rectangle-shape.d.ts +6 -0
- package/lib/types/shapes/ribbon-shape.d.ts +6 -0
- package/lib/types/shapes/ribbon2-shape.d.ts +6 -0
- package/lib/types/shapes/right-arrow-callout-shape.d.ts +6 -0
- package/lib/types/shapes/right-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/right-brace-shape.d.ts +6 -0
- package/lib/types/shapes/right-bracket-shape.d.ts +6 -0
- package/lib/types/shapes/right-triangle-shape.d.ts +6 -0
- package/lib/types/shapes/round-rectangle-shape.d.ts +6 -0
- package/lib/types/shapes/round-rectangle1-shape.d.ts +6 -0
- package/lib/types/shapes/round-rectangle2-diagonal-shape.d.ts +6 -0
- package/lib/types/shapes/round-rectangle2-shape.d.ts +6 -0
- package/lib/types/shapes/rounded-rectangular-callout1-shape.d.ts +6 -0
- package/lib/types/shapes/smiley-face-shape.d.ts +6 -0
- package/lib/types/shapes/snip-rectangle1-shape.d.ts +6 -0
- package/lib/types/shapes/snip-rectangle2-diagonal-shape.d.ts +6 -0
- package/lib/types/shapes/snip-rectangle2-same-shape.d.ts +6 -0
- package/lib/types/shapes/snip-round-rectangle1-shape.d.ts +6 -0
- package/lib/types/shapes/square-tabs-shape.d.ts +6 -0
- package/lib/types/shapes/star10-shape.d.ts +6 -0
- package/lib/types/shapes/star12-shape.d.ts +6 -0
- package/lib/types/shapes/star16-shape.d.ts +6 -0
- package/lib/types/shapes/star24-shape.d.ts +6 -0
- package/lib/types/shapes/star32-shape.d.ts +6 -0
- package/lib/types/shapes/star4-shape.d.ts +6 -0
- package/lib/types/shapes/star5-shape.d.ts +6 -0
- package/lib/types/shapes/star6-shape.d.ts +6 -0
- package/lib/types/shapes/star7-shape.d.ts +6 -0
- package/lib/types/shapes/star8-shape.d.ts +6 -0
- package/lib/types/shapes/straight-connector1-shape.d.ts +7 -0
- package/lib/types/shapes/striped-right-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/sun-shape.d.ts +6 -0
- package/lib/types/shapes/swoosh-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/teardrop-shape.d.ts +6 -0
- package/lib/types/shapes/text-box-shape.d.ts +6 -0
- package/lib/types/shapes/trapezoid-shape.d.ts +6 -0
- package/lib/types/shapes/triangle-shape.d.ts +6 -0
- package/lib/types/shapes/up-arrow-callout-shape.d.ts +6 -0
- package/lib/types/shapes/up-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/up-down-arrow-callout-shape.d.ts +6 -0
- package/lib/types/shapes/up-down-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/uturn-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/vertical-scroll-shape.d.ts +6 -0
- package/lib/types/shapes/wave-shape.d.ts +6 -0
- package/lib/types/shapes/wedge-ellipse-callout-shape.d.ts +6 -0
- package/lib/types/shapes/wedge-rect-callout-shape.d.ts +6 -0
- package/lib/types/shapes/wedge-round-rect-callout-shape.d.ts +6 -0
- package/lib/types/util/color-util.d.ts +12 -0
- package/lib/types/util/connector-points-util.d.ts +56 -0
- package/lib/types/util/connector-transform.d.ts +119 -0
- package/lib/types/util/shape-util.d.ts +8 -0
- package/lib/umd/index.js +1 -0
- package/package.json +65 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class RightArrowCalloutShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class RightArrowShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class RightBraceShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class RightBracketShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class RightTriangleShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class RoundRectangleShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class Round1RectShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class Round2DiagRectShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class Round2SameRectShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class RoundedRectangularCallout1Shape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class SmileyFaceShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class SnipRectangle1Shape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class SnipRectangle2DiagonalShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class SnipRectangle2SameShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class SnipRoundRectangle1Shape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class SquareTabsShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class Star10Shape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class Star12Shape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class Star16Shape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class Star24Shape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class Star32Shape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class Star4Shape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class Star5Shape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class Star6Shape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class Star7Shape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class Star8Shape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IPresetShapeConfig, IShapeGdContextKeyPoint } from '../shape-type';
|
|
2
|
+
import { LineShapeRenderModel } from '../render-engine/line-shape-render-model';
|
|
3
|
+
export declare class StraightConnector1Shape extends LineShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
getConnectorLinePoints(): IShapeGdContextKeyPoint[];
|
|
7
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class StripedRightArrowShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class SunShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class SwooshArrowShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class TeardropShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class TextBoxShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class TrapezoidShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class TriangleShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class UpArrowCalloutShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class UpArrowShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class UpDownArrowCalloutShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class UpDownArrowShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class UturnArrowShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class VerticalScrollShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class WaveShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class WedgeEllipseCalloutShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class WedgeRectCalloutShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IPresetShapeConfig } from '../shape-type';
|
|
2
|
+
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
|
+
export declare class WedgeRoundRectCalloutShape extends BaseShapeRenderModel {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly presetShapeConfig: IPresetShapeConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare class ColorUtilWithCache {
|
|
2
|
+
private _cache;
|
|
3
|
+
private _clamp;
|
|
4
|
+
private _parseHex;
|
|
5
|
+
private _parseRgbString;
|
|
6
|
+
private _parseColorString;
|
|
7
|
+
private _formatColor;
|
|
8
|
+
private _adjust;
|
|
9
|
+
getColorString(fill: string | undefined, baseColor: string, opacity?: number): string;
|
|
10
|
+
}
|
|
11
|
+
export declare const getColorUtilWithCacheInstance: () => ColorUtilWithCache;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { IShapePoint } from '../shape-type';
|
|
2
|
+
export interface IBentConnectorResult {
|
|
3
|
+
points: IShapePoint[];
|
|
4
|
+
flipH: boolean;
|
|
5
|
+
flipV: boolean;
|
|
6
|
+
rect: {
|
|
7
|
+
left: number;
|
|
8
|
+
top: number;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Route a free-free bent connector line (Excel-like behavior).
|
|
15
|
+
*
|
|
16
|
+
* 根据 Excel 的行为,对首尾都为自由点的 bent 连接线进行布点计算。
|
|
17
|
+
* 该方法不涉及自动 routing、障碍规避或连接点约束,
|
|
18
|
+
* 仅依据 start / end 构成的矩形关系生成折线路径。
|
|
19
|
+
*
|
|
20
|
+
* @deprecated For resize/drag operations, prefer using {@link ConnectorCoordinateTransform}
|
|
21
|
+
* from './connector-transform' which provides cleaner coordinate space handling.
|
|
22
|
+
* This function is still useful for initial point generation in the same coordinate space.
|
|
23
|
+
*
|
|
24
|
+
* 对于 resize/拖拽操作,建议使用 {@link ConnectorCoordinateTransform},
|
|
25
|
+
* 它提供了更清晰的坐标空间处理。本函数仍适用于同一坐标系下的初始点生成。
|
|
26
|
+
*
|
|
27
|
+
* Core rules / 核心规则:
|
|
28
|
+
*
|
|
29
|
+
* 1. Start point and end point define a local bounding rectangle.
|
|
30
|
+
* If the width (end.x - start.x) is negative, the width is stored
|
|
31
|
+
* as an absolute value and flipH is set to true.
|
|
32
|
+
* The same rule applies to height (flipV) in the vertical direction.
|
|
33
|
+
*
|
|
34
|
+
* 起点和终点共同定义一个局部矩形。
|
|
35
|
+
* 如果 end.x - start.x < 0,则使用 width = abs(width),
|
|
36
|
+
* 同时记录 flipH = true。
|
|
37
|
+
* 垂直方向同理,记录 flipV。
|
|
38
|
+
*
|
|
39
|
+
* 2. The absolute width and height determine the bend orientation.
|
|
40
|
+
* If |width| >= |height|, points are generated in
|
|
41
|
+
* horizontal-first then vertical order (H → V).
|
|
42
|
+
* Otherwise, points are generated in vertical-first
|
|
43
|
+
* then horizontal order (V → H).
|
|
44
|
+
*
|
|
45
|
+
* 通过宽高绝对值决定折线方向:
|
|
46
|
+
* - |width| >= |height|:先横后竖
|
|
47
|
+
* - |width| < |height|:先竖后横
|
|
48
|
+
*
|
|
49
|
+
* 3. The returned points are always generated in a normalized
|
|
50
|
+
* (non-flipped) coordinate space. The actual visual direction
|
|
51
|
+
* is determined by flipH / flipV.
|
|
52
|
+
*
|
|
53
|
+
* 返回的点始终基于“未翻转”的规范坐标系生成,
|
|
54
|
+
* 实际方向由 flipH / flipV 决定。
|
|
55
|
+
*/
|
|
56
|
+
export declare function freeRouteBentConnectorLinePoints(startPoint: IShapePoint, endPoint: IShapePoint): IBentConnectorResult;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { IConnectorLayoutResult, IDrawingRect, IShapePoint } from '../shape-type';
|
|
2
|
+
/**
|
|
3
|
+
* ConnectorCoordinateTransform
|
|
4
|
+
*
|
|
5
|
+
* This utility class handles coordinate transformations for connector shapes.
|
|
6
|
+
* It provides a unified way to convert between three coordinate systems:
|
|
7
|
+
*
|
|
8
|
+
* 1. **World Coordinates**: Absolute position on the canvas/scene.
|
|
9
|
+
* - Origin is at the top-left of the canvas.
|
|
10
|
+
* - These are the coordinates used for hit testing, pointer events, etc.
|
|
11
|
+
*
|
|
12
|
+
* 2. **Drawing Rect Coordinates**: Relative to the drawing's top-left corner.
|
|
13
|
+
* - The drawing rect has left, top, width, height, flipX, flipY.
|
|
14
|
+
* - When flipX=true, the X axis is reversed (right becomes left).
|
|
15
|
+
* - When flipY=true, the Y axis is reversed (bottom becomes top).
|
|
16
|
+
*
|
|
17
|
+
* 3. **Local Coordinates**: Normalized internal coordinates for the shape.
|
|
18
|
+
* - Always in range [0, width] x [0, height].
|
|
19
|
+
* - Flip is already "baked in" - the shape renders as if no flip exists.
|
|
20
|
+
* - Start point is always at (0,0) or near it in local space.
|
|
21
|
+
*
|
|
22
|
+
* The key insight is:
|
|
23
|
+
* - The shape model stores points in LOCAL coordinates (flip-agnostic).
|
|
24
|
+
* - The drawing service stores the bounding RECT in WORLD coordinates with flip flags.
|
|
25
|
+
* - When we drag endpoints, we work in WORLD coordinates and must properly
|
|
26
|
+
* compute both the new LOCAL points and the new WORLD rect (with flip).
|
|
27
|
+
*
|
|
28
|
+
* This class eliminates scattered flip calculations by providing clean APIs.
|
|
29
|
+
*/
|
|
30
|
+
export declare class ConnectorCoordinateTransform {
|
|
31
|
+
private _drawingRect;
|
|
32
|
+
constructor(drawingRect: IDrawingRect);
|
|
33
|
+
/**
|
|
34
|
+
* Get the current drawing rect.
|
|
35
|
+
*/
|
|
36
|
+
get drawingRect(): IDrawingRect;
|
|
37
|
+
/**
|
|
38
|
+
* Update the drawing rect.
|
|
39
|
+
*/
|
|
40
|
+
setDrawingRect(rect: IDrawingRect): void;
|
|
41
|
+
/**
|
|
42
|
+
* Convert a world coordinate to local coordinate.
|
|
43
|
+
*
|
|
44
|
+
* Local coordinates are always normalized (0 to width/height),
|
|
45
|
+
* with flip transformations applied.
|
|
46
|
+
*
|
|
47
|
+
* @param worldPoint Point in world coordinates
|
|
48
|
+
* @returns Point in local coordinates
|
|
49
|
+
*/
|
|
50
|
+
worldToLocal(worldPoint: IShapePoint): IShapePoint;
|
|
51
|
+
/**
|
|
52
|
+
* Convert a local coordinate to world coordinate.
|
|
53
|
+
*
|
|
54
|
+
* @param localPoint Point in local coordinates (0 to width/height)
|
|
55
|
+
* @returns Point in world coordinates
|
|
56
|
+
*/
|
|
57
|
+
localToWorld(localPoint: IShapePoint): IShapePoint;
|
|
58
|
+
/**
|
|
59
|
+
* Given the current start/end points in WORLD coordinates,
|
|
60
|
+
* compute the new drawing rect and local points.
|
|
61
|
+
*
|
|
62
|
+
* This is the core method for connector resize operations.
|
|
63
|
+
* It determines:
|
|
64
|
+
* 1. The new bounding rect (left, top, width, height)
|
|
65
|
+
* 2. Whether flip is needed (flipX, flipY)
|
|
66
|
+
* 3. The normalized local points (0 to width/height)
|
|
67
|
+
*
|
|
68
|
+
* Key insight: In Excel-like behavior, the "start" point is always
|
|
69
|
+
* considered the anchor in local coordinates. If end.x < start.x,
|
|
70
|
+
* we flip horizontally so that in local space, end.x > start.x.
|
|
71
|
+
*
|
|
72
|
+
* @param startWorld Start point in world coordinates
|
|
73
|
+
* @param endWorld End point in world coordinates
|
|
74
|
+
* @returns The layout result with local points and world rect
|
|
75
|
+
*/
|
|
76
|
+
static computeConnectorLayout(startWorld: IShapePoint, endWorld: IShapePoint): IConnectorLayoutResult;
|
|
77
|
+
/**
|
|
78
|
+
* Given a bent connector (3+ segment line), compute the layout.
|
|
79
|
+
*
|
|
80
|
+
* This generates intermediate points for an L-shaped or Z-shaped connector.
|
|
81
|
+
*
|
|
82
|
+
* @param startWorld Start point in world coordinates
|
|
83
|
+
* @param endWorld End point in world coordinates
|
|
84
|
+
* @param bendType 'horizontal-first' or 'vertical-first' or 'auto'
|
|
85
|
+
* @returns The layout result with all points and world rect
|
|
86
|
+
*/
|
|
87
|
+
static computeBentConnectorLayout(startWorld: IShapePoint, endWorld: IShapePoint, bendType?: 'horizontal-first' | 'vertical-first' | 'auto'): IConnectorLayoutResult;
|
|
88
|
+
static getBentTypeFromPoints(points: IShapePoint[]): 'horizontal-first' | 'vertical-first';
|
|
89
|
+
/**
|
|
90
|
+
* When dragging one endpoint of an existing connector,
|
|
91
|
+
* compute the new layout while keeping the other endpoint fixed.
|
|
92
|
+
*
|
|
93
|
+
* @param fixedWorld The endpoint that stays fixed (in world coordinates)
|
|
94
|
+
* @param movingWorld The endpoint being dragged (in world coordinates)
|
|
95
|
+
* @param isMovingStart Whether the moving point is the start (true) or end (false)
|
|
96
|
+
* @param bendType Bend type for bent connectors
|
|
97
|
+
* @returns The new layout
|
|
98
|
+
*/
|
|
99
|
+
static computeConnectorResizeLayout(fixedWorld: IShapePoint, movingWorld: IShapePoint, isMovingStart: boolean, bendType?: 'horizontal-first' | 'vertical-first' | 'auto'): IConnectorLayoutResult;
|
|
100
|
+
static computeStraightConnectorLayout(startWorld: IShapePoint, endWorld: IShapePoint): IConnectorLayoutResult;
|
|
101
|
+
/**
|
|
102
|
+
* Convert the local points to world coordinates for display.
|
|
103
|
+
* Useful for rendering connector handler points.
|
|
104
|
+
*
|
|
105
|
+
* @param localPoints Array of points in local coordinates
|
|
106
|
+
* @returns Array of points in world coordinates
|
|
107
|
+
*/
|
|
108
|
+
localPointsToWorld(localPoints: IShapePoint[]): IShapePoint[];
|
|
109
|
+
/**
|
|
110
|
+
* Get the start point in world coordinates.
|
|
111
|
+
* The start is always at local (0, 0).
|
|
112
|
+
*/
|
|
113
|
+
getStartPointWorld(): IShapePoint;
|
|
114
|
+
/**
|
|
115
|
+
* Get the end point in world coordinates.
|
|
116
|
+
* The end is always at local (width, height).
|
|
117
|
+
*/
|
|
118
|
+
getEndPointWorld(): IShapePoint;
|
|
119
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ShapeTypeEnum } from '../shape-enum';
|
|
2
|
+
/**
|
|
3
|
+
* Is the shape a connector shape
|
|
4
|
+
* @param {ShapeTypeEnum} shapeType The shape type
|
|
5
|
+
* @returns {boolean} True if the shape is a connector shape, false otherwise
|
|
6
|
+
*/
|
|
7
|
+
export declare function isConnectorShape(shapeType: ShapeTypeEnum): boolean;
|
|
8
|
+
export declare function isCurvedConnectorShape(shapeType: ShapeTypeEnum): boolean;
|