UNPKG

hrw-certificate-editor

Version:

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

21 lines 833 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 DataNode = fabric_1.fabric.util.createClass(objects_1.Node, { initialize(options) { options = options || {}; options.fill = constants_1.NODE_COLORS.DATA.fill; options.stroke = constants_1.NODE_COLORS.DATA.border; this.callSuper('initialize', options); }, }); DataNode.fromObject = function (options, callback) { return callback(new DataNode(options)); }; window.fabric.DataNode = DataNode; window.fabric.CounterSetNode = DataNode; window.fabric.CounterGetNode = DataNode; exports.default = DataNode; //# sourceMappingURL=DataNode.js.map