UNPKG

hrw-certificate-editor

Version:

Design Editor Tools with React.js + ant.design + fabric.js

22 lines 879 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const fabric_1 = require("fabric"); const constants_1 = require("../../constant/constants"); const objects_1 = require("../../../../canvas/objects"); const LogicNode = fabric_1.fabric.util.createClass(objects_1.Node, { initialize(options) { options = options || {}; options.fill = constants_1.NODE_COLORS.LOGIC.fill; options.stroke = constants_1.NODE_COLORS.LOGIC.border; this.callSuper('initialize', options); }, }); LogicNode.fromObject = function (options, callback) { return callback(new LogicNode(options)); }; window.fabric.LogicNode = LogicNode; window.fabric.DelayNode = LogicNode; window.fabric.FunctionNode = LogicNode; window.fabric.BroadcastNode = LogicNode; exports.default = LogicNode; //# sourceMappingURL=LogicNode.js.map