BookmarkShapeUtil
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').TLPropsMigrations
References
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
type
Public static property
Signature
static type: 'bookmark'
Methods
component()
Public method
Signature
component(shape: TLBookmarkShape): import('react/jsx-runtime').JSX.Element
Parameters
Name | Description |
---|---|
|
|
Returns
import('react/jsx-runtime').JSX.Element
References
getDefaultProps()
Public method
Signature
getDefaultProps(): TLBookmarkShape['props']
References
indicator()
Public method
Signature
indicator(shape: TLBookmarkShape): import('react/jsx-runtime').JSX.Element
Parameters
Name | Description |
---|---|
|
|
Returns
import('react/jsx-runtime').JSX.Element
References