dont connect arrows to preview shapes

pull/106/head
Lu[ke] Wilson 2 years ago
parent 3b7fa26a00
commit ff5b64fde5

@ -6,6 +6,7 @@ import {
HTMLContainer,
SvgExportContext,
TLBaseShape,
TLShapeUtilCanBindOpts,
TldrawUiIcon,
Vec,
stopEventPropagation,
@ -48,6 +49,11 @@ export class PreviewShapeUtil extends BaseBoxShapeUtil<PreviewShape> {
override canEdit = (shape: PreviewShape) =>
shape.props.parts.length > 0 || shape.props.html.length > 0
override canBind = ({ bindingType }: TLShapeUtilCanBindOpts<PreviewShape>) => {
if (bindingType === 'arrow') return false
return true
}
override isAspectRatioLocked = (_shape: PreviewShape) => false
override canResize = (_shape: PreviewShape) => true

Loading…
Cancel
Save