mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 08:29:24 +08:00
53 lines
1.8 KiB
JavaScript
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
|
|
}); |