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