@univerjs-pro/engine-shape 0.17.0 → 0.18.0-insiders.20260328-d26c36e
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/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/model/shape-model.d.ts +3 -2
- package/lib/types/perset-shape-config.d.ts +1 -1
- package/lib/types/render-engine/base-shape-context.d.ts +1 -1
- package/lib/types/render-engine/bent-connector-router-util.d.ts +1 -1
- package/lib/types/render-engine/connector-points-util.d.ts +1 -1
- package/lib/types/render-engine/line-shape-render-model.d.ts +17 -2
- package/lib/types/render-engine/point-to-shape-transform.d.ts +1 -1
- package/lib/types/render-engine/shape-render-model.d.ts +2 -2
- package/lib/types/render-engine/sketch-stroke-renderer.d.ts +79 -0
- package/lib/types/shape-enum.d.ts +15 -0
- package/lib/types/shape-type.d.ts +6 -1
- package/lib/types/shapes/accent-border-callout1-shape.d.ts +1 -1
- package/lib/types/shapes/accent-border-callout2-shape.d.ts +1 -1
- package/lib/types/shapes/accent-border-callout3-shape.d.ts +1 -1
- package/lib/types/shapes/accent-callout1-shape.d.ts +1 -1
- package/lib/types/shapes/accent-callout2-shape.d.ts +1 -1
- package/lib/types/shapes/accent-callout3-shape.d.ts +1 -1
- package/lib/types/shapes/action-button-back-previous-shape.d.ts +1 -1
- package/lib/types/shapes/action-button-beginning-shape.d.ts +1 -1
- package/lib/types/shapes/action-button-blank-shape.d.ts +1 -1
- package/lib/types/shapes/action-button-document-shape.d.ts +1 -1
- package/lib/types/shapes/action-button-end-shape.d.ts +1 -1
- package/lib/types/shapes/action-button-forward-next-shape.d.ts +1 -1
- package/lib/types/shapes/action-button-help-shape.d.ts +1 -1
- package/lib/types/shapes/action-button-home-shape.d.ts +1 -1
- package/lib/types/shapes/action-button-information-shape.d.ts +1 -1
- package/lib/types/shapes/action-button-movie-shape.d.ts +1 -1
- package/lib/types/shapes/action-button-return-shape.d.ts +1 -1
- package/lib/types/shapes/action-button-sound-shape.d.ts +1 -1
- package/lib/types/shapes/arc-shape.d.ts +1 -1
- package/lib/types/shapes/bent-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/bent-connector2-shape.d.ts +1 -1
- package/lib/types/shapes/bent-connector3-shape.d.ts +1 -1
- package/lib/types/shapes/bent-connector4-shape.d.ts +1 -1
- package/lib/types/shapes/bent-connector5-shape.d.ts +1 -1
- package/lib/types/shapes/bent-up-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/bevel-shape.d.ts +1 -1
- package/lib/types/shapes/block-arc-shape.d.ts +1 -1
- package/lib/types/shapes/border-callout1-shape.d.ts +1 -1
- package/lib/types/shapes/border-callout2-shape.d.ts +1 -1
- package/lib/types/shapes/border-callout3-shape.d.ts +1 -1
- package/lib/types/shapes/brace-pair-shape.d.ts +1 -1
- package/lib/types/shapes/bracket-pair-shape.d.ts +1 -1
- package/lib/types/shapes/callout1-shape.d.ts +1 -1
- package/lib/types/shapes/callout2-shape.d.ts +1 -1
- package/lib/types/shapes/callout3-shape.d.ts +1 -1
- package/lib/types/shapes/can-shape.d.ts +1 -1
- package/lib/types/shapes/chart-plus-shape.d.ts +1 -1
- package/lib/types/shapes/chart-star-shape.d.ts +1 -1
- package/lib/types/shapes/chart-x-shape.d.ts +1 -1
- package/lib/types/shapes/chevron-shape.d.ts +1 -1
- package/lib/types/shapes/chord-shape.d.ts +1 -1
- package/lib/types/shapes/circle-shape.d.ts +1 -1
- package/lib/types/shapes/circular-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/cloud-callout-shape.d.ts +1 -1
- package/lib/types/shapes/cloud-callout1-shape.d.ts +1 -1
- package/lib/types/shapes/cloud-shape.d.ts +1 -1
- package/lib/types/shapes/corner-shape.d.ts +1 -1
- package/lib/types/shapes/corner-tabs-shape.d.ts +1 -1
- package/lib/types/shapes/cube-shape.d.ts +1 -1
- package/lib/types/shapes/curved-connector2-shape.d.ts +1 -1
- package/lib/types/shapes/curved-connector3-shape.d.ts +1 -1
- package/lib/types/shapes/curved-connector4-shape.d.ts +1 -1
- package/lib/types/shapes/curved-connector5-shape.d.ts +1 -1
- package/lib/types/shapes/curved-down-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/curved-left-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/curved-right-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/curved-up-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/decagon-shape.d.ts +1 -1
- package/lib/types/shapes/diagonal-stripe-shape.d.ts +1 -1
- package/lib/types/shapes/diamond-shape.d.ts +1 -1
- package/lib/types/shapes/dodecagon-shape.d.ts +1 -1
- package/lib/types/shapes/donut-shape.d.ts +1 -1
- package/lib/types/shapes/double-wave-shape.d.ts +1 -1
- package/lib/types/shapes/down-arrow-callout-shape.d.ts +1 -1
- package/lib/types/shapes/down-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/ellipse-ribbon-shape.d.ts +1 -1
- package/lib/types/shapes/ellipse-ribbon2-shape.d.ts +1 -1
- package/lib/types/shapes/ellipse-shape.d.ts +1 -1
- package/lib/types/shapes/flow-chart-offline-storage-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-alternate-process-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-collate-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-connector-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-data-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-decision-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-delay-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-display-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-document-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-extract-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-internal-storage-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-magnetic-disk-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-magnetic-drum-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-magnetic-tape-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-manual-input-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-manual-operation-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-merge-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-multidocument-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-offpage-connector-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-online-storage-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-or-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-predefined-process-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-preparation-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-process-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-punched-card-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-punched-tape-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-sort-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-summing-junction-shape.d.ts +1 -1
- package/lib/types/shapes/flowchart-terminator-shape.d.ts +1 -1
- package/lib/types/shapes/folded-corner-shape.d.ts +1 -1
- package/lib/types/shapes/frame-shape.d.ts +1 -1
- package/lib/types/shapes/frame2-shape.d.ts +1 -1
- package/lib/types/shapes/funnel-shape.d.ts +1 -1
- package/lib/types/shapes/gear6-shape.d.ts +1 -1
- package/lib/types/shapes/gear9-shape.d.ts +1 -1
- package/lib/types/shapes/half-frame-shape.d.ts +1 -1
- package/lib/types/shapes/heart-shape.d.ts +1 -1
- package/lib/types/shapes/heptagon-shape.d.ts +1 -1
- package/lib/types/shapes/hexagon-shape.d.ts +1 -1
- package/lib/types/shapes/home-plate-shape.d.ts +1 -1
- package/lib/types/shapes/horizontal-scroll-shape.d.ts +1 -1
- package/lib/types/shapes/index.d.ts +1 -1
- package/lib/types/shapes/irregular-seal1-shape.d.ts +1 -1
- package/lib/types/shapes/irregular-seal2-shape.d.ts +1 -1
- package/lib/types/shapes/left-arrow-callout-shape.d.ts +1 -1
- package/lib/types/shapes/left-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/left-brace-shape.d.ts +1 -1
- package/lib/types/shapes/left-bracket-shape.d.ts +1 -1
- package/lib/types/shapes/left-circular-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/left-right-arrow-callout-shape.d.ts +1 -1
- package/lib/types/shapes/left-right-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/left-right-circular-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/left-right-ribbon-shape.d.ts +1 -1
- package/lib/types/shapes/left-right-up-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/left-up-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/lightning-bolt-shape.d.ts +1 -1
- package/lib/types/shapes/line-lnv-shape.d.ts +1 -1
- package/lib/types/shapes/line-shape.d.ts +1 -1
- package/lib/types/shapes/math-divide-shape.d.ts +1 -1
- package/lib/types/shapes/math-equal-shape.d.ts +1 -1
- package/lib/types/shapes/math-minus-shape.d.ts +1 -1
- package/lib/types/shapes/math-multiply-shape.d.ts +1 -1
- package/lib/types/shapes/math-not-equal-shape.d.ts +1 -1
- package/lib/types/shapes/math-plus-shape.d.ts +1 -1
- package/lib/types/shapes/moon-shape.d.ts +1 -1
- package/lib/types/shapes/no-smoking-shape.d.ts +1 -1
- package/lib/types/shapes/non-isosceles-trapezoid.d.ts +1 -1
- package/lib/types/shapes/notched-right-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/octagon-shape.d.ts +1 -1
- package/lib/types/shapes/oval-callout1-shape.d.ts +1 -1
- package/lib/types/shapes/parallelogram-shape.d.ts +1 -1
- package/lib/types/shapes/pentagon-shape.d.ts +1 -1
- package/lib/types/shapes/pie-shape.d.ts +1 -1
- package/lib/types/shapes/pie-wedge-shape.d.ts +1 -1
- package/lib/types/shapes/plaque-shape.d.ts +1 -1
- package/lib/types/shapes/plaque-tabs-shape.d.ts +1 -1
- package/lib/types/shapes/plus-shape.d.ts +1 -1
- package/lib/types/shapes/quad-arrow-callout-shape.d.ts +1 -1
- package/lib/types/shapes/quad-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/rectangle-callout1-shape.d.ts +1 -1
- package/lib/types/shapes/rectangle-shape.d.ts +1 -1
- package/lib/types/shapes/ribbon-shape.d.ts +1 -1
- package/lib/types/shapes/ribbon2-shape.d.ts +1 -1
- package/lib/types/shapes/right-arrow-callout-shape.d.ts +1 -1
- package/lib/types/shapes/right-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/right-brace-shape.d.ts +1 -1
- package/lib/types/shapes/right-bracket-shape.d.ts +1 -1
- package/lib/types/shapes/right-triangle-shape.d.ts +1 -1
- package/lib/types/shapes/round-rectangle-shape.d.ts +1 -1
- package/lib/types/shapes/round-rectangle1-shape.d.ts +1 -1
- package/lib/types/shapes/round-rectangle2-diagonal-shape.d.ts +1 -1
- package/lib/types/shapes/round-rectangle2-shape.d.ts +1 -1
- package/lib/types/shapes/rounded-rectangular-callout1-shape.d.ts +1 -1
- package/lib/types/shapes/smiley-face-shape.d.ts +1 -1
- package/lib/types/shapes/snip-rectangle1-shape.d.ts +1 -1
- package/lib/types/shapes/snip-rectangle2-diagonal-shape.d.ts +1 -1
- package/lib/types/shapes/snip-rectangle2-same-shape.d.ts +1 -1
- package/lib/types/shapes/snip-round-rectangle1-shape.d.ts +1 -1
- package/lib/types/shapes/square-tabs-shape.d.ts +1 -1
- package/lib/types/shapes/star10-shape.d.ts +1 -1
- package/lib/types/shapes/star12-shape.d.ts +1 -1
- package/lib/types/shapes/star16-shape.d.ts +1 -1
- package/lib/types/shapes/star24-shape.d.ts +1 -1
- package/lib/types/shapes/star32-shape.d.ts +1 -1
- package/lib/types/shapes/star4-shape.d.ts +1 -1
- package/lib/types/shapes/star5-shape.d.ts +1 -1
- package/lib/types/shapes/star6-shape.d.ts +1 -1
- package/lib/types/shapes/star7-shape.d.ts +1 -1
- package/lib/types/shapes/star8-shape.d.ts +1 -1
- package/lib/types/shapes/straight-connector1-shape.d.ts +1 -1
- package/lib/types/shapes/striped-right-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/sun-shape.d.ts +1 -1
- package/lib/types/shapes/swoosh-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/teardrop-shape.d.ts +1 -1
- package/lib/types/shapes/text-box-shape.d.ts +1 -1
- package/lib/types/shapes/trapezoid-shape.d.ts +1 -1
- package/lib/types/shapes/triangle-shape.d.ts +1 -1
- package/lib/types/shapes/up-arrow-callout-shape.d.ts +1 -1
- package/lib/types/shapes/up-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/up-down-arrow-callout-shape.d.ts +1 -1
- package/lib/types/shapes/up-down-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/uturn-arrow-shape.d.ts +1 -1
- package/lib/types/shapes/vertical-scroll-shape.d.ts +1 -1
- package/lib/types/shapes/wave-shape.d.ts +1 -1
- package/lib/types/shapes/wedge-ellipse-callout-shape.d.ts +1 -1
- package/lib/types/shapes/wedge-rect-callout-shape.d.ts +1 -1
- package/lib/types/shapes/wedge-round-rect-callout-shape.d.ts +1 -1
- package/lib/types/util/connector-points-util.d.ts +1 -1
- package/lib/types/util/connector-transform.d.ts +1 -1
- package/lib/types/util/shape-util.d.ts +1 -0
- package/lib/umd/index.js +1 -1
- package/package.json +9 -8
package/lib/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { BasicShapeModel as ShapeModel } from '../src/model/shape-model';
|
|
2
2
|
export { LineShapeRenderModel } from '../src/render-engine/line-shape-render-model';
|
|
3
3
|
export { BaseShapeRenderModel } from '../src/render-engine/shape-render-model';
|
|
4
|
-
export { BasicShapeEnum, ShapeArrowSizeEnum, ShapeArrowTypeEnum, ShapeFillEnum, ShapeGradientTypeEnum, ShapeLineCapEnum, ShapeLineDashEnum, ShapeLineJoinEnum, ShapeLineTypeEnum, ShapeOperatorEnum, ShapeRenderModeEnum, ShapeTypeEnum } from '../src/shape-enum';
|
|
4
|
+
export { BasicShapeEnum, ShapeArrowSizeEnum, ShapeArrowTypeEnum, ShapeFillEnum, ShapeGradientTypeEnum, ShapeLineCapEnum, ShapeLineDashEnum, ShapeLineJoinEnum, ShapeLineTypeEnum, ShapeOperatorEnum, ShapeRenderModeEnum, ShapeSketchTypeEnum, ShapeTypeEnum } from '../src/shape-enum';
|
|
5
5
|
export type { IConnectorLayoutResult, IConnectorRouteLayoutResult, IConnectPointInfo, ICustomShapeTextData, ICxnShapeData, IDrawingRect, IGdContext, IGdContextBase, ILineType, IPathCommand, IPresetShapeConfig, IShapeAdjustItem, IShapeAdjustItemResolved, IShapeContextOptions, IBasicShapeData as IShapeData, IShapeHitTestResult, IShapeJSONData, IShapeLineStyle, IShapeModel, IShapePath, IShapePoint, IShapePointWithAdjName, IShapeRect, IShapeRelation, IShapeRelationItem, IShapeRenderParameters, IShapeText, ShapeAdjustHandleTypeEnum, ShapeHitTestHitTypeEnum, } from '../src/shape-type';
|
|
6
6
|
export { AccentBorderCallout1Shape } from '../src/shapes/accent-border-callout1-shape';
|
|
7
7
|
export { AccentBorderCallout2Shape } from '../src/shapes/accent-border-callout2-shape';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ShapeTypeEnum
|
|
2
|
-
import { IBasicShapeData, ICustomShapeTextData, IGdContext, IPresetShapeConfig, IShapeAdjustItemResolved, IShapeContextOptions, IShapeJSONData, IShapeModel, IShapePoint, IShapePointWithAdjName, IShapeRect, IShapeRelation, IShapeRelationItem, IShapeRenderParameters, IShapeText } from '../shape-type';
|
|
1
|
+
import type { ShapeTypeEnum } from '../shape-enum';
|
|
2
|
+
import type { IBasicShapeData, ICustomShapeTextData, IGdContext, IPresetShapeConfig, IShapeAdjustItemResolved, IShapeContextOptions, IShapeJSONData, IShapeModel, IShapePoint, IShapePointWithAdjName, IShapeRect, IShapeRelation, IShapeRelationItem, IShapeRenderParameters, IShapeText } from '../shape-type';
|
|
3
|
+
import { BasicShapeEnum } from '../shape-enum';
|
|
3
4
|
export declare function deepMerge<T extends Record<string, any>>(target: T, ...sources: Partial<T>[]): T;
|
|
4
5
|
export declare class BasicShapeModel implements IShapeModel {
|
|
5
6
|
protected _shapeType: ShapeTypeEnum;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IPresetShapeConfigMap } from './shape-type';
|
|
1
|
+
import type { IPresetShapeConfigMap } from './shape-type';
|
|
2
2
|
export declare const PresetShapeConfig: IPresetShapeConfigMap;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IBasicShapeData, IGdContext, IPresetShapeConfig, IShapeContextOptions } from '../shape-type';
|
|
1
|
+
import type { IBasicShapeData, IGdContext, IPresetShapeConfig, IShapeContextOptions } from '../shape-type';
|
|
2
2
|
export declare class BaseShapeContext {
|
|
3
3
|
private _gdRecord;
|
|
4
4
|
getGdRecord(): Partial<IGdContext>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IBentConnectorResult, IShapePoint, IShapeRect } from '../shape-type';
|
|
1
|
+
import type { IBentConnectorResult, IShapePoint, IShapeRect } from '../shape-type';
|
|
2
2
|
import { ShapeDirectionEnum } from '../shape-enum';
|
|
3
3
|
/**
|
|
4
4
|
* Route a free-free bent connector line (Excel-like behavior).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IConnectorRouteLayoutResult, IConnectPointInfo, ILineType, IShapePoint, IShapeRect } from '../shape-type';
|
|
1
|
+
import type { IConnectorRouteLayoutResult, IConnectPointInfo, ILineType, IShapePoint, IShapeRect } from '../shape-type';
|
|
2
2
|
export declare const BENT_CONNECTOR_HANDLE_OFFSET = 40;
|
|
3
3
|
export declare function routeConnectorLineShape(startInfo: IConnectPointInfo, endInfo: IConnectPointInfo, lineType: ILineType): IShapePoint[];
|
|
4
4
|
/**
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { IShapeData, IShapePoint, IShapeRect, IShapeRenderParameters } from '../shape-type';
|
|
17
|
+
import type { BaseShapeContext } from './base-shape-context';
|
|
3
18
|
import { BaseShapeRenderModel } from './shape-render-model';
|
|
4
19
|
/**
|
|
5
20
|
* Base class for line-type shapes (connectors, lines).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IGdContext, IGdContextKey, IPresetShapeConfig, IShapeData, IShapeGdContextKeyPoint, IShapeHitTestResult, IShapeRect, IShapeRenderParameters } from '../shape-type';
|
|
2
|
-
import { BaseShapeContext } from './base-shape-context';
|
|
1
|
+
import type { IGdContext, IGdContextKey, IPresetShapeConfig, IShapeData, IShapeGdContextKeyPoint, IShapeHitTestResult, IShapeRect, IShapeRenderParameters } from '../shape-type';
|
|
2
|
+
import type { BaseShapeContext } from './base-shape-context';
|
|
3
3
|
export declare abstract class BaseShapeRenderModel {
|
|
4
4
|
protected _isLineShape: boolean;
|
|
5
5
|
abstract readonly name: string;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ShapeSketchTypeEnum } from '../shape-enum';
|
|
2
|
+
/**
|
|
3
|
+
* Resolved (numeric) path command after gd evaluation and scaling.
|
|
4
|
+
* Used by SketchStrokeRenderer to draw sketch-style strokes.
|
|
5
|
+
*/
|
|
6
|
+
export type IResolvedPathCommand = {
|
|
7
|
+
cmd: 'M';
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
} | {
|
|
11
|
+
cmd: 'L';
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
} | {
|
|
15
|
+
cmd: 'C';
|
|
16
|
+
cp1x: number;
|
|
17
|
+
cp1y: number;
|
|
18
|
+
cp2x: number;
|
|
19
|
+
cp2y: number;
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
} | {
|
|
23
|
+
cmd: 'Q';
|
|
24
|
+
cpx: number;
|
|
25
|
+
cpy: number;
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
} | {
|
|
29
|
+
cmd: 'A';
|
|
30
|
+
centerX: number;
|
|
31
|
+
centerY: number;
|
|
32
|
+
wR: number;
|
|
33
|
+
hR: number;
|
|
34
|
+
startAngle: number;
|
|
35
|
+
endAngle: number;
|
|
36
|
+
anticlockwise: boolean;
|
|
37
|
+
} | {
|
|
38
|
+
cmd: 'z';
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Renders shape stroke with a hand-drawn / sketch visual effect.
|
|
42
|
+
*
|
|
43
|
+
* All sketch-related rendering logic lives here. The caller is responsible
|
|
44
|
+
* for setting strokeStyle, lineWidth, lineDash, lineJoin, lineCap on the
|
|
45
|
+
* canvas context *before* calling render().
|
|
46
|
+
*/
|
|
47
|
+
export declare class SketchStrokeRenderer {
|
|
48
|
+
/**
|
|
49
|
+
* Build and stroke a sketch-style path on `ctx`.
|
|
50
|
+
*
|
|
51
|
+
* @param ctx Canvas rendering context (strokeStyle etc. should already be configured)
|
|
52
|
+
* @param commands The resolved (numeric) path commands that describe the original shape outline
|
|
53
|
+
* @param sketchType Which sketch mode to apply
|
|
54
|
+
* @param seed Integer seed for the seeded RNG – same seed produces identical output
|
|
55
|
+
*/
|
|
56
|
+
static render(ctx: CanvasRenderingContext2D, commands: IResolvedPathCommand[], sketchType: ShapeSketchTypeEnum, seed: number): void;
|
|
57
|
+
private static _renderPass;
|
|
58
|
+
/**
|
|
59
|
+
* Draw a sketchy straight line from (x0,y0) to (x1,y1).
|
|
60
|
+
*
|
|
61
|
+
* The line is split into sub-segments. Each interior split point is
|
|
62
|
+
* displaced perpendicularly by a seeded-random amount. The resulting
|
|
63
|
+
* noisy chain is smoothed with a chain of quadratic bezier curves so the
|
|
64
|
+
* output looks like a natural hand-drawn stroke rather than a polygon.
|
|
65
|
+
*/
|
|
66
|
+
private static _sketchLine;
|
|
67
|
+
/**
|
|
68
|
+
* Draw a sketchy cubic bezier by perturbing the control points.
|
|
69
|
+
*/
|
|
70
|
+
private static _sketchCubic;
|
|
71
|
+
/**
|
|
72
|
+
* Draw a sketchy quadratic bezier by perturbing the control point.
|
|
73
|
+
*/
|
|
74
|
+
private static _sketchQuadratic;
|
|
75
|
+
/**
|
|
76
|
+
* Draw a sketchy ellipse arc by applying slight noise to the center and radii.
|
|
77
|
+
*/
|
|
78
|
+
private static _sketchArc;
|
|
79
|
+
}
|
|
@@ -319,3 +319,18 @@ export declare enum ShapeArrowSizeEnum {
|
|
|
319
319
|
Medium = 2,
|
|
320
320
|
Large = 3
|
|
321
321
|
}
|
|
322
|
+
/**
|
|
323
|
+
* Shape sketch (hand-drawn) style enum.
|
|
324
|
+
* Controls how strongly the stroke is perturbed to look like a hand-drawn line.
|
|
325
|
+
*
|
|
326
|
+
* - None – regular vector stroke, no perturbation
|
|
327
|
+
* - Curved – very slight smooth waviness
|
|
328
|
+
* - Freehand – moderate irregular deformation
|
|
329
|
+
* - HandDrawn – heavy rough deformation rendered in two overlapping passes
|
|
330
|
+
*/
|
|
331
|
+
export declare enum ShapeSketchTypeEnum {
|
|
332
|
+
None = 0,
|
|
333
|
+
Curved = 1,
|
|
334
|
+
Freehand = 2,
|
|
335
|
+
HandDrawn = 3
|
|
336
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BasicShapeEnum, ShapeArrowSizeEnum, ShapeArrowTypeEnum, ShapeFillEnum, ShapeGradientTypeEnum, ShapeLineCapEnum, ShapeLineDashEnum, ShapeLineJoinEnum, ShapeLineTypeEnum, ShapeOperatorEnum, ShapeRenderModeEnum, ShapeTypeEnum } from './shape-enum';
|
|
1
|
+
import type { BasicShapeEnum, ShapeArrowSizeEnum, ShapeArrowTypeEnum, ShapeFillEnum, ShapeGradientTypeEnum, ShapeLineCapEnum, ShapeLineDashEnum, ShapeLineJoinEnum, ShapeLineTypeEnum, ShapeOperatorEnum, ShapeRenderModeEnum, ShapeSketchTypeEnum, ShapeTypeEnum } from './shape-enum';
|
|
2
2
|
/**
|
|
3
3
|
* GdContext 用来计算 OOXML Shape 的 Geometry Definitions (gd)
|
|
4
4
|
* 包含:
|
|
@@ -746,6 +746,7 @@ export interface IShapeRenderParameters {
|
|
|
746
746
|
flipH?: boolean;
|
|
747
747
|
flipV?: boolean;
|
|
748
748
|
angle?: number;
|
|
749
|
+
oKey: string;
|
|
749
750
|
}
|
|
750
751
|
export interface IShapeRelationItem {
|
|
751
752
|
shapeId: string;
|
|
@@ -768,6 +769,10 @@ export interface IShapeLineStyle {
|
|
|
768
769
|
capType?: ShapeLineCapEnum;
|
|
769
770
|
lineJoinType?: ShapeLineJoinEnum;
|
|
770
771
|
lineStrokeType?: ShapeLineTypeEnum;
|
|
772
|
+
/**
|
|
773
|
+
* Hand-drawn / sketch style. Defaults to `ShapeSketchTypeEnum.None`.
|
|
774
|
+
*/
|
|
775
|
+
sketchType?: ShapeSketchTypeEnum;
|
|
771
776
|
}
|
|
772
777
|
export interface IShapeModel {
|
|
773
778
|
getBasicShapeType(): BasicShapeEnum;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class AccentBorderCallout1Shape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class AccentBorderCallout2Shape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class AccentBorderCallout3Shape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class AccentCallout1Shape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class AccentCallout2Shape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class AccentCallout3Shape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class ActionButtonBackPreviousShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class ActionButtonBeginningShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class ActionButtonBlankShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class ActionButtonDocumentShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class ActionButtonEndShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class ActionButtonForwardNextShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class ActionButtonHelpShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class ActionButtonHomeShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class ActionButtonInformationShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class ActionButtonMovieShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class ActionButtonReturnShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class ActionButtonSoundShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class ArcShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class BentArrowShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig, IShapeGdContextKeyPoint } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig, IShapeGdContextKeyPoint } from '../shape-type';
|
|
2
2
|
import { LineShapeRenderModel } from '../render-engine/line-shape-render-model';
|
|
3
3
|
export declare class BentConnector2Shape extends LineShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig, IShapeGdContextKeyPoint } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig, IShapeGdContextKeyPoint } from '../shape-type';
|
|
2
2
|
import { LineShapeRenderModel } from '../render-engine/line-shape-render-model';
|
|
3
3
|
export declare class BentConnector3Shape extends LineShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig, IShapeGdContextKeyPoint } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig, IShapeGdContextKeyPoint } from '../shape-type';
|
|
2
2
|
import { LineShapeRenderModel } from '../render-engine/line-shape-render-model';
|
|
3
3
|
export declare class BentConnector4Shape extends LineShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig, IShapeGdContextKeyPoint } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig, IShapeGdContextKeyPoint } from '../shape-type';
|
|
2
2
|
import { LineShapeRenderModel } from '../render-engine/line-shape-render-model';
|
|
3
3
|
export declare class BentConnector5Shape extends LineShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class BentUpArrowShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class BevelShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class BlockArcShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class BorderCallout1Shape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class BorderCallout2Shape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class BorderCallout3Shape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class BracePairShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class BracketPairShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class Callout1Shape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class Callout2Shape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class Callout3Shape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class CanShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class ChartPlusShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class ChartStarShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class ChartXShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class ChevronShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class ChordShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class CircleShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class CircularArrowShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class CloudCalloutShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class CloudCallout1Shape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class CloudShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class CornerShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class CornerTabsShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class CubeShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig, IShapeGdContextKeyPoint } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig, IShapeGdContextKeyPoint } from '../shape-type';
|
|
2
2
|
import { LineShapeRenderModel } from '../render-engine/line-shape-render-model';
|
|
3
3
|
export declare class CurvedConnector2Shape extends LineShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig, IShapeGdContextKeyPoint } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig, IShapeGdContextKeyPoint } from '../shape-type';
|
|
2
2
|
import { LineShapeRenderModel } from '../render-engine/line-shape-render-model';
|
|
3
3
|
export declare class CurvedConnector3Shape extends LineShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig, IShapeGdContextKeyPoint } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig, IShapeGdContextKeyPoint } from '../shape-type';
|
|
2
2
|
import { LineShapeRenderModel } from '../render-engine/line-shape-render-model';
|
|
3
3
|
export declare class CurvedConnector4Shape extends LineShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig, IShapeGdContextKeyPoint } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig, IShapeGdContextKeyPoint } from '../shape-type';
|
|
2
2
|
import { LineShapeRenderModel } from '../render-engine/line-shape-render-model';
|
|
3
3
|
export declare class CurvedConnector5Shape extends LineShapeRenderModel {
|
|
4
4
|
readonly name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPresetShapeConfig } from '../shape-type';
|
|
1
|
+
import type { IPresetShapeConfig } from '../shape-type';
|
|
2
2
|
import { BaseShapeRenderModel } from '../render-engine/shape-render-model';
|
|
3
3
|
export declare class CurvedDownArrowShape extends BaseShapeRenderModel {
|
|
4
4
|
readonly name: string;
|