hrw-certificate-editor
Version:
Design Editor Tools with React.js + ant.design + fabric.js
21 lines • 845 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const fabric_1 = require("fabric");
const constants_1 = require("../../constant/constants");
const objects_1 = require("../../../../canvas/objects");
const ActionNode = fabric_1.fabric.util.createClass(objects_1.Node, {
initialize(options) {
options = options || {};
options.fill = constants_1.NODE_COLORS.ACTION.fill;
options.stroke = constants_1.NODE_COLORS.ACTION.border;
this.callSuper('initialize', options);
},
});
ActionNode.fromObject = function (options, callback) {
return callback(new ActionNode(options));
};
window.fabric.ActionNode = ActionNode;
window.fabric.DebugNode = ActionNode;
window.fabric.EmailNode = ActionNode;
exports.default = ActionNode;
//# sourceMappingURL=ActionNode.js.map