Optionalattributes: _DeepPartial<_DeepRequired<Attributes>>Optionalopt: ConstructorOptionsOptionalopt: ModelSetOptionsOptionalopt: ModelSetOptionsOptionalopt: OptionsOptionalkey: PathOptionalopt: OptionsOptionalopt: OptionsOptionalcontext: anyOptionalcontext: anyReturn an object containing all the attributes that have changed, or false if there are no changed attributes. Useful for determining what parts of a view need to be updated and/or what attributes need to be persisted to the server. Unset attributes will be set to undefined. You can also pass an attributes object to diff against the model, determining if there would be a change.
Optionalattributes: Partial<Attributes>Optionaloptions: SilenceableDefault attributes applied to every ElementModel: the 'element' type, a
0x0 size, and an empty data object.
The default attributes.
Optionalopt: FitToChildrenOptionsOptionalopt: FitParentOptionsOptionalopt: FitToChildrenOptionsFor strongly-typed access to attributes, use the get method only privately in public getter properties.
Optionalopt: BBoxOptionsOptionalopt: GetEmbeddedCellsOptionsOptionalopt: RotateOptionsOptionalattribute: _StringKey<Attributes>Optionalattributes: AttributesOptionaloptions: anyOptionalopt: ModelSetOptionsOptionalopt: EmbeddableOptions<boolean>Optionaloptions: anyOptionalopt: OptionsOptionaleventName: string | nullOptionalcallback: EventHandler | nullOptionalcontext: anyOptionalcontext: anyOptionalcontext: anyOptionalcontext: anyOptionalcontext: anyOptionalvalue: anyOptionalopt: ModelSetOptionsOptionalopt: PositionOptionsOptionalopt: PositionOptionsFor use with models as ES classes. If you define a preinitialize method, it will be invoked when the Model is first created, before any instantiation logic is run for the Model.
Optionalattributes: AttributesOptionaloptions: anyOptionalopt: OptionsOptionalopt: OptionsOptionalopt: RemoveCellOptionsOptionalopt: OptionsOptionalopt: ModelSetOptionsOptionalopt: ModelSetOptionsOptionalopt: ModelSetOptionsOptionalopt: OptionsOptionalopt: ResizeOptionsOptionalabsolute: booleanOptionalorigin: PlainPointOptionalopt: { [key: string]: any }Optionalorigin: PlainPointOptionalopt: { [key: string]: any }For strongly-typed assignment of attributes, use the set method only privately in public setter properties.
Optionalvalue: Attributes[A]Optionaloptions: ModelSetOptionsFor strongly-typed assignment of attributes, use the set method only privately in public setter properties.
Optionalvalue: ModelSetOptions | Attributes[A]Optionaloptions: ModelSetOptionsOptionalopt: ResizeOptionsOptionalopt: ResizeOptionsOptionalopt: OptionsOptionalopt: OptionsOptionalobject: anyOptionalevents: stringOptionalcallback: EventHandlerOptionalpath: PathOptionaldelim: stringOptionalopt: ToFrontAndBackOptionsOptionalopt: ToFrontAndBackOptionsOptionalopt: ExportOptionsOptionalvalue: anyOptionalopt: TransitionOptionsOptionaldelim: stringOptionalty: numberOptionalopt: TranslateOptionsOptionaleventName: stringOptionalcallback: EventHandlerOptionalcontext: anyOptionaloptions: SilenceableOptionaloptions: anyStaticdefineStaticextendDo not use, prefer TypeScript's extend functionality.
OptionalclassProperties: anyStaticgetMarkup with a single <g> group ('__portal__') that hosts the React
portal. JointJS appends ports and highlighters after this group, so they
paint on top of your React content.
Selector of the node in this cell's view where @joint/react mounts your
RenderElement content, the '__portal__' <g> group.
Staticattributes
The element class
@joint/reactregisters and uses by default for every element you add to the graph. Its markup carries a dedicated<g>group (the'__portal__'selector) where your RenderElement output is mounted, so React content renders beneath the element's ports and highlighters. Extend it to customize the markup or default attributes, or supply anydia.Elementsubclass that implements PortalHostCell to host React content yourself.Example