fabric
Version:
Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.
41 lines (36 loc) • 965 B
text/typescript
export interface BorderProps {
/**
* Color of controlling borders of an object (when it's active)
* @type String
* @default rgb(178,204,255)
*/
borderColor: string;
/**
* Array specifying dash pattern of an object's borders (hasBorder must be true)
* @since 1.6.2
* @type Array | null
* default null;
*/
borderDashArray: number[] | null;
/**
* When set to `false`, object's controlling borders are not rendered
* @type Boolean
* @default
*/
hasBorders: boolean;
/**
* Opacity of object's controlling borders when object is active and moving
* @type Number
* @default 0.4
*/
borderOpacityWhenMoving: number;
/**
* Scale factor of object's controlling borders
* bigger number will make a thicker border
* border is 1, so this is basically a border thickness
* since there is no way to change the border itself.
* @type Number
* @default 1
*/
borderScaleFactor: number;
}