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').TLShapePropsMigrations
References

TLShapePropsMigrations


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: {
  assetId: T.Validator<null | TLAssetId>
  h: T.Validator<number>
  url: T.Validator<string>
  w: T.Validator<number>
}
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


AssetToolbarItemBreakPointProvider