@yft-design/engine 0.0.21 → 0.0.22
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/dist/EngineCanvas.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ import { QuadBatch } from './render/QuadBatch';
|
|
|
25
25
|
import { type PageRect } from './render/multiPage';
|
|
26
26
|
import { SceneRenderer, type SceneRendererHost } from './render/SceneRenderer';
|
|
27
27
|
import { type SourceHost } from './render/SourceManager';
|
|
28
|
+
import { type PageTransferReplayItem, type PageTransferReplayResult } from './interact/pageTransfer';
|
|
28
29
|
import { type SceneExportHost } from './export/SceneExporter';
|
|
29
30
|
import type { ExportPixels, ExportRawPixels, ExportRegion } from './export/glExport';
|
|
30
31
|
import { type HandleId } from './render/selectionOverlay';
|
|
@@ -199,6 +200,7 @@ export declare class EngineCanvas implements PointerHost, TextEditingHost, Sourc
|
|
|
199
200
|
} | null;
|
|
200
201
|
activateRoutedDocument(doc: EngineDocument): void;
|
|
201
202
|
transferDraggedNodes(nodes: SceneNode[], before: Map<SceneNode, SerializedNode> | undefined, cssX: number, cssY: number): boolean;
|
|
203
|
+
replayPageTransfer(sourceIndex: number, targetIndex: number, items: ReadonlyArray<PageTransferReplayItem>, isRedo: boolean): PageTransferReplayResult | null;
|
|
202
204
|
insertPage(index: number, objects?: SerializedNode[]): Promise<number>;
|
|
203
205
|
removePage(index: number): boolean;
|
|
204
206
|
loadPageObjects(index: number, objects: SerializedNode[]): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -14,13 +14,14 @@ export { CompatObject, wrapCompatObject, findParentGroupOf, type CompatObjectCon
|
|
|
14
14
|
export { createEngineWarpvasFacade, type EngineWarpvasFacade } from './interact/warpFacade';
|
|
15
15
|
export { ScaleLimit } from './interact/wheelScroll';
|
|
16
16
|
export { attachDocumentEventBridge, CompatHistoryActions, COMPAT_PROTOCOL_VERSION, type CompatBridgeDeps, type CompatCanvasEvents, type CompatObjectEvent, type CompatObjectModifiedEvent, type CompatPathAnchorEvent, type CompatPointerEvent, type CompatSelectionEvent, type CompatTextCommittedEvent } from './model/compatEvents';
|
|
17
|
-
export { pathBackgroundSpecOf, syncPathBackgroundNode, ensurePathBackgroundNode, synthesizePathBackgroundNodes, syncAfterPropWrite, repositionPathBackgroundNode, attachPathBackgroundController } from './model/pathBackground';
|
|
17
|
+
export { pathBackgroundSpecOf, syncPathBackgroundNode, ensurePathBackgroundNode, synthesizePathBackgroundNodes, syncAfterPropWrite, repositionPathBackgroundNode, detachPathBackgroundOf, attachPathBackgroundBelowHost, attachPathBackgroundController } from './model/pathBackground';
|
|
18
18
|
export { isCanvasPerfEnabled, markCanvasPerfCounter, recordCanvasPerfDuration } from './core/canvasPerf';
|
|
19
19
|
export { rectCornerRadii } from './core/roundedRect';
|
|
20
20
|
export { parsePsdEffects } from './core/psdEffects';
|
|
21
21
|
export { EngineDocument, type EngineDocumentEvents, type IndexedItem, type SelectionFrame } from './model/document';
|
|
22
22
|
export { PAGE_GAP_CSS_PX, type PageRect, type PageLayoutRow } from './render/multiPage';
|
|
23
23
|
export type { PageTransfer, PageTransferItem } from './interact/pageTransfer';
|
|
24
|
+
export { replayPageTransferLive, type PageTransferReplayItem, type PageTransferReplayResult } from './interact/pageTransfer';
|
|
24
25
|
export { ElementTypes, typeKeyOf, TEXT_TYPES, SHAPE_TYPES, LINE_TYPES, PUZZLE_TYPES, GIF_TYPES, VIDEO_TYPES, type ElementTypeKey } from './model/elementTypes';
|
|
25
26
|
export { TextAlignValues, TEXT_ALIGN_VALUES, isJustifyFamilyAlign, isJustifyVariantAlign, isStretchAlign, type TextAlignValue } from './model/textAlign';
|
|
26
27
|
export { buildScene, loadImageElement, IMAGE_LIKE_TYPES, SOLID_TYPES, MASK_TYPES, createNode, isTextBitmapState, textBitmapFillAlpha, SceneNode, TextNode, ShapeNode, PathNode, LineNode, GroupNode, MaskNode, PuzzleNode, TableNode, AnimatedNode, type SerializedNode } from './model/scene';
|