@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
31 lines • 1.07 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DrawStyle = void 0;
class DrawStyle {
constructor(data) {
let drawModeDefault = "stroke";
this.drawMode = typeof (data === null || data === void 0 ? void 0 : data.drawMode) !== "undefined" ? data === null || data === void 0 ? void 0 : data.drawMode : drawModeDefault;
}
static getDrawModeDefault() {
return "stroke";
}
static getDrawModeDescription() {
return "Selects the draw style of an drawable shape.\n\n* fill = fill the shape\n* stroke = draw the outlines of the shape\n* fillAndStroke = draw the outlines and fill the shape";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new DrawStyle(data);
}
toJson() {
return {
'drawMode': this.drawMode,
};
}
clone() {
return DrawStyle.fromJson(this.toJson());
}
}
exports.DrawStyle = DrawStyle;
//# sourceMappingURL=DrawStyle.js.map