boda_jsEnv/env_xbb_lastest_bo/env/SVGLineElement.js
xuxiaobo-bobo 24cbc7a3fa '0711'
2023-07-11 15:19:33 +08:00

55 lines
1.7 KiB
JavaScript

// SVGLineElement对象
SVGLineElement = function SVGLineElement() {
let arg = arguments[0];
if (arg != 'bobo' && (this instanceof SVGLineElement)) {
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor");
}
;
bodavm.toolsFunc.symbolProperty(this);
if (arg != 'bobo') {
console.log_copy('SVGLineElement 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
if (v == window) {
return 'window';
} else {
return v;
}
}));
}
;
};
bodavm.toolsFunc.safeProto(SVGLineElement, "SVGLineElement");
SVGLineElement.prototype.__proto__ = SVGGeometryElement.prototype;
SVGLineElement.__proto__ = SVGGeometryElement;
bodavm.toolsFunc.defineProperty(SVGLineElement.prototype, "x1", {
configurable: true,
enumerable: true,
get: function x1() {
return bodavm.toolsFunc.dispatch(this, SVGLineElement.prototype, "SVGLineElement", "x1_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(SVGLineElement.prototype, "y1", {
configurable: true,
enumerable: true,
get: function y1() {
return bodavm.toolsFunc.dispatch(this, SVGLineElement.prototype, "SVGLineElement", "y1_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(SVGLineElement.prototype, "x2", {
configurable: true,
enumerable: true,
get: function x2() {
return bodavm.toolsFunc.dispatch(this, SVGLineElement.prototype, "SVGLineElement", "x2_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(SVGLineElement.prototype, "y2", {
configurable: true,
enumerable: true,
get: function y2() {
return bodavm.toolsFunc.dispatch(this, SVGLineElement.prototype, "SVGLineElement", "y2_get", arguments);
},
set: undefined
});