boda_jsEnv/bodaEnv/env/SVGUseElement.js
xuxiaobo-bobo 842b34b5ca 0218
2024-02-18 15:40:48 +08:00

68 lines
2.4 KiB
JavaScript

// SVGUseElement对象
bodaEnv.memory.globlProtoObj["SVGUseElement"] = function SVGUseElement() {
let arg = arguments[0];
if (arg != 'bobo') {
bodaEnv.toolsFunc.console_copy('SVGUseElement 实例化对象 --->', bodaEnv.toolsFunc.stringify_bo(arguments, function (k, v) {
if (v == window) {
return 'window';
} else {
return v;
}
}));
}
;
};
bodaEnv.toolsFunc.safeProto(bodaEnv.memory.globlProtoObj["SVGUseElement"], "SVGUseElement");
bodaEnv.memory.globlProtoObj["SVGUseElement"].prototype.__proto__ = bodaEnv.memory.globlProtoObj["SVGGraphicsElement"].prototype;
bodaEnv.memory.globlProtoObj["SVGUseElement"].__proto__ = bodaEnv.memory.globlProtoObj["SVGGraphicsElement"];
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["SVGUseElement"].prototype, "x", {
configurable: true,
enumerable: true,
get: {
x() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["SVGUseElement"].prototype, "SVGUseElement", "x_get", arguments);
}
}.x,
set: undefined
});
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["SVGUseElement"].prototype, "y", {
configurable: true,
enumerable: true,
get: {
y() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["SVGUseElement"].prototype, "SVGUseElement", "y_get", arguments);
}
}.y,
set: undefined
});
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["SVGUseElement"].prototype, "width", {
configurable: true,
enumerable: true,
get: {
width() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["SVGUseElement"].prototype, "SVGUseElement", "width_get", arguments);
}
}.width,
set: undefined
});
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["SVGUseElement"].prototype, "height", {
configurable: true,
enumerable: true,
get: {
height() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["SVGUseElement"].prototype, "SVGUseElement", "height_get", arguments);
}
}.height,
set: undefined
});
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["SVGUseElement"].prototype, "href", {
configurable: true,
enumerable: true,
get: {
href() {
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["SVGUseElement"].prototype, "SVGUseElement", "href_get", arguments);
}
}.href,
set: undefined
});