Skip to content

Commit

Permalink
filter out non geometry shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc authored and logseq-cldwalker committed Dec 14, 2023
1 parent 98b615b commit fcb7435
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tldraw/packages/core/src/lib/TLApp/TLApp.ts
Expand Up @@ -15,7 +15,7 @@ import type {
TLSubscriptionEventInfo,
TLSubscriptionEventName,
} from '../../types'
import { AlignType, DistributeType } from '../../types'
import { AlignType, DistributeType, Geometry } from '../../types'
import { BoundsUtils, createNewLineBinding, dedupe, isNonNullable, uniqueId } from '../../utils'
import type { TLShape, TLShapeConstructor, TLShapeModel } from '../shapes'
import { TLApi } from '../TLApi'
Expand Down Expand Up @@ -847,6 +847,7 @@ export class TLApp<
'select.pointingSelectedShape',
) &&
selectedShapesArray.length === 1 &&
Object.values(Geometry).some((geometry: string) => geometry === this.selectedShapesArray[0].type) &&
!this.readOnly
)
}
Expand Down

0 comments on commit fcb7435

Please sign in to comment.