/**
@module ember-flexberry-designer
*/
import joint from 'npm:jointjs';
import FdUmlLink from './fd-uml-link';
/**
An object that describes a link of the inheritance type on the UML diagram.
@class FdUmlGeneralization
@extends FdUmlLink
*/
export default FdUmlLink.extend({
/**
See {{#crossLink "FdUmlPrimitive/JointJS:method"}}here{{/crossLink}}.
@method JointJS
*/
JointJS() {
let properties = this.getProperties('id', 'source', 'target', 'vertices');
return new Generalization(properties);
},
});
/**
Defines the JointJS link, which represents a generalization in the UML diagram.
@for FdUmlGeneralization
@class Generalization
@extends Link
@namespace flexberry.uml
@constructor
*/
export let Generalization = joint.dia.Link.define('flexberry.uml.Generalization', {
attrs: { '.marker-target': { d: 'M 20 0 L 0 10 L 20 20 z', fill: 'white' } },
});