Tldraw/packages/tldraw/src/lib/bindings/arrow/ArrowBindingUtil.ts

22 wiersze
458 B
TypeScript

import {
BindingUtil,
TLArrowBindingProps,
arrowBindingMigrations,
arrowBindingProps,
} from '@tldraw/editor'
export class ArrowBindingUtil extends BindingUtil {
static override type = 'arrow'
static override props = arrowBindingProps
static override migrations = arrowBindingMigrations
override getDefaultProps(): Partial<TLArrowBindingProps> {
return {
isPrecise: false,
isExact: false,
normalizedAnchor: { x: 0.5, y: 0.5 },
}
}
}