updates package
This commit is contained in:
parent
5fa09a7e4a
commit
0f2887a039
1 changed files with 7 additions and 9 deletions
|
@ -55,12 +55,13 @@ export const Page = React.memo(function Page<T extends TLShape, M extends Record
|
||||||
|
|
||||||
let _hideCloneHandles = true
|
let _hideCloneHandles = true
|
||||||
|
|
||||||
|
// Does the selected shape have handles?
|
||||||
let shapeWithHandles: TLShape | undefined = undefined
|
let shapeWithHandles: TLShape | undefined = undefined
|
||||||
|
|
||||||
if (selectedIds.length === 1) {
|
const selectedShapes = selectedIds.map((id) => page.shapes[id])
|
||||||
const id = selectedIds[0]
|
|
||||||
|
|
||||||
const shape = page.shapes[id]
|
if (selectedShapes.length === 1) {
|
||||||
|
const shape = selectedShapes[0]
|
||||||
|
|
||||||
const utils = shapeUtils[shape.type] as TLShapeUtil<any, any>
|
const utils = shapeUtils[shape.type] as TLShapeUtil<any, any>
|
||||||
|
|
||||||
|
@ -78,10 +79,7 @@ export const Page = React.memo(function Page<T extends TLShape, M extends Record
|
||||||
<ShapeNode key={node.shape.id} utils={shapeUtils} {...node} />
|
<ShapeNode key={node.shape.id} utils={shapeUtils} {...node} />
|
||||||
))}
|
))}
|
||||||
{!hideIndicators &&
|
{!hideIndicators &&
|
||||||
selectedIds
|
selectedShapes.map((shape) => (
|
||||||
.map((id) => page.shapes[id])
|
|
||||||
.filter(Boolean)
|
|
||||||
.map((shape) => (
|
|
||||||
<ShapeIndicator key={'selected_' + shape.id} shape={shape} meta={meta} isSelected />
|
<ShapeIndicator key={'selected_' + shape.id} shape={shape} meta={meta} isSelected />
|
||||||
))}
|
))}
|
||||||
{!hideIndicators && hoveredId && (
|
{!hideIndicators && hoveredId && (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue