You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
429 B
17 lines
429 B
import { getDiamondPoints } from '../../utils/element';
|
|
import { Polygon } from '../shapes/polygon';
|
|
/**
|
|
* <zh/> 菱形节点
|
|
*
|
|
* <en/> Diamond node
|
|
*/
|
|
export class Diamond extends Polygon {
|
|
constructor(options) {
|
|
super(options);
|
|
}
|
|
getPoints(attributes) {
|
|
const [width, height] = this.getSize(attributes);
|
|
return getDiamondPoints(width, height);
|
|
}
|
|
}
|
|
//# sourceMappingURL=diamond.js.map
|