UNPKG

@wcardinal/wcardinal-geditor

Version:

WebGL-based graphic editor, tester and viewer for supervisory systems

21 lines 1.06 kB
import { __extends } from "tslib"; import { ECommandShapeProperty } from "./e-command-shape-property"; var ECommandShapePropertyStrokeStyle = /** @class */ (function (_super) { __extends(ECommandShapePropertyStrokeStyle, _super); function ECommandShapePropertyStrokeStyle(selection, added, removed) { return _super.call(this, selection, [added, removed]) || this; } ECommandShapePropertyStrokeStyle.prototype.getProperty = function (shape, capability) { return shape.stroke.style; }; ECommandShapePropertyStrokeStyle.prototype.setProperty = function (shape, capability, property) { shape.stroke.style = property; }; ECommandShapePropertyStrokeStyle.prototype.initProperty = function (shape, capability, property) { var stroke = shape.stroke; stroke.style = (stroke.style & ~property[1]) | property[0]; }; return ECommandShapePropertyStrokeStyle; }(ECommandShapeProperty)); export { ECommandShapePropertyStrokeStyle }; //# sourceMappingURL=e-command-shape-property-stroke-style.js.map