@yuzhouu/canvas-standard 0.1.3 → 0.1.4
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/_vendor/plugin-arrow/_vendor/canvas-core/shapes/shapeUtil.d.ts +1 -0
- package/_vendor/plugin-connector/_vendor/canvas-core/shapes/shapeUtil.d.ts +1 -0
- package/_vendor/plugin-connector/connectorInteractions.d.ts +8 -1
- package/_vendor/plugin-connector/index.d.ts +1 -0
- package/_vendor/plugin-draw/_vendor/canvas-core/shapes/shapeUtil.d.ts +1 -0
- package/_vendor/plugin-eraser/_vendor/canvas-core/shapes/shapeUtil.d.ts +1 -0
- package/_vendor/plugin-flow/_vendor/canvas-core/shapes/shapeUtil.d.ts +1 -0
- package/_vendor/plugin-flow/_vendor/plugin-connector/connectorInteractions.d.ts +8 -1
- package/_vendor/plugin-flow/_vendor/plugin-connector/index.d.ts +1 -0
- package/_vendor/plugin-flow/flowNodeShapeUtil.d.ts +1 -0
- package/_vendor/plugin-frame/_vendor/canvas-core/shapes/shapeUtil.d.ts +1 -0
- package/_vendor/plugin-geo/_vendor/canvas-core/shapes/shapeUtil.d.ts +1 -0
- package/_vendor/plugin-group/_vendor/canvas-core/shapes/shapeUtil.d.ts +1 -0
- package/_vendor/plugin-html/_vendor/canvas-core/shapes/shapeUtil.d.ts +1 -0
- package/_vendor/plugin-image/_vendor/canvas-core/shapes/shapeUtil.d.ts +1 -0
- package/_vendor/plugin-laser/_vendor/canvas-core/shapes/shapeUtil.d.ts +1 -0
- package/_vendor/plugin-path/_vendor/canvas-core/shapes/shapeUtil.d.ts +1 -0
- package/_vendor/plugin-runtime-clipboard/_vendor/canvas-core/shapes/shapeUtil.d.ts +1 -0
- package/_vendor/plugin-runtime-export/_vendor/canvas-core/shapes/shapeUtil.d.ts +1 -0
- package/_vendor/plugin-text/_vendor/canvas-core/shapes/shapeUtil.d.ts +1 -0
- package/_vendor/plugin-video/_vendor/canvas-core/shapes/shapeUtil.d.ts +1 -0
- package/index.mjs +77 -77
- package/package.json +1 -1
|
@@ -234,6 +234,7 @@ export declare abstract class ShapeUtil<S extends ShapeRecordBase = ShapeRecordB
|
|
|
234
234
|
canAutomaticallyReceiveChildren(shape: S): boolean;
|
|
235
235
|
canBeDirectlyBrushSelected(_shape: S): boolean;
|
|
236
236
|
canReceiveTerminalBinding(_shape: S, _input?: ShapeGeometryInput): boolean;
|
|
237
|
+
canUseTerminalBindingPortHandles(shape: S, input?: ShapeGeometryInput): boolean;
|
|
237
238
|
getTerminalBindingPorts(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingPort[];
|
|
238
239
|
getTerminalBindingOutlines(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingOutline[];
|
|
239
240
|
canCopyToClipboard(_shape: S, _input: ShapeClipboardCopyInput): boolean;
|
|
@@ -234,6 +234,7 @@ export declare abstract class ShapeUtil<S extends ShapeRecordBase = ShapeRecordB
|
|
|
234
234
|
canAutomaticallyReceiveChildren(shape: S): boolean;
|
|
235
235
|
canBeDirectlyBrushSelected(_shape: S): boolean;
|
|
236
236
|
canReceiveTerminalBinding(_shape: S, _input?: ShapeGeometryInput): boolean;
|
|
237
|
+
canUseTerminalBindingPortHandles(shape: S, input?: ShapeGeometryInput): boolean;
|
|
237
238
|
getTerminalBindingPorts(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingPort[];
|
|
238
239
|
getTerminalBindingOutlines(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingOutline[];
|
|
239
240
|
canCopyToClipboard(_shape: S, _input: ShapeClipboardCopyInput): boolean;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
import { type LandInteractionHandler } from "./_vendor/canvas-core/index";
|
|
1
|
+
import { Vec, type Editor, type LandInteractionHandler } from "./_vendor/canvas-core/index";
|
|
2
|
+
import { type ConnectorPortTarget } from "./quickConnect";
|
|
2
3
|
import { type ConnectorQuickCreateNodeFactory } from "./types";
|
|
4
|
+
export declare function beginConnectorPortDrag(editor: Editor, input: {
|
|
5
|
+
source: ConnectorPortTarget;
|
|
6
|
+
originScreenPoint: Vec;
|
|
7
|
+
pointerId: number;
|
|
8
|
+
onClickWithoutDrag(): void;
|
|
9
|
+
}): boolean;
|
|
3
10
|
export declare function createConnectorInteractionHandler(quickCreateNodeFactory: ConnectorQuickCreateNodeFactory): LandInteractionHandler;
|
|
@@ -14,6 +14,7 @@ export { commitConnectorCreation, createConnectorBoundEndpoint, getConnectorCrea
|
|
|
14
14
|
export type { CommitConnectorCreationInput, ConnectorBoundEndpoint, ConnectorCreationInvalidReason, ConnectorDraftEndpoint, ResolvedConnectorDraftEndpoint, } from "./connectorModel";
|
|
15
15
|
export { chooseFacingPort, chooseOpposingPort, createDefaultConnectorQuickCreateNodeFactory, findQuickConnectTargets, getBalancedConnectorBranchNodeInput, getConnectorVisualPortPoint, getNearestConnectorPortAtPoint, quickConnectFromPort, } from "./quickConnect";
|
|
16
16
|
export type { ConnectorPortTarget, ConnectorQuickConnectPlan, } from "./quickConnect";
|
|
17
|
+
export { beginConnectorPortDrag } from "./connectorInteractions";
|
|
17
18
|
export { getConnectorPortInteractionState, getVisibleConnectorSourcePortAtPoint, } from "./connectorPortInteraction";
|
|
18
19
|
export * from "./constants";
|
|
19
20
|
export type { ConnectorBindingProps, ConnectorBindingRecord, ConnectorHead, ConnectorPluginOptions, ConnectorPoint, ConnectorQuickCreateNodeFactory, ConnectorRouting, ConnectorShapeProps, ConnectorShapeRecord, ConnectorStrokeStyle, ConnectorTerminal, } from "./types";
|
|
@@ -234,6 +234,7 @@ export declare abstract class ShapeUtil<S extends ShapeRecordBase = ShapeRecordB
|
|
|
234
234
|
canAutomaticallyReceiveChildren(shape: S): boolean;
|
|
235
235
|
canBeDirectlyBrushSelected(_shape: S): boolean;
|
|
236
236
|
canReceiveTerminalBinding(_shape: S, _input?: ShapeGeometryInput): boolean;
|
|
237
|
+
canUseTerminalBindingPortHandles(shape: S, input?: ShapeGeometryInput): boolean;
|
|
237
238
|
getTerminalBindingPorts(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingPort[];
|
|
238
239
|
getTerminalBindingOutlines(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingOutline[];
|
|
239
240
|
canCopyToClipboard(_shape: S, _input: ShapeClipboardCopyInput): boolean;
|
|
@@ -234,6 +234,7 @@ export declare abstract class ShapeUtil<S extends ShapeRecordBase = ShapeRecordB
|
|
|
234
234
|
canAutomaticallyReceiveChildren(shape: S): boolean;
|
|
235
235
|
canBeDirectlyBrushSelected(_shape: S): boolean;
|
|
236
236
|
canReceiveTerminalBinding(_shape: S, _input?: ShapeGeometryInput): boolean;
|
|
237
|
+
canUseTerminalBindingPortHandles(shape: S, input?: ShapeGeometryInput): boolean;
|
|
237
238
|
getTerminalBindingPorts(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingPort[];
|
|
238
239
|
getTerminalBindingOutlines(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingOutline[];
|
|
239
240
|
canCopyToClipboard(_shape: S, _input: ShapeClipboardCopyInput): boolean;
|
|
@@ -234,6 +234,7 @@ export declare abstract class ShapeUtil<S extends ShapeRecordBase = ShapeRecordB
|
|
|
234
234
|
canAutomaticallyReceiveChildren(shape: S): boolean;
|
|
235
235
|
canBeDirectlyBrushSelected(_shape: S): boolean;
|
|
236
236
|
canReceiveTerminalBinding(_shape: S, _input?: ShapeGeometryInput): boolean;
|
|
237
|
+
canUseTerminalBindingPortHandles(shape: S, input?: ShapeGeometryInput): boolean;
|
|
237
238
|
getTerminalBindingPorts(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingPort[];
|
|
238
239
|
getTerminalBindingOutlines(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingOutline[];
|
|
239
240
|
canCopyToClipboard(_shape: S, _input: ShapeClipboardCopyInput): boolean;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
import { type LandInteractionHandler } from "../canvas-core/index";
|
|
1
|
+
import { Vec, type Editor, type LandInteractionHandler } from "../canvas-core/index";
|
|
2
|
+
import { type ConnectorPortTarget } from "./quickConnect";
|
|
2
3
|
import { type ConnectorQuickCreateNodeFactory } from "./types";
|
|
4
|
+
export declare function beginConnectorPortDrag(editor: Editor, input: {
|
|
5
|
+
source: ConnectorPortTarget;
|
|
6
|
+
originScreenPoint: Vec;
|
|
7
|
+
pointerId: number;
|
|
8
|
+
onClickWithoutDrag(): void;
|
|
9
|
+
}): boolean;
|
|
3
10
|
export declare function createConnectorInteractionHandler(quickCreateNodeFactory: ConnectorQuickCreateNodeFactory): LandInteractionHandler;
|
|
@@ -14,6 +14,7 @@ export { commitConnectorCreation, createConnectorBoundEndpoint, getConnectorCrea
|
|
|
14
14
|
export type { CommitConnectorCreationInput, ConnectorBoundEndpoint, ConnectorCreationInvalidReason, ConnectorDraftEndpoint, ResolvedConnectorDraftEndpoint, } from "./connectorModel";
|
|
15
15
|
export { chooseFacingPort, chooseOpposingPort, createDefaultConnectorQuickCreateNodeFactory, findQuickConnectTargets, getBalancedConnectorBranchNodeInput, getConnectorVisualPortPoint, getNearestConnectorPortAtPoint, quickConnectFromPort, } from "./quickConnect";
|
|
16
16
|
export type { ConnectorPortTarget, ConnectorQuickConnectPlan, } from "./quickConnect";
|
|
17
|
+
export { beginConnectorPortDrag } from "./connectorInteractions";
|
|
17
18
|
export { getConnectorPortInteractionState, getVisibleConnectorSourcePortAtPoint, } from "./connectorPortInteraction";
|
|
18
19
|
export * from "./constants";
|
|
19
20
|
export type { ConnectorBindingProps, ConnectorBindingRecord, ConnectorHead, ConnectorPluginOptions, ConnectorPoint, ConnectorQuickCreateNodeFactory, ConnectorRouting, ConnectorShapeProps, ConnectorShapeRecord, ConnectorStrokeStyle, ConnectorTerminal, } from "./types";
|
|
@@ -14,6 +14,7 @@ export declare class FlowNodeShapeUtil extends ShapeUtil<FlowNodeShapeRecord> {
|
|
|
14
14
|
hitTestBindingTarget(shape: FlowNodeShapeRecord, positionedPoint: Vec): boolean;
|
|
15
15
|
canEdit(_shape: FlowNodeShapeRecord): boolean;
|
|
16
16
|
canReceiveTerminalBinding(_shape: FlowNodeShapeRecord): boolean;
|
|
17
|
+
canUseTerminalBindingPortHandles(_shape: FlowNodeShapeRecord): boolean;
|
|
17
18
|
canReceiveChildren(_shape: FlowNodeShapeRecord): boolean;
|
|
18
19
|
canReceiveChild(_shape: FlowNodeShapeRecord, child: ShapeRecordBase): boolean;
|
|
19
20
|
canAutomaticallyReceiveChildren(_shape: FlowNodeShapeRecord): boolean;
|
|
@@ -234,6 +234,7 @@ export declare abstract class ShapeUtil<S extends ShapeRecordBase = ShapeRecordB
|
|
|
234
234
|
canAutomaticallyReceiveChildren(shape: S): boolean;
|
|
235
235
|
canBeDirectlyBrushSelected(_shape: S): boolean;
|
|
236
236
|
canReceiveTerminalBinding(_shape: S, _input?: ShapeGeometryInput): boolean;
|
|
237
|
+
canUseTerminalBindingPortHandles(shape: S, input?: ShapeGeometryInput): boolean;
|
|
237
238
|
getTerminalBindingPorts(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingPort[];
|
|
238
239
|
getTerminalBindingOutlines(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingOutline[];
|
|
239
240
|
canCopyToClipboard(_shape: S, _input: ShapeClipboardCopyInput): boolean;
|
|
@@ -234,6 +234,7 @@ export declare abstract class ShapeUtil<S extends ShapeRecordBase = ShapeRecordB
|
|
|
234
234
|
canAutomaticallyReceiveChildren(shape: S): boolean;
|
|
235
235
|
canBeDirectlyBrushSelected(_shape: S): boolean;
|
|
236
236
|
canReceiveTerminalBinding(_shape: S, _input?: ShapeGeometryInput): boolean;
|
|
237
|
+
canUseTerminalBindingPortHandles(shape: S, input?: ShapeGeometryInput): boolean;
|
|
237
238
|
getTerminalBindingPorts(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingPort[];
|
|
238
239
|
getTerminalBindingOutlines(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingOutline[];
|
|
239
240
|
canCopyToClipboard(_shape: S, _input: ShapeClipboardCopyInput): boolean;
|
|
@@ -234,6 +234,7 @@ export declare abstract class ShapeUtil<S extends ShapeRecordBase = ShapeRecordB
|
|
|
234
234
|
canAutomaticallyReceiveChildren(shape: S): boolean;
|
|
235
235
|
canBeDirectlyBrushSelected(_shape: S): boolean;
|
|
236
236
|
canReceiveTerminalBinding(_shape: S, _input?: ShapeGeometryInput): boolean;
|
|
237
|
+
canUseTerminalBindingPortHandles(shape: S, input?: ShapeGeometryInput): boolean;
|
|
237
238
|
getTerminalBindingPorts(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingPort[];
|
|
238
239
|
getTerminalBindingOutlines(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingOutline[];
|
|
239
240
|
canCopyToClipboard(_shape: S, _input: ShapeClipboardCopyInput): boolean;
|
|
@@ -234,6 +234,7 @@ export declare abstract class ShapeUtil<S extends ShapeRecordBase = ShapeRecordB
|
|
|
234
234
|
canAutomaticallyReceiveChildren(shape: S): boolean;
|
|
235
235
|
canBeDirectlyBrushSelected(_shape: S): boolean;
|
|
236
236
|
canReceiveTerminalBinding(_shape: S, _input?: ShapeGeometryInput): boolean;
|
|
237
|
+
canUseTerminalBindingPortHandles(shape: S, input?: ShapeGeometryInput): boolean;
|
|
237
238
|
getTerminalBindingPorts(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingPort[];
|
|
238
239
|
getTerminalBindingOutlines(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingOutline[];
|
|
239
240
|
canCopyToClipboard(_shape: S, _input: ShapeClipboardCopyInput): boolean;
|
|
@@ -234,6 +234,7 @@ export declare abstract class ShapeUtil<S extends ShapeRecordBase = ShapeRecordB
|
|
|
234
234
|
canAutomaticallyReceiveChildren(shape: S): boolean;
|
|
235
235
|
canBeDirectlyBrushSelected(_shape: S): boolean;
|
|
236
236
|
canReceiveTerminalBinding(_shape: S, _input?: ShapeGeometryInput): boolean;
|
|
237
|
+
canUseTerminalBindingPortHandles(shape: S, input?: ShapeGeometryInput): boolean;
|
|
237
238
|
getTerminalBindingPorts(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingPort[];
|
|
238
239
|
getTerminalBindingOutlines(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingOutline[];
|
|
239
240
|
canCopyToClipboard(_shape: S, _input: ShapeClipboardCopyInput): boolean;
|
|
@@ -234,6 +234,7 @@ export declare abstract class ShapeUtil<S extends ShapeRecordBase = ShapeRecordB
|
|
|
234
234
|
canAutomaticallyReceiveChildren(shape: S): boolean;
|
|
235
235
|
canBeDirectlyBrushSelected(_shape: S): boolean;
|
|
236
236
|
canReceiveTerminalBinding(_shape: S, _input?: ShapeGeometryInput): boolean;
|
|
237
|
+
canUseTerminalBindingPortHandles(shape: S, input?: ShapeGeometryInput): boolean;
|
|
237
238
|
getTerminalBindingPorts(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingPort[];
|
|
238
239
|
getTerminalBindingOutlines(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingOutline[];
|
|
239
240
|
canCopyToClipboard(_shape: S, _input: ShapeClipboardCopyInput): boolean;
|
|
@@ -234,6 +234,7 @@ export declare abstract class ShapeUtil<S extends ShapeRecordBase = ShapeRecordB
|
|
|
234
234
|
canAutomaticallyReceiveChildren(shape: S): boolean;
|
|
235
235
|
canBeDirectlyBrushSelected(_shape: S): boolean;
|
|
236
236
|
canReceiveTerminalBinding(_shape: S, _input?: ShapeGeometryInput): boolean;
|
|
237
|
+
canUseTerminalBindingPortHandles(shape: S, input?: ShapeGeometryInput): boolean;
|
|
237
238
|
getTerminalBindingPorts(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingPort[];
|
|
238
239
|
getTerminalBindingOutlines(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingOutline[];
|
|
239
240
|
canCopyToClipboard(_shape: S, _input: ShapeClipboardCopyInput): boolean;
|
|
@@ -234,6 +234,7 @@ export declare abstract class ShapeUtil<S extends ShapeRecordBase = ShapeRecordB
|
|
|
234
234
|
canAutomaticallyReceiveChildren(shape: S): boolean;
|
|
235
235
|
canBeDirectlyBrushSelected(_shape: S): boolean;
|
|
236
236
|
canReceiveTerminalBinding(_shape: S, _input?: ShapeGeometryInput): boolean;
|
|
237
|
+
canUseTerminalBindingPortHandles(shape: S, input?: ShapeGeometryInput): boolean;
|
|
237
238
|
getTerminalBindingPorts(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingPort[];
|
|
238
239
|
getTerminalBindingOutlines(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingOutline[];
|
|
239
240
|
canCopyToClipboard(_shape: S, _input: ShapeClipboardCopyInput): boolean;
|
|
@@ -234,6 +234,7 @@ export declare abstract class ShapeUtil<S extends ShapeRecordBase = ShapeRecordB
|
|
|
234
234
|
canAutomaticallyReceiveChildren(shape: S): boolean;
|
|
235
235
|
canBeDirectlyBrushSelected(_shape: S): boolean;
|
|
236
236
|
canReceiveTerminalBinding(_shape: S, _input?: ShapeGeometryInput): boolean;
|
|
237
|
+
canUseTerminalBindingPortHandles(shape: S, input?: ShapeGeometryInput): boolean;
|
|
237
238
|
getTerminalBindingPorts(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingPort[];
|
|
238
239
|
getTerminalBindingOutlines(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingOutline[];
|
|
239
240
|
canCopyToClipboard(_shape: S, _input: ShapeClipboardCopyInput): boolean;
|
|
@@ -234,6 +234,7 @@ export declare abstract class ShapeUtil<S extends ShapeRecordBase = ShapeRecordB
|
|
|
234
234
|
canAutomaticallyReceiveChildren(shape: S): boolean;
|
|
235
235
|
canBeDirectlyBrushSelected(_shape: S): boolean;
|
|
236
236
|
canReceiveTerminalBinding(_shape: S, _input?: ShapeGeometryInput): boolean;
|
|
237
|
+
canUseTerminalBindingPortHandles(shape: S, input?: ShapeGeometryInput): boolean;
|
|
237
238
|
getTerminalBindingPorts(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingPort[];
|
|
238
239
|
getTerminalBindingOutlines(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingOutline[];
|
|
239
240
|
canCopyToClipboard(_shape: S, _input: ShapeClipboardCopyInput): boolean;
|
|
@@ -234,6 +234,7 @@ export declare abstract class ShapeUtil<S extends ShapeRecordBase = ShapeRecordB
|
|
|
234
234
|
canAutomaticallyReceiveChildren(shape: S): boolean;
|
|
235
235
|
canBeDirectlyBrushSelected(_shape: S): boolean;
|
|
236
236
|
canReceiveTerminalBinding(_shape: S, _input?: ShapeGeometryInput): boolean;
|
|
237
|
+
canUseTerminalBindingPortHandles(shape: S, input?: ShapeGeometryInput): boolean;
|
|
237
238
|
getTerminalBindingPorts(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingPort[];
|
|
238
239
|
getTerminalBindingOutlines(shape: S, input: ShapeGeometryInput): readonly ShapeTerminalBindingOutline[];
|
|
239
240
|
canCopyToClipboard(_shape: S, _input: ShapeClipboardCopyInput): boolean;
|