|
@@ -56,7 +56,8 @@ class PluginState {
|
|
cameraSnapshots: p.cameraSnapshots ? this.cameraSnapshots.getStateSnapshot() : void 0,
|
|
cameraSnapshots: p.cameraSnapshots ? this.cameraSnapshots.getStateSnapshot() : void 0,
|
|
canvas3d: p.canvas3d ? {
|
|
canvas3d: p.canvas3d ? {
|
|
props: this.plugin.canvas3d.props
|
|
props: this.plugin.canvas3d.props
|
|
- } : void 0
|
|
|
|
|
|
+ } : void 0,
|
|
|
|
+ durationInMs: params && params.durationInMs
|
|
};
|
|
};
|
|
}
|
|
}
|
|
|
|
|
|
@@ -111,6 +112,7 @@ namespace PluginState {
|
|
|
|
|
|
export type CameraTransitionStyle = 'instant' | 'animate'
|
|
export type CameraTransitionStyle = 'instant' | 'animate'
|
|
export const GetSnapshotParams = {
|
|
export const GetSnapshotParams = {
|
|
|
|
+ durationInMs: PD.Numeric(1500, { min: 100, max: 15000, step: 100 }, { label: 'Duration in MS' }),
|
|
data: PD.Boolean(true),
|
|
data: PD.Boolean(true),
|
|
behavior: PD.Boolean(false),
|
|
behavior: PD.Boolean(false),
|
|
animation: PD.Boolean(true),
|
|
animation: PD.Boolean(true),
|
|
@@ -120,7 +122,7 @@ namespace PluginState {
|
|
cameraSnapshots: PD.Boolean(false),
|
|
cameraSnapshots: PD.Boolean(false),
|
|
cameraTranstionStyle: PD.Select<CameraTransitionStyle>('animate', [['animate', 'Animate'], ['instant', 'Instant']])
|
|
cameraTranstionStyle: PD.Select<CameraTransitionStyle>('animate', [['animate', 'Animate'], ['instant', 'Instant']])
|
|
};
|
|
};
|
|
- export type GetSnapshotParams = Partial<PD.Value<typeof GetSnapshotParams>>
|
|
|
|
|
|
+ export type GetSnapshotParams = Partial<PD.Values<typeof GetSnapshotParams>>
|
|
export const DefaultGetSnapshotParams = PD.getDefaultValues(GetSnapshotParams);
|
|
export const DefaultGetSnapshotParams = PD.getDefaultValues(GetSnapshotParams);
|
|
|
|
|
|
export interface Snapshot {
|
|
export interface Snapshot {
|
|
@@ -135,6 +137,7 @@ namespace PluginState {
|
|
cameraSnapshots?: CameraSnapshotManager.StateSnapshot,
|
|
cameraSnapshots?: CameraSnapshotManager.StateSnapshot,
|
|
canvas3d?: {
|
|
canvas3d?: {
|
|
props?: Canvas3DProps
|
|
props?: Canvas3DProps
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ durationInMs?: number
|
|
}
|
|
}
|
|
}
|
|
}
|