BlockSuite API Documentation / @blocksuite/affine-gfx-group
@blocksuite/affine-gfx-group
Classes
GroupElementView
The methods that a graphic element should implement. It is already included in the GfxCompatibleInterface interface.
Extends
Constructors
Properties
type
statictype:string='group'
Overrides
Accessors
Methods
onCreated()
onCreated():
void
Returns
void
Overrides
Variables
createGroupCommand
constcreateGroupCommand:Command<{elements:GfxModel[] |string[]; }, {groupId:string; }>
createGroupFromSelectedCommand
constcreateGroupFromSelectedCommand:Command<{ }, {groupId:string; }>
group
constgroup:ElementRenderer<GroupElementModel>
GroupDomRendererExtension
constGroupDomRendererExtension:ExtensionType
GroupElementRendererExtension
constGroupElementRendererExtension:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<ElementRenderer<GroupElementModel>>
GroupInteraction
constGroupInteraction:ExtensionType
groupToMarkdownAdapterMatcher
constgroupToMarkdownAdapterMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<ElementToMarkdownAdapterMatcher>
groupToolbarConfig
constgroupToolbarConfig:object
Type Declaration
actions
readonlyactions: [{icon:TemplateResult<1>;id:"a.insert-into-page";label:"Insert into Page";tooltip:"Insert into Page";when: (ctx) =>boolean;run:void; }, {icon:TemplateResult<1>;id:"b.rename";tooltip:"Rename";when: (ctx) =>boolean;run:void; }, {icon:TemplateResult<1>;id:"b.ungroup";tooltip:"Ungroup";run:void; }]
when()
readonlywhen: (ctx) =>boolean
Parameters
ctx
ToolbarContext
Returns
boolean
groupToolbarExtension
constgroupToolbarExtension:ExtensionType
groupToPlainTextAdapterMatcher
constgroupToPlainTextAdapterMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<ElementToPlainTextAdapterMatcher>
ungroupCommand
constungroupCommand:Command<{group:GroupElementModel; }, { }>
Functions
mountGroupTitleEditor()
mountGroupTitleEditor(
group,edgeless):void
Parameters
group
edgeless
Returns
void