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

53 lines
1.8 KiB
JavaScript

// XRDepthInformation对象
XRDepthInformation = function XRDepthInformation() {
let arg = arguments[0];
if (arg != 'bobo' && (this instanceof XRDepthInformation)) {
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor");
}
;
bodavm.toolsFunc.symbolProperty(this);
if (arg != 'bobo') {
console.log_copy('XRDepthInformation 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
if (v == window) {
return 'window';
} else {
return v;
}
}));
}
;
};
bodavm.toolsFunc.safeProto(XRDepthInformation, "XRDepthInformation");
bodavm.toolsFunc.defineProperty(XRDepthInformation.prototype, "width", {
configurable: true,
enumerable: true,
get: function width() {
return bodavm.toolsFunc.dispatch(this, XRDepthInformation.prototype, "XRDepthInformation", "width_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(XRDepthInformation.prototype, "height", {
configurable: true,
enumerable: true,
get: function height() {
return bodavm.toolsFunc.dispatch(this, XRDepthInformation.prototype, "XRDepthInformation", "height_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(XRDepthInformation.prototype, "normDepthBufferFromNormView", {
configurable: true,
enumerable: true,
get: function normDepthBufferFromNormView() {
return bodavm.toolsFunc.dispatch(this, XRDepthInformation.prototype, "XRDepthInformation", "normDepthBufferFromNormView_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(XRDepthInformation.prototype, "rawValueToMeters", {
configurable: true,
enumerable: true,
get: function rawValueToMeters() {
return bodavm.toolsFunc.dispatch(this, XRDepthInformation.prototype, "XRDepthInformation", "rawValueToMeters_get", arguments);
},
set: undefined
});