Files
lan-manager/web/node_modules/@antv/g-svg/lib/defs/clip.js
openclaw 0a5f6a8047 Initial commit: Lan-manager project code
- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs

Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
2026-04-20 00:52:58 +08:00

32 lines
858 B
JavaScript

"use strict";
/**
* @fileoverview clip
* @author dengfuping_develop@163.com
*/
Object.defineProperty(exports, "__esModule", { value: true });
var util_1 = require("@antv/util");
var dom_1 = require("../util/dom");
var Clip = /** @class */ (function () {
function Clip(cfg) {
this.type = 'clip';
this.cfg = {};
var el = dom_1.createSVGElement('clipPath');
this.el = el;
this.id = util_1.uniqueId('clip_');
el.id = this.id;
var shapeEl = cfg.cfg.el;
el.appendChild(shapeEl);
this.cfg = cfg;
return this;
}
Clip.prototype.match = function () {
return false;
};
Clip.prototype.remove = function () {
var el = this.el;
el.parentNode.removeChild(el);
};
return Clip;
}());
exports.default = Clip;
//# sourceMappingURL=clip.js.map