mirror of
https://github.com/ylw00/qxVm.git
synced 2025-04-12 12:06:58 +08:00
74 lines
3.5 KiB
JavaScript
74 lines
3.5 KiB
JavaScript
DOMRectReadOnly = function DOMRectReadOnly(createObj_key) {
|
|
if (createObj_key !== lwVm.memory.$createObj_key) {
|
|
throw new TypeError("Illegal constructor");
|
|
}
|
|
lwVm.memory.private_data.set(this, {})
|
|
}; lwVm.safefunction(DOMRectReadOnly);
|
|
|
|
; (function () {
|
|
const $safe_get_attribute = ['bottom', 'height', 'left', 'right', 'top', 'width', 'x', 'y'];
|
|
const $safe_set_attribute = [];
|
|
const $safe_func_attribute = ['toJSON'];
|
|
|
|
DOMRectReadOnly.prototype = {
|
|
get bottom() {
|
|
if (!DOMRectReadOnly.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
let result = 0;;
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Get', 'DOMRectReadOnly', 'bottom', arguments, result);
|
|
return result;
|
|
},
|
|
get height() {
|
|
if (!DOMRectReadOnly.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
let result = 0;;
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Get', 'DOMRectReadOnly', 'height', arguments, result);
|
|
return result;
|
|
},
|
|
get left() {
|
|
if (!DOMRectReadOnly.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
let result = 0;;
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Get', 'DOMRectReadOnly', 'left', arguments, result);
|
|
return result;
|
|
},
|
|
get right() {
|
|
if (!DOMRectReadOnly.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
let result = 0;;
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Get', 'DOMRectReadOnly', 'right', arguments, result);
|
|
return result;
|
|
},
|
|
toJSON() {
|
|
if (!DOMRectReadOnly.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
let result = undefined;
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Func', 'DOMRectReadOnly', 'toJSON', arguments, result);
|
|
return result;
|
|
},
|
|
get top() {
|
|
if (!DOMRectReadOnly.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
let result = 0;;
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Get', 'DOMRectReadOnly', 'top', arguments, result);
|
|
return result;
|
|
},
|
|
get width() {
|
|
if (!DOMRectReadOnly.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
let result = 0;;
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Get', 'DOMRectReadOnly', 'width', arguments, result);
|
|
return result;
|
|
},
|
|
get x() {
|
|
if (!DOMRectReadOnly.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
let result = 0;;
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Get', 'DOMRectReadOnly', 'x', arguments, result);
|
|
return result;
|
|
},
|
|
get y() {
|
|
if (!DOMRectReadOnly.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
|
let result = 0;;
|
|
if (lwVm.config.logOpen=== true) lwVm.logAdd('Get', 'DOMRectReadOnly', 'y', arguments, result);
|
|
return result;
|
|
},
|
|
}
|
|
lwVm.rename(DOMRectReadOnly.prototype, "DOMRectReadOnly");
|
|
lwVm.safeDescriptor_addConstructor(DOMRectReadOnly);
|
|
lwVm.safe_Objattribute(DOMRectReadOnly, $safe_get_attribute, $safe_set_attribute, $safe_func_attribute);
|
|
})();
|
|
|