@fulate/ui 1.0.15 → 2.0.11
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 +96 -14
- package/dist/bitmap.d.ts +15 -0
- package/dist/circle.d.ts +2 -1
- package/dist/connection/commands.d.ts +3 -3
- package/dist/connection/types.d.ts +5 -1
- package/dist/connection-port-decoration.d.ts +18 -2
- package/dist/editor/capability.d.ts +38 -6
- package/dist/editor/frame-flush.d.ts +3 -4
- package/dist/editor/properties.d.ts +31 -0
- package/dist/editor/shape-capability.d.ts +13 -0
- package/dist/editor/shape.d.ts +17 -20
- package/dist/editor/transform.d.ts +1 -3
- package/dist/editor-vector-path.d.ts +70 -0
- package/dist/floating.d.ts +12 -2
- package/dist/group.d.ts +17 -8
- package/dist/image.d.ts +21 -19
- package/dist/index.d.ts +14 -7
- package/dist/index.js +2857 -1696
- package/dist/line/base.d.ts +65 -28
- package/dist/line/geometry.d.ts +28 -0
- package/dist/line/index.d.ts +2 -0
- package/dist/line/label.d.ts +58 -0
- package/dist/line/orthogonal.d.ts +23 -0
- package/dist/line/straight.d.ts +7 -3
- package/dist/line-tree/history-delta.d.ts +2 -0
- package/dist/line-tree/index.d.ts +20 -12
- package/dist/line-tree/topology.d.ts +1 -4
- package/dist/line-tree/transform.d.ts +2 -0
- package/dist/line-tree/types.d.ts +3 -2
- package/dist/polygon.d.ts +19 -37
- package/dist/rectangle.d.ts +5 -4
- package/dist/ripple.d.ts +18 -4
- package/dist/scrollbars.d.ts +36 -0
- package/dist/scrollview.d.ts +27 -21
- package/dist/text/block.d.ts +5 -1
- package/dist/text/editing.d.ts +54 -12
- package/dist/text/index.d.ts +23 -20
- package/dist/text/layout.d.ts +9 -2
- package/dist/text/paint.d.ts +3 -2
- package/dist/text/style.d.ts +4 -0
- package/dist/triangle.d.ts +10 -5
- package/dist/worker-surface-worker.d.ts +4 -1
- package/dist/worker-surface-worker.js +13 -10
- package/dist/worker-surface.d.ts +1 -0
- package/dist/workspace.d.ts +3 -3
- package/package.json +33 -33
- package/dist/authored-path.d.ts +0 -28
- package/dist/vector-path.d.ts +0 -58
package/dist/authored-path.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { createAuthoredLineSubpath, type AnchorId, type AuthoredSubpath, type SegmentId } from "@fulate/core";
|
|
2
|
-
import { type PointView, type ReadonlyMatrix2D, type Rect } from "@fulate/share";
|
|
3
|
-
export { createAuthoredLineSubpath };
|
|
4
|
-
/** Replace one authored anchor point while retaining its record and all IDs. */
|
|
5
|
-
export declare function replaceAuthoredAnchorPoint(subpath: AuthoredSubpath, anchorId: AnchorId, point: PointView): AuthoredSubpath;
|
|
6
|
-
/** Append one anchor to an open line subpath. */
|
|
7
|
-
export declare function appendAuthoredLineAnchor(subpath: AuthoredSubpath, point: PointView): {
|
|
8
|
-
readonly subpath: AuthoredSubpath;
|
|
9
|
-
readonly anchorId: AnchorId;
|
|
10
|
-
};
|
|
11
|
-
/** Split one authored line/cubic segment, retaining the leading segment ID. */
|
|
12
|
-
export declare function insertAuthoredPathAnchor(subpath: AuthoredSubpath, segmentId: SegmentId, t: number, point: PointView): {
|
|
13
|
-
readonly subpath: AuthoredSubpath;
|
|
14
|
-
readonly anchorId: AnchorId;
|
|
15
|
-
};
|
|
16
|
-
/** Split a line segment at its midpoint for Line and Polygon. */
|
|
17
|
-
export declare function insertAuthoredLineAnchor(subpath: AuthoredSubpath, segmentId: SegmentId, point: PointView): {
|
|
18
|
-
readonly subpath: AuthoredSubpath;
|
|
19
|
-
readonly anchorId: AnchorId;
|
|
20
|
-
};
|
|
21
|
-
/** Replace one cubic segment handle without changing other authored records. */
|
|
22
|
-
export declare function replaceAuthoredCubicHandle(subpath: AuthoredSubpath, segmentId: SegmentId, role: "cubic-control-1" | "cubic-control-2", point: PointView): AuthoredSubpath;
|
|
23
|
-
/** Delete one anchor and merge its predecessor directly to its successor. */
|
|
24
|
-
export declare function removeAuthoredAnchor(subpath: AuthoredSubpath, anchorId: AnchorId, minimumAnchorCount?: number): AuthoredSubpath;
|
|
25
|
-
/** Transform coordinates while retaining every subpath, anchor, segment, and record ID. */
|
|
26
|
-
export declare function transformAuthoredSubpath(subpath: AuthoredSubpath, matrix: ReadonlyMatrix2D): AuthoredSubpath;
|
|
27
|
-
/** Read bounds directly from authored anchor coordinates. */
|
|
28
|
-
export declare function getAuthoredSubpathBounds(subpath: AuthoredSubpath): Readonly<Rect> | null;
|
package/dist/vector-path.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import type { PointView } from "@fulate/share";
|
|
2
|
-
import { ChangeImpact, ShapeProperties, type AuthoredSubpath, type GeometrySnapshot, type OwnerPropertyChange, type PropertyChanges, type ReparentTransformIntent, type ShapeOption, type ShapeOptionPatch, type ElementTransformBaseline, type TransformIntent } from "@fulate/core";
|
|
3
|
-
import { EditorShape, EditorShapeTransform } from "./editor/shape";
|
|
4
|
-
import { type EditorCapabilityToken, type PointControlDescriptor, type PointEditRequest, type PointEditingScope, type PointOwnerEdit } from "./editor/capability";
|
|
5
|
-
/** Sketch/SVG-style creation intent; commands never enter live Properties. */
|
|
6
|
-
export type VectorPathCommand = Readonly<{
|
|
7
|
-
type: "M" | "L";
|
|
8
|
-
point: PointView;
|
|
9
|
-
}> | Readonly<{
|
|
10
|
-
type: "C";
|
|
11
|
-
control1: PointView;
|
|
12
|
-
control2: PointView;
|
|
13
|
-
point: PointView;
|
|
14
|
-
}> | Readonly<{
|
|
15
|
-
type: "Z";
|
|
16
|
-
}>;
|
|
17
|
-
export interface VectorPathGeometry {
|
|
18
|
-
readonly subpaths: readonly AuthoredSubpath[];
|
|
19
|
-
}
|
|
20
|
-
export interface VectorPathOption extends ShapeOption<VectorPath> {
|
|
21
|
-
/** 普通创建传 commands;restore 直接传 canonical geometry。 */
|
|
22
|
-
path?: readonly VectorPathCommand[] | VectorPathGeometry;
|
|
23
|
-
}
|
|
24
|
-
type VectorPathPatch = ShapeOptionPatch<VectorPathOption>;
|
|
25
|
-
interface VectorPathStateOption extends Omit<VectorPathOption, "path"> {
|
|
26
|
-
path?: VectorPathGeometry;
|
|
27
|
-
}
|
|
28
|
-
export declare class VectorPathProperties extends ShapeProperties {
|
|
29
|
-
path: VectorPathGeometry;
|
|
30
|
-
constructor(options?: VectorPathStateOption);
|
|
31
|
-
getImpact(changes: PropertyChanges): ChangeImpact;
|
|
32
|
-
}
|
|
33
|
-
export declare class VectorPathTransform<E extends VectorPath = VectorPath> extends EditorShapeTransform<E> {
|
|
34
|
-
protected buildGeometrySnapshot(revision: number): GeometrySnapshot;
|
|
35
|
-
}
|
|
36
|
-
export declare class VectorPath extends EditorShape<VectorPathProperties, VectorPathOption> {
|
|
37
|
-
readonly type = "vectorPath";
|
|
38
|
-
get path(): VectorPathGeometry;
|
|
39
|
-
constructor(options?: VectorPathOption);
|
|
40
|
-
protected resolveOptions(options: VectorPathPatch): Partial<Omit<VectorPathOption, "key" | "children">>;
|
|
41
|
-
getEditorCapability<T>(token: EditorCapabilityToken<T>): T | undefined;
|
|
42
|
-
resolvePointScope(worldPoint: PointView): {
|
|
43
|
-
readonly kind: "owner";
|
|
44
|
-
};
|
|
45
|
-
hasPointScope(scope: PointEditingScope): scope is {
|
|
46
|
-
readonly kind: "owner";
|
|
47
|
-
};
|
|
48
|
-
getPointControls(_scope: PointEditingScope): readonly PointControlDescriptor[];
|
|
49
|
-
getPointScopeOutline(_scope: PointEditingScope): any;
|
|
50
|
-
resolvePointEdit(request: PointEditRequest): PointOwnerEdit | null;
|
|
51
|
-
private findAnchor;
|
|
52
|
-
private findSegment;
|
|
53
|
-
private ownerPathChange;
|
|
54
|
-
captureTransformBaseline(): ElementTransformBaseline<VectorPathGeometry>;
|
|
55
|
-
resolveTransformChange(baseline: Readonly<ElementTransformBaseline<VectorPathGeometry>>, intent: Readonly<TransformIntent | ReparentTransformIntent>): readonly OwnerPropertyChange[];
|
|
56
|
-
protected buildPath(ctx: CanvasRenderingContext2D): void;
|
|
57
|
-
}
|
|
58
|
-
export {};
|