mirror of
https://github.com/projectstorm/react-diagrams.git
synced 2025-08-16 18:15:18 +08:00
13 lines
392 B
TypeScript
13 lines
392 B
TypeScript
import { NodeModel } from '@projectstorm/react-diagrams';
|
|
import { DiamondPortModel } from './DiamondPortModel';
|
|
|
|
export class DiamondNodeModel extends NodeModel {
|
|
constructor() {
|
|
super('diamond');
|
|
this.addPort(new DiamondPortModel('top'));
|
|
this.addPort(new DiamondPortModel('left'));
|
|
this.addPort(new DiamondPortModel('bottom'));
|
|
this.addPort(new DiamondPortModel('right'));
|
|
}
|
|
}
|