@yft-design/engine 0.0.53 → 0.0.55
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.
|
@@ -4,6 +4,7 @@ import { type SceneNode } from '../model/scene';
|
|
|
4
4
|
export interface AnimationPlaybackHost {
|
|
5
5
|
readonly document: EngineDocument;
|
|
6
6
|
requestRenderAll(): void;
|
|
7
|
+
readonly editorScroll?: boolean;
|
|
7
8
|
}
|
|
8
9
|
export interface AnimationPlaybackInfo {
|
|
9
10
|
state: AnimationPlayer['state'];
|
|
@@ -36,6 +37,11 @@ export declare class AnimationPlaybackController {
|
|
|
36
37
|
private overridesActive;
|
|
37
38
|
private previews;
|
|
38
39
|
private previewOverridesActive;
|
|
40
|
+
private scrollRunning;
|
|
41
|
+
private scrollAnchorNow;
|
|
42
|
+
private scrollAnchorTime;
|
|
43
|
+
private editorHadTracks;
|
|
44
|
+
private readonly editorScrollEnabled;
|
|
39
45
|
constructor(host: AnimationPlaybackHost);
|
|
40
46
|
reset(): void;
|
|
41
47
|
play(): void;
|
|
@@ -49,6 +55,12 @@ export declare class AnimationPlaybackController {
|
|
|
49
55
|
tick(now: number): boolean;
|
|
50
56
|
private tickPreviews;
|
|
51
57
|
private cancelPreviews;
|
|
58
|
+
private anchorScrollClock;
|
|
59
|
+
private scrollClockTime;
|
|
60
|
+
private hasLiveScrollTracks;
|
|
61
|
+
private scrollClockAdvancing;
|
|
62
|
+
private editorScrollActive;
|
|
63
|
+
private tickEditorScroll;
|
|
52
64
|
get scrollTextInfo(): ScrollTextTrackInfo[];
|
|
53
65
|
private applyAnimationTime;
|
|
54
66
|
private clearOverrides;
|
|
@@ -23,7 +23,7 @@ export declare class TextRenderer {
|
|
|
23
23
|
renderPsdWarpedText(node: TextNode, params: PsdTextWarpParams): void;
|
|
24
24
|
renderArcText(node: TextNode, kind: ArcTextKind, zoomX: number): void;
|
|
25
25
|
private renderArcGlyphs;
|
|
26
|
-
renderTextGlyphs(node: TextNode, zoomX: number): void;
|
|
26
|
+
renderTextGlyphs(node: TextNode, zoomX: number, editing?: boolean): void;
|
|
27
27
|
private renderScrollText;
|
|
28
28
|
renderTextPathBackground(node: TextNode, zoomX: number): void;
|
|
29
29
|
private renderTextBackgrounds;
|