Table of contents

Public class

Signature
class BookmarkShapeUtil extends BaseBoxShapeUtil<TLBookmarkShape> {}
References

BaseBoxShapeUtil, TLBookmarkShape

Source

packages/tldraw/src/lib/shapes/bookmark/BookmarkShapeUtil.tsx


Properties

canResize

Public property

Signature
canResize: () => boolean

hideSelectionBoundsFg

Public property

Signature
hideSelectionBoundsFg: () => boolean

migrations

Public static property

Signature
static migrations: import('@tldraw/editor').Migrations
References

Migrations


onBeforeCreate

Public property

Signature
onBeforeCreate?: TLOnBeforeCreateHandler<TLBookmarkShape>
References

TLOnBeforeCreateHandler, TLBookmarkShape


onBeforeUpdate

Public property

Signature
onBeforeUpdate?: TLOnBeforeUpdateHandler<TLBookmarkShape>
References

TLOnBeforeUpdateHandler, TLBookmarkShape


props

Public static property

Signature
static props: {
  w: T.Validator<number>
  h: T.Validator<number>
  assetId: T.Validator<null | TLAssetId>
  url: T.Validator<string>
}
References

T.Validator, TLAssetId


type

Public static property

Signature
static type: 'bookmark'

Methods

component()

Public method

Signature
component(shape: TLBookmarkShape): import('react/jsx-runtime').JSX.Element
Parameters
NameDescription

shape

TLBookmarkShape
Returns
import('react/jsx-runtime').JSX.Element
References

TLBookmarkShape


getDefaultProps()

Public method

Signature
getDefaultProps(): TLBookmarkShape['props']
References

TLBookmarkShape


indicator()

Public method

Signature
indicator(shape: TLBookmarkShape): import('react/jsx-runtime').JSX.Element
Parameters
NameDescription

shape

TLBookmarkShape
Returns
import('react/jsx-runtime').JSX.Element
References

TLBookmarkShape


ArrowShapeUtilBreakPointProvider