@visactor/vrender-core 1.1.0-alpha.2 → 1.1.0-alpha.20
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/cjs/canvas/constants.js +2 -1
- package/cjs/color-string/index.js +1 -2
- package/cjs/common/diff.js +1 -2
- package/cjs/common/event-transformer.js +2 -1
- package/cjs/common/rect-utils.js +1 -1
- package/cjs/common/render-area.js +1 -1
- package/cjs/common/render-command-list.js +1 -1
- package/cjs/common/render-curve.js +1 -1
- package/cjs/common/render-utils.js +1 -1
- package/cjs/common/seg-context.js +1 -2
- package/cjs/common/simplify.js +1 -1
- package/cjs/common/sort.js +1 -1
- package/cjs/common/split-path.js +1 -1
- package/cjs/common/store.js +1 -1
- package/cjs/common/text.js +1 -1
- package/cjs/common/utils.js +1 -1
- package/cjs/core/camera.js +1 -1
- package/cjs/core/constants.js +1 -1
- package/cjs/core/core-modules.js +1 -1
- package/cjs/core/global-module.js +2 -0
- package/cjs/core/global.js +1 -1
- package/cjs/core/graphic-utils.js +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/layer-service.js +2 -1
- package/cjs/core/layer.js +1 -1
- package/cjs/core/light.js +1 -1
- package/cjs/core/stage.d.ts +4 -1
- package/cjs/core/stage.js +24 -12
- package/cjs/core/stage.js.map +1 -1
- package/cjs/core/window.js +1 -1
- package/cjs/graphic/graphic-service/graphic-service.d.ts +4 -0
- package/cjs/graphic/graphic-service/graphic-service.js +6 -5
- package/cjs/graphic/graphic-service/graphic-service.js.map +1 -1
- package/cjs/graphic/graphic.d.ts +72 -11
- package/cjs/graphic/graphic.js +509 -158
- package/cjs/graphic/graphic.js.map +1 -1
- package/cjs/graphic/group.d.ts +5 -1
- package/cjs/graphic/group.js +37 -18
- package/cjs/graphic/group.js.map +1 -1
- package/cjs/graphic/rect.d.ts +2 -0
- package/cjs/graphic/rect.js +44 -0
- package/cjs/graphic/rect.js.map +1 -1
- package/cjs/graphic/state/shared-state-refresh.js +4 -3
- package/cjs/graphic/state/shared-state-refresh.js.map +1 -1
- package/cjs/graphic/state/shared-state-scope.js +1 -1
- package/cjs/graphic/state/shared-state-scope.js.map +1 -1
- package/cjs/graphic/state/state-engine.js +2 -2
- package/cjs/graphic/state/state-engine.js.map +1 -1
- package/cjs/graphic/state/state-perf-monitor.d.ts +1 -0
- package/cjs/graphic/state/state-perf-monitor.js +9 -2
- package/cjs/graphic/state/state-perf-monitor.js.map +1 -1
- package/cjs/graphic/state/state-style-resolver.d.ts +0 -9
- package/cjs/graphic/state/state-style-resolver.js +0 -23
- package/cjs/graphic/state/state-style-resolver.js.map +1 -1
- package/cjs/graphic/state/state-transition-orchestrator.d.ts +5 -0
- package/cjs/graphic/state/state-transition-orchestrator.js +17 -5
- package/cjs/graphic/state/state-transition-orchestrator.js.map +1 -1
- package/cjs/interface/animation/animate.d.ts +1 -0
- package/cjs/interface/animation/animate.js.map +1 -1
- package/cjs/interface/graphic.d.ts +9 -0
- package/cjs/interface/graphic.js.map +1 -1
- package/cjs/interface/node-tree.js.map +1 -1
- package/cjs/plugins/builtin-plugin/dirty-bounds-plugin.d.ts +4 -1
- package/cjs/plugins/builtin-plugin/dirty-bounds-plugin.js +20 -10
- package/cjs/plugins/builtin-plugin/dirty-bounds-plugin.js.map +1 -1
- package/cjs/plugins/builtin-plugin/flex-layout-plugin.js +3 -2
- package/cjs/plugins/builtin-plugin/flex-layout-plugin.js.map +1 -1
- package/cjs/render/contributions/render/base-render.js +8 -7
- package/cjs/render/contributions/render/base-render.js.map +1 -1
- package/dist/index.es.js +1134 -279
- package/es/canvas/constants.js +2 -1
- package/es/color-string/index.js +1 -2
- package/es/common/diff.js +1 -2
- package/es/common/event-transformer.js +2 -1
- package/es/common/rect-utils.js +1 -1
- package/es/common/render-area.js +1 -1
- package/es/common/render-command-list.js +1 -1
- package/es/common/render-curve.js +1 -1
- package/es/common/render-utils.js +1 -1
- package/es/common/seg-context.js +1 -2
- package/es/common/simplify.js +1 -1
- package/es/common/sort.js +1 -1
- package/es/common/split-path.js +1 -1
- package/es/common/store.js +1 -1
- package/es/common/text.js +1 -1
- package/es/common/utils.js +1 -1
- package/es/core/camera.js +1 -1
- package/es/core/constants.js +1 -1
- package/es/core/core-modules.js +1 -1
- package/es/core/global-module.js +2 -0
- package/es/core/global.js +1 -1
- package/es/core/graphic-utils.js +1 -1
- package/es/core/index.js +1 -1
- package/es/core/layer-service.js +2 -1
- package/es/core/layer.js +1 -1
- package/es/core/light.js +1 -1
- package/es/core/stage.d.ts +4 -1
- package/es/core/stage.js +22 -11
- package/es/core/stage.js.map +1 -1
- package/es/core/window.js +1 -1
- package/es/graphic/graphic-service/graphic-service.d.ts +4 -0
- package/es/graphic/graphic-service/graphic-service.js +6 -5
- package/es/graphic/graphic-service/graphic-service.js.map +1 -1
- package/es/graphic/graphic.d.ts +72 -11
- package/es/graphic/graphic.js +504 -151
- package/es/graphic/graphic.js.map +1 -1
- package/es/graphic/group.d.ts +5 -1
- package/es/graphic/group.js +36 -18
- package/es/graphic/group.js.map +1 -1
- package/es/graphic/rect.d.ts +2 -0
- package/es/graphic/rect.js +44 -0
- package/es/graphic/rect.js.map +1 -1
- package/es/graphic/state/shared-state-refresh.js +5 -4
- package/es/graphic/state/shared-state-refresh.js.map +1 -1
- package/es/graphic/state/shared-state-scope.js +2 -2
- package/es/graphic/state/shared-state-scope.js.map +1 -1
- package/es/graphic/state/state-engine.js +3 -3
- package/es/graphic/state/state-engine.js.map +1 -1
- package/es/graphic/state/state-perf-monitor.d.ts +1 -0
- package/es/graphic/state/state-perf-monitor.js +7 -0
- package/es/graphic/state/state-perf-monitor.js.map +1 -1
- package/es/graphic/state/state-style-resolver.d.ts +0 -9
- package/es/graphic/state/state-style-resolver.js +0 -23
- package/es/graphic/state/state-style-resolver.js.map +1 -1
- package/es/graphic/state/state-transition-orchestrator.d.ts +5 -0
- package/es/graphic/state/state-transition-orchestrator.js +17 -5
- package/es/graphic/state/state-transition-orchestrator.js.map +1 -1
- package/es/interface/animation/animate.d.ts +1 -0
- package/es/interface/animation/animate.js.map +1 -1
- package/es/interface/graphic.d.ts +9 -0
- package/es/interface/graphic.js.map +1 -1
- package/es/interface/node-tree.js.map +1 -1
- package/es/plugins/builtin-plugin/dirty-bounds-plugin.d.ts +4 -1
- package/es/plugins/builtin-plugin/dirty-bounds-plugin.js +20 -10
- package/es/plugins/builtin-plugin/dirty-bounds-plugin.js.map +1 -1
- package/es/plugins/builtin-plugin/flex-layout-plugin.js +3 -2
- package/es/plugins/builtin-plugin/flex-layout-plugin.js.map +1 -1
- package/es/render/contributions/render/base-render.js +8 -6
- package/es/render/contributions/render/base-render.js.map +1 -1
- package/package.json +3 -3
package/cjs/graphic/graphic.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ICustomPath2D } from './../interface/path';
|
|
2
2
|
import { Matrix, Point, type Dict, type IAABBBounds, type IOBBBounds, type IPointLike } from '@visactor/vutils';
|
|
3
|
-
import type { GraphicType, IAnimateConfig, IGraphicAttribute, IGraphic, IGraphicJson, ISetAttributeContext, ITransform, GraphicReleaseStatus } from '../interface/graphic';
|
|
3
|
+
import type { GraphicType, IAnimateConfig, IGraphicAttribute, IGraphic, IGraphicJson, ISetAttributeContext, ISetStatesOptions, ITransform, GraphicReleaseStatus } from '../interface/graphic';
|
|
4
4
|
import { Node } from './node-tree';
|
|
5
5
|
import type { IAnimate, IAnimateTarget, IGlyphGraphicAttribute, ILayer, IPickerService, IShadowRoot, IStage, IStep, ISymbolClass } from '../interface';
|
|
6
6
|
import { IContainPointMode } from '../common/enums';
|
|
@@ -8,6 +8,7 @@ import { CustomSymbolClass } from './builtin-symbol';
|
|
|
8
8
|
import type { CompiledStateDefinition, StateDefinition, StateDefinitionsInput } from './state/state-definition';
|
|
9
9
|
import { StateEngine } from './state/state-engine';
|
|
10
10
|
import { StateModel } from './state/state-model';
|
|
11
|
+
import { UpdateCategory } from './state/attribute-update-classifier';
|
|
11
12
|
import { StateStyleResolver, type StateMergeMode } from './state/state-style-resolver';
|
|
12
13
|
import { StateTransitionOrchestrator } from './state/state-transition-orchestrator';
|
|
13
14
|
import { type SharedStateScope } from './state/shared-state-scope';
|
|
@@ -17,7 +18,16 @@ type AttributeDelta = Map<string, {
|
|
|
17
18
|
prev: unknown;
|
|
18
19
|
next: unknown;
|
|
19
20
|
}>;
|
|
20
|
-
|
|
21
|
+
type ResolvedGraphicStateTransition<T> = {
|
|
22
|
+
transition: {
|
|
23
|
+
changed: boolean;
|
|
24
|
+
states: string[];
|
|
25
|
+
effectiveStates?: string[];
|
|
26
|
+
};
|
|
27
|
+
effectiveStates: string[];
|
|
28
|
+
resolvedStateAttrs: Partial<T>;
|
|
29
|
+
isSimpleLocalTransition: boolean;
|
|
30
|
+
};
|
|
21
31
|
export declare const NOWORK_ANIMATE_ATTR: {
|
|
22
32
|
strokeSeg: number;
|
|
23
33
|
boundsPadding: number;
|
|
@@ -52,6 +62,8 @@ export declare abstract class Graphic<T extends Partial<IGraphicAttribute> = Par
|
|
|
52
62
|
static mixin(source: Dict<any>): void;
|
|
53
63
|
_events?: any;
|
|
54
64
|
context?: Record<string, any>;
|
|
65
|
+
private transientFromAttrsBeforePreventAnimate?;
|
|
66
|
+
private transientFromAttrsBeforePreventAnimateDiffAttrs?;
|
|
55
67
|
static userSymbolMap: Record<string, ISymbolClass>;
|
|
56
68
|
onBeforeAttributeUpdate?: (val: any, attributes: Partial<T>, key: null | string | string[], context?: ISetAttributeContext) => T | undefined;
|
|
57
69
|
parent: any;
|
|
@@ -88,7 +100,9 @@ export declare abstract class Graphic<T extends Partial<IGraphicAttribute> = Par
|
|
|
88
100
|
protected _updateTag: number;
|
|
89
101
|
stamp?: number;
|
|
90
102
|
attribute: T;
|
|
91
|
-
|
|
103
|
+
protected _baseAttributes?: Partial<T>;
|
|
104
|
+
get baseAttributes(): Partial<T>;
|
|
105
|
+
set baseAttributes(value: Partial<T>);
|
|
92
106
|
shadowRoot?: IShadowRoot;
|
|
93
107
|
releaseStatus?: GraphicReleaseStatus;
|
|
94
108
|
states?: StateDefinitionsInput<T>;
|
|
@@ -124,18 +138,20 @@ export declare abstract class Graphic<T extends Partial<IGraphicAttribute> = Par
|
|
|
124
138
|
protected stateStyleResolver?: StateStyleResolver<T>;
|
|
125
139
|
protected deepStateStyleResolver?: StateStyleResolver<T>;
|
|
126
140
|
protected stateTransitionOrchestrator?: StateTransitionOrchestrator<T>;
|
|
127
|
-
protected _deprecatedNormalAttrsView?: Partial<T> | null;
|
|
128
141
|
protected localStateDefinitionsSource?: StateDefinitionsInput<T>;
|
|
129
|
-
protected resolverEpoch
|
|
142
|
+
protected resolverEpoch?: number;
|
|
143
|
+
protected attributeMayContainTransientAttrs?: boolean;
|
|
130
144
|
constructor(params?: T);
|
|
131
145
|
get normalAttrs(): Partial<T> | undefined;
|
|
132
|
-
set normalAttrs(
|
|
146
|
+
set normalAttrs(_value: Partial<T> | undefined);
|
|
147
|
+
protected getBaseAttributesStorage(): Partial<T>;
|
|
133
148
|
getGraphicService(): import("../interface").IGraphicService;
|
|
134
149
|
getAttributes(): T;
|
|
135
150
|
protected getStateStyleResolver(mergeMode?: StateMergeMode): StateStyleResolver<T>;
|
|
136
151
|
protected getStateTransitionOrchestrator(): StateTransitionOrchestrator<T>;
|
|
137
152
|
protected resolveBoundSharedStateScope(): SharedStateScope<T> | SharedStateScope<Record<string, any>> | undefined;
|
|
138
153
|
protected syncSharedStateScopeBindingFromTree(markDirty?: boolean): boolean;
|
|
154
|
+
protected syncSharedStateScopeBindingOnTreeChange(markDirty?: boolean): boolean;
|
|
139
155
|
protected syncSharedStateActiveRegistrations(): void;
|
|
140
156
|
protected clearSharedStateActiveRegistrations(): void;
|
|
141
157
|
protected markSharedStateDirty(): void;
|
|
@@ -149,14 +165,32 @@ export declare abstract class Graphic<T extends Partial<IGraphicAttribute> = Par
|
|
|
149
165
|
};
|
|
150
166
|
protected recomputeCurrentStatePatch(): void;
|
|
151
167
|
protected buildStaticAttributeSnapshot(): Partial<T>;
|
|
168
|
+
protected buildRemovedStateAnimationAttrs(targetStateAttrs: Partial<T>, previousResolvedStatePatch?: Partial<T>): Partial<T>;
|
|
152
169
|
protected syncObjectToSnapshot(target: Record<string, any>, snapshot: Record<string, any>): AttributeDelta;
|
|
153
170
|
protected _syncAttribute(): AttributeDelta;
|
|
154
171
|
protected _syncFinalAttributeFromStaticTruth(): void;
|
|
172
|
+
protected mergeAttributeDeltaCategory(category: UpdateCategory, key: string, prev: unknown, next: unknown): number;
|
|
173
|
+
protected submitUpdateByCategory(category: UpdateCategory, forceUpdateTag?: boolean): void;
|
|
155
174
|
protected submitUpdateByDelta(delta: AttributeDelta, forceUpdateTag?: boolean): void;
|
|
175
|
+
protected submitTouchedKeyUpdate(keys: string[], forceUpdateTag?: boolean): void;
|
|
176
|
+
protected submitTouchedUpdate(needsShapeAndBounds: boolean): void;
|
|
156
177
|
protected commitBaseAttributeMutation(forceUpdateTag?: boolean, context?: ISetAttributeContext): void;
|
|
178
|
+
protected canCommitBaseAttributesByTouchedKeys(): boolean;
|
|
179
|
+
protected detachAttributeFromBaseAttributes(): void;
|
|
180
|
+
protected commitInternalBaseAttributes(params: Partial<T>, context?: ISetAttributeContext): void;
|
|
181
|
+
protected commitBaseAttributesByTouchedKeys(params: Partial<T>, forceUpdateTag?: boolean, context?: ISetAttributeContext): void;
|
|
182
|
+
protected commitBaseAttributeBySingleKey(key: string, value: any, forceUpdateTag?: boolean, context?: ISetAttributeContext): void;
|
|
157
183
|
protected applyBaseAttributes(params: Partial<T>): void;
|
|
184
|
+
applyAnimationTransientAttributes(params: Partial<T>, forceUpdateTag?: boolean, context?: ISetAttributeContext): void;
|
|
158
185
|
protected applyTransientAttributes(params: Partial<T>, forceUpdateTag?: boolean, context?: ISetAttributeContext): void;
|
|
159
186
|
protected _restoreAttributeFromStaticTruth(context?: ISetAttributeContext): void;
|
|
187
|
+
protected collectStatePatchDeltaKeys(previousPatch?: Partial<T>, nextPatch?: Partial<T>): string[];
|
|
188
|
+
protected getStaticTruthValueForStateKey(key: string, nextPatch?: Partial<T>): {
|
|
189
|
+
hasValue: boolean;
|
|
190
|
+
value: any;
|
|
191
|
+
};
|
|
192
|
+
protected syncStatePatchDeltaToTarget(target: Record<string, any>, keys: string[], nextPatch?: Partial<T>, collectCategory?: boolean): UpdateCategory;
|
|
193
|
+
protected restoreAttributeFromStatePatchDelta(previousPatch?: Partial<T>, nextPatch?: Partial<T>, context?: ISetAttributeContext): void;
|
|
160
194
|
setMode(mode: '2d' | '3d'): void;
|
|
161
195
|
set3dMode(): void;
|
|
162
196
|
set2dMode(): void;
|
|
@@ -164,6 +198,7 @@ export declare abstract class Graphic<T extends Partial<IGraphicAttribute> = Par
|
|
|
164
198
|
onAnimateBind(animate: IAnimate): void;
|
|
165
199
|
protected visitTrackedAnimates(cb: (animate: IAnimate) => void): void;
|
|
166
200
|
protected hasAnyTrackedAnimate(): any;
|
|
201
|
+
protected mayHaveTrackedAnimates(): boolean;
|
|
167
202
|
protected tryUpdateAABBBounds(): IAABBBounds;
|
|
168
203
|
protected tryUpdateOBBBounds(): IOBBBounds;
|
|
169
204
|
protected combindShadowAABBBounds(bounds: IAABBBounds): void;
|
|
@@ -172,7 +207,7 @@ export declare abstract class Graphic<T extends Partial<IGraphicAttribute> = Par
|
|
|
172
207
|
protected abstract updateAABBBounds(attribute: T, symbolTheme: Required<T>, aabbBounds: IAABBBounds, full?: boolean): IAABBBounds;
|
|
173
208
|
getClipPath(): ISymbolClass;
|
|
174
209
|
parsePath(symbolType: string): ISymbolClass | CustomSymbolClass;
|
|
175
|
-
protected doUpdateAABBBounds(full?: boolean): IAABBBounds;
|
|
210
|
+
protected doUpdateAABBBounds(full?: boolean, graphicTheme?: Required<T>): IAABBBounds;
|
|
176
211
|
updatePathProxyAABBBounds(aabbBounds: IAABBBounds): boolean;
|
|
177
212
|
protected tryUpdateGlobalAABBBounds(): IAABBBounds;
|
|
178
213
|
protected tryUpdateGlobalTransMatrix(clearTag?: boolean): Matrix;
|
|
@@ -188,6 +223,8 @@ export declare abstract class Graphic<T extends Partial<IGraphicAttribute> = Par
|
|
|
188
223
|
containsPoint(x: number, y: number, mode: IContainPointMode, picker?: IPickerService): boolean;
|
|
189
224
|
protected setWidthHeightWithoutTransform(aabbBounds: IAABBBounds): void;
|
|
190
225
|
setAttributesAndPreventAnimate(params: Partial<T>, forceUpdateTag?: boolean, context?: ISetAttributeContext, ignorePriority?: boolean): void;
|
|
226
|
+
protected captureTransientFromAttrsBeforePreventAnimate(params: Partial<T>, keys: string[], context?: ISetAttributeContext): void;
|
|
227
|
+
protected consumeTransientFromAttrsBeforePreventAnimate(diffAttrs: Record<string, any>): Record<string, any> | null;
|
|
191
228
|
setAttributes(params: Partial<T>, forceUpdateTag?: boolean, context?: ISetAttributeContext): void;
|
|
192
229
|
_setAttributes(params: Partial<T>, forceUpdateTag?: boolean, context?: ISetAttributeContext): void;
|
|
193
230
|
setAttribute(key: string, value: any, forceUpdateTag?: boolean, context?: ISetAttributeContext): void;
|
|
@@ -208,16 +245,36 @@ export declare abstract class Graphic<T extends Partial<IGraphicAttribute> = Par
|
|
|
208
245
|
}): void;
|
|
209
246
|
hasState(stateName?: string): boolean;
|
|
210
247
|
getState(stateName: string): Partial<T> | StateDefinition<T> | undefined;
|
|
211
|
-
protected
|
|
248
|
+
protected getStateResolveBaseAttrs(): Partial<T>;
|
|
249
|
+
protected syncStateResolveContext(stateResolveBaseAttrs?: Partial<T>): Partial<T>;
|
|
250
|
+
protected createStateModel(stateResolveBaseAttrs?: Partial<T>): StateModel<T>;
|
|
251
|
+
protected resolveSimpleLocalStateTransition(states: string[], previousStates: readonly string[]): {
|
|
252
|
+
changed: boolean;
|
|
253
|
+
states: string[];
|
|
254
|
+
effectiveStates: string[];
|
|
255
|
+
resolvedStateAttrs: Partial<T>;
|
|
256
|
+
} | null;
|
|
257
|
+
protected resolveGraphicStateTransition(states: string[], previousStates: readonly string[], forceResolverRefresh?: boolean): ResolvedGraphicStateTransition<T>;
|
|
258
|
+
protected normalizeSetStatesOptions(options?: boolean | ISetStatesOptions): {
|
|
259
|
+
hasAnimation?: boolean;
|
|
260
|
+
animateSameStatePatchChange: boolean;
|
|
261
|
+
shouldRefreshSameStatePatch: boolean;
|
|
262
|
+
};
|
|
263
|
+
protected sameStatePatches(left?: Partial<T>, right?: Partial<T>): boolean;
|
|
264
|
+
protected commitSameStatePatchRefresh(states: string[], hasAnimation?: boolean, animateSameStatePatchChange?: boolean): void;
|
|
212
265
|
protected resolveStateAnimateConfig(animateConfig?: IAnimateConfig): any;
|
|
213
|
-
applyStateAttrs(attrs: Partial<T>, stateNames: string[], hasAnimation?: boolean, isClear?: boolean, animateConfig?: IAnimateConfig): void;
|
|
214
|
-
updateNormalAttrs(
|
|
266
|
+
applyStateAttrs(attrs: Partial<T>, stateNames: string[], hasAnimation?: boolean, isClear?: boolean, animateConfig?: IAnimateConfig, extraAnimateAttrs?: Partial<T>): void;
|
|
267
|
+
updateNormalAttrs(_stateAttrs: Partial<T>): void;
|
|
268
|
+
protected getStateTransitionDefaultAttribute(key: string, targetAttrs?: Partial<T>): any;
|
|
269
|
+
protected shouldSkipStateTransitionDefaultAttribute(_key: string, _targetAttrs?: Partial<T>): boolean;
|
|
215
270
|
protected stopStateAnimates(type?: 'start' | 'end'): void;
|
|
216
271
|
private getNormalAttribute;
|
|
217
272
|
clearStates(hasAnimation?: boolean): void;
|
|
218
273
|
removeState(stateName: string | string[], hasAnimation?: boolean): void;
|
|
219
274
|
toggleState(stateName: string, hasAnimation?: boolean): void;
|
|
220
275
|
addState(stateName: string, keepCurrentStates?: boolean, hasAnimation?: boolean): void;
|
|
276
|
+
setStates(states?: string[] | null, hasAnimation?: boolean): void;
|
|
277
|
+
setStates(states?: string[] | null, options?: ISetStatesOptions): void;
|
|
221
278
|
useStates(states: string[], hasAnimation?: boolean): void;
|
|
222
279
|
invalidateResolver(): void;
|
|
223
280
|
private sameStateNames;
|
|
@@ -225,6 +282,7 @@ export declare abstract class Graphic<T extends Partial<IGraphicAttribute> = Par
|
|
|
225
282
|
addUpdatePaintTag(): void;
|
|
226
283
|
addUpdateShapeTag(): void;
|
|
227
284
|
addUpdateShapeAndBoundsTag(): void;
|
|
285
|
+
protected addBroadUpdateTag(): void;
|
|
228
286
|
protected updateShapeAndBoundsTagSetted(): boolean;
|
|
229
287
|
protected clearUpdateBoundTag(): void;
|
|
230
288
|
protected clearUpdatePaintTag(): void;
|
|
@@ -241,6 +299,7 @@ export declare abstract class Graphic<T extends Partial<IGraphicAttribute> = Par
|
|
|
241
299
|
protected doUpdateLocalMatrix(): void;
|
|
242
300
|
protected doUpdateGlobalMatrix(): void;
|
|
243
301
|
setStage(stage?: IStage, layer?: ILayer): void;
|
|
302
|
+
detachStageForRelease(): void;
|
|
244
303
|
setStageToShadowRoot(stage?: IStage, layer?: ILayer): void;
|
|
245
304
|
onAddStep(step: IStep): void;
|
|
246
305
|
onStop(props?: Partial<T>): void;
|
|
@@ -258,8 +317,10 @@ export declare abstract class Graphic<T extends Partial<IGraphicAttribute> = Par
|
|
|
258
317
|
private _stopAnimates;
|
|
259
318
|
stopAnimates(stopChildren?: boolean): void;
|
|
260
319
|
release(): void;
|
|
320
|
+
protected hasCustomEvent(type: string): boolean;
|
|
261
321
|
protected _dispatchCustomEvent(type: string, context?: any): any;
|
|
262
|
-
protected beforeStateUpdate(attrs: Partial<T>, prevStates: string[], nextStates: string[], hasAnimation?: boolean, isClear?: boolean): any;
|
|
322
|
+
protected beforeStateUpdate(attrs: Partial<T>, prevStates: readonly string[], nextStates: readonly string[], hasAnimation?: boolean, isClear?: boolean): any;
|
|
323
|
+
protected emitStateUpdateEvent(): void;
|
|
263
324
|
protected _emitCustomEvent(type: string, context?: any): void;
|
|
264
325
|
abstract getNoWorkAnimateAttr(): Record<string, number>;
|
|
265
326
|
abstract clone(): IGraphic<any>;
|