@maxgraph/core
Version:
maxGraph is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.
28 lines (27 loc) • 919 B
TypeScript
import Shape from '../Shape.js';
import Rectangle from '../../geometry/Rectangle.js';
import AbstractCanvas2D from '../../canvas/AbstractCanvas2D.js';
/**
* Extends {@link Shape} to implement a rhombus (aka diamond) shape.
*
* This shape is registered under `rhombus` in {@link CellRenderer} when using {@link Graph} or calling {@link registerDefaultShapes}.
*
* @category Vertex Shapes
*/
declare class RhombusShape extends Shape {
constructor(bounds: Rectangle, fill: string, stroke: string, strokewidth?: number);
/**
* Adds roundable support.
*/
isRoundable(): boolean;
/**
* Generic painting implementation.
* @param {mxAbstractCanvas2D} c
* @param {number} x
* @param {number} y
* @param {number} w
* @param {number} h
*/
paintVertexShape(c: AbstractCanvas2D, x: number, y: number, w: number, h: number): void;
}
export default RhombusShape;