mirror of https://github.com/logseq/logseq
filter out non geometry shapes
parent
98b615b22d
commit
fcb7435b3b
|
@ -15,7 +15,7 @@ import type {
|
||||||
TLSubscriptionEventInfo,
|
TLSubscriptionEventInfo,
|
||||||
TLSubscriptionEventName,
|
TLSubscriptionEventName,
|
||||||
} from '../../types'
|
} from '../../types'
|
||||||
import { AlignType, DistributeType } from '../../types'
|
import { AlignType, DistributeType, Geometry } from '../../types'
|
||||||
import { BoundsUtils, createNewLineBinding, dedupe, isNonNullable, uniqueId } from '../../utils'
|
import { BoundsUtils, createNewLineBinding, dedupe, isNonNullable, uniqueId } from '../../utils'
|
||||||
import type { TLShape, TLShapeConstructor, TLShapeModel } from '../shapes'
|
import type { TLShape, TLShapeConstructor, TLShapeModel } from '../shapes'
|
||||||
import { TLApi } from '../TLApi'
|
import { TLApi } from '../TLApi'
|
||||||
|
@ -847,6 +847,7 @@ export class TLApp<
|
||||||
'select.pointingSelectedShape',
|
'select.pointingSelectedShape',
|
||||||
) &&
|
) &&
|
||||||
selectedShapesArray.length === 1 &&
|
selectedShapesArray.length === 1 &&
|
||||||
|
Object.values(Geometry).some((geometry: string) => geometry === this.selectedShapesArray[0].type) &&
|
||||||
!this.readOnly
|
!this.readOnly
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue