Optionalattributes: _DeepPartial<_DeepRequired<Attributes>>Optionalopt: ConstructorOptionsOptionalopt: OptionsOptionalopt: ModelSetOptionsOptionalopt: ModelSetOptionsOptionalkey: 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: SilenceableOptionalopt: ModelSetOptionsOptionalargs: { [key: string]: any }Optionalopt: ModelSetOptionsDefault attributes for every LinkModel: the 'link' type, the default link
styling, and an empty data object. The styling sets connection: true on
the line/wrapper paths, which JointJS needs to compute the link path.
The default attributes.
For strongly-typed access to attributes, use the get method only privately in public getter properties.
Optionalopt: GetEmbeddedCellsOptionsOptionalattribute: _StringKey<Attributes>Optionalopt: EmbeddableOptions<boolean>Optionalattributes: AttributesOptionaloptions: anyOptionalopt: ModelSetOptionsOptionalopt: ModelSetOptionsOptionalopt: EmbeddableOptions<boolean>Optionaloptions: anyOptionalindex: numberOptionalopt: ModelSetOptionsOptionalopt: ModelSetOptionsOptionalopt: OptionsOptionaleventName: string | nullOptionalcallback: EventHandler | nullOptionalcontext: anyOptionalcontext: anyOptionalcontext: anyOptionalcontext: anyOptionalcontext: anyFor 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: OptionsOptionalindex: numberOptionalopt: ModelSetOptionsOptionalopt: OptionsOptionalindex: numberOptionalopt: ModelSetOptionsOptionalopt: ModelSetOptionsOptionalopt: ModelSetOptionsOptionalargs: { [key: string]: any }Optionalopt: ModelSetOptionsOptionalorigin: PlainPointOptionalopt: ModelSetOptionsFor 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: ModelSetOptionsOptionalargs: EndCellArgsOptionalopt: ModelSetOptionsOptionalopt: OptionsOptionalopt: OptionsOptionalobject: anyOptionalevents: stringOptionalcallback: EventHandlerOptionalpath: PathOptionaldelim: stringOptionalopt: ModelSetOptionsOptionalargs: EndCellArgsOptionalopt: ModelSetOptionsOptionalopt: ToFrontAndBackOptionsOptionalopt: ToFrontAndBackOptionsOptionalopt: ExportOptionsOptionalvalue: anyOptionalopt: TransitionOptionsOptionaldelim: stringOptionalopt: ModelSetOptionsOptionaleventName: stringOptionalcallback: EventHandlerOptionalcontext: anyOptionaloptions: SilenceableOptionaloptions: anyOptionalindex: numberOptionalopt: ModelSetOptionsOptionalopt: ModelSetOptionsStaticdefineStaticextendDo not use, prefer TypeScript's extend functionality.
OptionalclassProperties: anyStaticgetOptionaldefaultOptionaldoubleOptionallabelMarkup with two paths: a wide, transparent wrapper that widens the pointer
hit area, and the visible line. React content (if any) mounts into the
link's root <g> via RenderLink.
Selector of the node in this cell's view where @joint/react mounts React
content, the link's root <g> ('root'). The markup keeps no dedicated
portal group so React-less links stay lean; the experimental
RenderLink mounts here when enabled.
Staticattributes
The link class
@joint/reactregisters and uses by default for every link you add to the graph. Its markup has two paths, a wide transparentwrapperthat widens the pointer hit area and the visibleline, and it mounts the experimental RenderLink output into the link's root<g>. Extend it to customize the markup or default attributes, or supply anydia.Linksubclass that implements PortalHostCell to host React content yourself.Example