Remove performance modes (for now)
This commit is contained in:
parent
d1fb7d1115
commit
297486bb34
9 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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[][]
|
||||
|
|
|
@ -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[]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue