@fulate/core 1.0.13 → 1.0.15

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.
@@ -1,3 +1,4 @@
1
+ import type { Rect } from "@fulate/share";
1
2
  import { type GeometryQuery, type GeometrySnapshot } from "./common";
2
3
  export { createAuthoredLineSubpath, createPathLocalId } from "./authored";
3
4
  export { createGeometrySnapshot, createLineSubpath, evaluatePathSegmentPoint, resolveAuthoredSubpath, splitPathSegment } from "./common";
@@ -6,5 +7,7 @@ export type { AnchorId, AuthoredCubicAnchor, AuthoredLineAnchor, AuthoredPathAnc
6
7
  export { createRectangleGeometrySnapshot, rectangleSubpathsMaterializedForTest } from "./rectangle";
7
8
  /** @internal 读取 canonical snapshot 的非空元数据而不强制惰性矩形 subpaths。 */
8
9
  export declare function geometrySnapshotHasGeometry(snapshot: GeometrySnapshot): boolean;
10
+ /** @internal 普通矩形 canonical snapshot 返回其矩形;其他几何返回 `null`,不强制惰性 subpaths。 */
11
+ export declare function geometrySnapshotRectangle(snapshot: GeometrySnapshot): Readonly<Rect> | null;
9
12
  /** 创建尚未建立内部 index 的唯一 canonical snapshot query。 */
10
13
  export declare function createGeometryQuery(snapshot: GeometrySnapshot): GeometryQuery;
package/dist/index.d.ts CHANGED
@@ -17,7 +17,7 @@ export type { ShapeOption, ShapeOptionPatch, BorderPosition, ShadowOption, Outse
17
17
  export { Skin, SKIN_DEFAULTS } from "./skin";
18
18
  export type { SkinChange, SkinOptions, TextStyleConfig } from "./skin";
19
19
  export { Root } from "./root/index";
20
- export type { QueryAreaBounds, QueryAreaOptions, QueryAreaOrder, IteratePointOptions, PaintOrderKey } from "./root/index";
20
+ export type { QueryAreaBounds, QueryAreaOptions, QueryAreaOrder, IteratePointOptions } from "./root/index";
21
21
  export { Viewport } from "./root/viewport";
22
22
  export type { ViewportInsets, ViewportSnapshot } from "./root/viewport";
23
23
  export { RootInputController, isFormControlTarget } from "./root/input-controller";
@@ -27,6 +27,8 @@ export { SceneRegistry } from "./root/scene-registry";
27
27
  export type { NodeKeyObserver, NodeRegistrationObserver, SceneChangeObserver } from "./root/scene-registry";
28
28
  export { mergeOwnerPropertyChanges } from "./mutation/change-batch";
29
29
  export type { ChangeHistorySink, OwnerPropertyChange, StructureChange } from "./mutation/change-batch";
30
+ export { diffChildren } from "./mutation/structure-change";
31
+ export type { ChildPlacementChange, ChildrenDiff } from "./mutation/structure-change";
30
32
  export { Layer, LayerProperties, LayerTransform } from "./layer/index";
31
33
  export type { LayerFrameWork, LayerOption, LayerOptionPatch } from "./layer/index";
32
34
  export { createAuthoredLineSubpath, createPathLocalId, createGeometryQuery, createGeometrySnapshot, createLineSubpath, evaluatePathSegmentPoint, resolveAuthoredSubpath, splitPathSegment } from "./geometry";