@predy-js/render-interface 0.3.4-beta.107 → 0.3.4-beta.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +21 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -2
- package/dist/index.mjs.map +1 -1
- package/dist/src/render/MarsRenderer.d.ts +1 -0
- package/dist/src/webgl/GLGPURenderer.d.ts +4 -3
- package/dist/statistic.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* Name: @predy-js/render-interface
|
3
3
|
* Description: undefined
|
4
4
|
* Author: undefined
|
5
|
-
* Version: v0.3.4-beta.
|
5
|
+
* Version: v0.3.4-beta.108
|
6
6
|
*/
|
7
7
|
|
8
8
|
'use strict';
|
@@ -2908,6 +2908,14 @@ var GLGPURenderer = /** @class */ (function () {
|
|
2908
2908
|
gl.canvas.addEventListener(GL_LOST_EVENT, this.onContextLose);
|
2909
2909
|
}
|
2910
2910
|
}
|
2911
|
+
Object.defineProperty(GLGPURenderer.prototype, "pixelRatio", {
|
2912
|
+
get: function () {
|
2913
|
+
var cvs = this.gl.canvas;
|
2914
|
+
return cvs.width / cvs.getBoundingClientRect().width;
|
2915
|
+
},
|
2916
|
+
enumerable: false,
|
2917
|
+
configurable: true
|
2918
|
+
});
|
2911
2919
|
GLGPURenderer.prototype.requestAnimationFrame = function (cb) {
|
2912
2920
|
return window.requestAnimationFrame(cb);
|
2913
2921
|
};
|
@@ -3151,6 +3159,10 @@ var GLGPURenderer = /** @class */ (function () {
|
|
3151
3159
|
GLGPURenderer.prototype.createRenderFrame = function (options) {
|
3152
3160
|
throw Error();
|
3153
3161
|
};
|
3162
|
+
GLGPURenderer.prototype.invalid = function () {
|
3163
|
+
};
|
3164
|
+
GLGPURenderer.prototype.resume = function () {
|
3165
|
+
};
|
3154
3166
|
return GLGPURenderer;
|
3155
3167
|
}());
|
3156
3168
|
|
@@ -5826,6 +5838,13 @@ var MarsRenderer = /** @class */ (function () {
|
|
5826
5838
|
enumerable: false,
|
5827
5839
|
configurable: true
|
5828
5840
|
});
|
5841
|
+
Object.defineProperty(MarsRenderer.prototype, "pixelRatio", {
|
5842
|
+
get: function () {
|
5843
|
+
return this.internal.pixelRatio;
|
5844
|
+
},
|
5845
|
+
enumerable: false,
|
5846
|
+
configurable: true
|
5847
|
+
});
|
5829
5848
|
MarsRenderer.prototype.createBuffer = function (options) {
|
5830
5849
|
var internal = this.internal;
|
5831
5850
|
if (!internal) {
|
@@ -5938,7 +5957,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
|
|
5938
5957
|
return MarsSharedGeometry;
|
5939
5958
|
}(MarsGeometry));
|
5940
5959
|
|
5941
|
-
consoleLog('version: ' + "0.3.4-beta.
|
5960
|
+
consoleLog('version: ' + "0.3.4-beta.108");
|
5942
5961
|
var ModuleMsg = 'RI Package: @predy-js/render-interface';
|
5943
5962
|
|
5944
5963
|
var RI = /*#__PURE__*/Object.freeze({
|