UNPKG

illustrator.js

Version:

JavaScript image processing library

32 lines (31 loc) 784 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ShadowTool = void 0; const ToolBox_1 = require("../base/ToolBox"); class ShadowTool extends ToolBox_1.ToolBox { setColor(color) { this.history.push((ctx) => { ctx.shadowColor = color; }); return this; } setBlur(amount) { this.history.push((ctx) => { ctx.shadowBlur = amount; }); return this; } setOffsetX(amount) { this.history.push((ctx) => { ctx.shadowOffsetX = amount; }); return this; } setOffsetY(amount) { this.history.push((ctx) => { ctx.shadowOffsetY = amount; }); return this; } } exports.ShadowTool = ShadowTool;