diff --git a/examples/core-example-advanced/src/state/actions/performance/setTransformPerformanceMode.ts b/examples/core-example-advanced/src/state/actions/performance/setTransformPerformanceMode.ts index 54d3c1d49..c88d71cf8 100644 --- a/examples/core-example-advanced/src/state/actions/performance/setTransformPerformanceMode.ts +++ b/examples/core-example-advanced/src/state/actions/performance/setTransformPerformanceMode.ts @@ -2,5 +2,5 @@ import { TLPerformanceMode } from '@tldraw/core' import type { Action } from 'state/constants' export const setTransformPerformanceMode: Action = (data) => { - data.performanceMode = TLPerformanceMode.TransformSelected + data.performanceMode = undefined } diff --git a/examples/core-example-advanced/src/state/actions/performance/setTranslatePerformanceMode.ts b/examples/core-example-advanced/src/state/actions/performance/setTranslatePerformanceMode.ts index 03ab4e323..f5becb75c 100644 --- a/examples/core-example-advanced/src/state/actions/performance/setTranslatePerformanceMode.ts +++ b/examples/core-example-advanced/src/state/actions/performance/setTranslatePerformanceMode.ts @@ -2,5 +2,5 @@ import { TLPerformanceMode } from '@tldraw/core' import type { Action } from 'state/constants' export const setTranslatePerformanceMode: Action = (data) => { - data.performanceMode = TLPerformanceMode.TranslateSelected + data.performanceMode = undefined } diff --git a/packages/tldraw/src/state/sessions/ArrowSession/ArrowSession.ts b/packages/tldraw/src/state/sessions/ArrowSession/ArrowSession.ts index 9807bc35b..f450fa633 100644 --- a/packages/tldraw/src/state/sessions/ArrowSession/ArrowSession.ts +++ b/packages/tldraw/src/state/sessions/ArrowSession/ArrowSession.ts @@ -18,7 +18,7 @@ import { TLPerformanceMode, Utils } from '@tldraw/core' export class ArrowSession extends BaseSession { type = SessionType.Arrow - performanceMode = TLPerformanceMode.TransformSelected + performanceMode = undefined status = TDStatus.TranslatingHandle newStartBindingId = Utils.uniqueId() draggedBindingId = Utils.uniqueId() diff --git a/packages/tldraw/src/state/sessions/DrawSession/DrawSession.ts b/packages/tldraw/src/state/sessions/DrawSession/DrawSession.ts index 42b6a3f84..d9ffeafb2 100644 --- a/packages/tldraw/src/state/sessions/DrawSession/DrawSession.ts +++ b/packages/tldraw/src/state/sessions/DrawSession/DrawSession.ts @@ -6,7 +6,7 @@ import { BaseSession } from '../BaseSession' export class DrawSession extends BaseSession { type = SessionType.Draw - performanceMode = TLPerformanceMode.TransformSelected + performanceMode = undefined status = TDStatus.Creating topLeft: number[] points: number[][] diff --git a/packages/tldraw/src/state/sessions/HandleSession/HandleSession.ts b/packages/tldraw/src/state/sessions/HandleSession/HandleSession.ts index 83f68996d..82dc6fd95 100644 --- a/packages/tldraw/src/state/sessions/HandleSession/HandleSession.ts +++ b/packages/tldraw/src/state/sessions/HandleSession/HandleSession.ts @@ -7,7 +7,7 @@ import { TLPerformanceMode } from '@tldraw/core' export class HandleSession extends BaseSession { type = SessionType.Handle - performanceMode = TLPerformanceMode.TransformSelected + performanceMode = undefined status = TDStatus.TranslatingHandle commandId: string topLeft: number[] diff --git a/packages/tldraw/src/state/sessions/RotateSession/RotateSession.ts b/packages/tldraw/src/state/sessions/RotateSession/RotateSession.ts index 9dd915eb9..8810a4157 100644 --- a/packages/tldraw/src/state/sessions/RotateSession/RotateSession.ts +++ b/packages/tldraw/src/state/sessions/RotateSession/RotateSession.ts @@ -8,7 +8,7 @@ import type { TldrawApp } from '../../internal' export class RotateSession extends BaseSession { type = SessionType.Rotate status = TDStatus.Transforming - performanceMode = TLPerformanceMode.TranslateSelected + performanceMode = undefined delta = [0, 0] commonBoundsCenter: number[] initialAngle: number diff --git a/packages/tldraw/src/state/sessions/TransformSession/TransformSession.ts b/packages/tldraw/src/state/sessions/TransformSession/TransformSession.ts index ea3ea7692..6a0faddda 100644 --- a/packages/tldraw/src/state/sessions/TransformSession/TransformSession.ts +++ b/packages/tldraw/src/state/sessions/TransformSession/TransformSession.ts @@ -18,7 +18,7 @@ type SnapInfo = export class TransformSession extends BaseSession { type = SessionType.Transform - performanceMode = TLPerformanceMode.TransformSelected + performanceMode = undefined status = TDStatus.Transforming scaleX = 1 scaleY = 1 diff --git a/packages/tldraw/src/state/sessions/TransformSingleSession/TransformSingleSession.ts b/packages/tldraw/src/state/sessions/TransformSingleSession/TransformSingleSession.ts index 4861a013b..9288ee830 100644 --- a/packages/tldraw/src/state/sessions/TransformSingleSession/TransformSingleSession.ts +++ b/packages/tldraw/src/state/sessions/TransformSingleSession/TransformSingleSession.ts @@ -26,7 +26,7 @@ type SnapInfo = export class TransformSingleSession extends BaseSession { type = SessionType.TransformSingle status = TDStatus.Transforming - performanceMode = TLPerformanceMode.TransformSelected + performanceMode = undefined transformType: TLBoundsEdge | TLBoundsCorner scaleX = 1 scaleY = 1 diff --git a/packages/tldraw/src/state/sessions/TranslateSession/TranslateSession.ts b/packages/tldraw/src/state/sessions/TranslateSession/TranslateSession.ts index 247ac7310..776107dc5 100644 --- a/packages/tldraw/src/state/sessions/TranslateSession/TranslateSession.ts +++ b/packages/tldraw/src/state/sessions/TranslateSession/TranslateSession.ts @@ -48,7 +48,7 @@ type SnapInfo = } export class TranslateSession extends BaseSession { - performanceMode = TLPerformanceMode.TranslateSelected + performanceMode = undefined type = SessionType.Translate status = TDStatus.Translating delta = [0, 0]