@deck.gl/arcgis 9.0.35 → 9.1.0-beta.1
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/commons.d.ts +2 -2
- package/dist/commons.d.ts.map +1 -1
- package/dist/commons.js +30 -24
- package/dist/deck-layer-view-2d.d.ts.map +1 -1
- package/dist/deck-layer-view-2d.js +3 -0
- package/dist/deck-layer.d.ts.map +1 -1
- package/dist/deck-layer.js +3 -0
- package/dist/deck-props.d.ts.map +1 -1
- package/dist/deck-props.js +3 -0
- package/dist/deck-renderer.d.ts +1 -0
- package/dist/deck-renderer.d.ts.map +1 -1
- package/dist/deck-renderer.js +3 -0
- package/dist/dist.dev.js +5671 -108
- package/dist/index.cjs +36 -19
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/load-modules.d.ts.map +1 -1
- package/dist/load-modules.js +3 -0
- package/dist.min.js +3 -2
- package/package.json +6 -6
- package/src/commons.ts +31 -24
- package/src/deck-layer-view-2d.ts +4 -0
- package/src/deck-layer.ts +4 -0
- package/src/deck-props.ts +4 -0
- package/src/deck-renderer.ts +4 -0
- package/src/index.ts +4 -0
- package/src/load-modules.ts +4 -0
package/dist/commons.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Model } from '@luma.gl/engine';
|
|
2
|
-
import { Deck } from '@deck.gl/core';
|
|
3
1
|
import type { Texture, Framebuffer } from '@luma.gl/core';
|
|
2
|
+
import { Deck } from '@deck.gl/core';
|
|
3
|
+
import { Model } from '@luma.gl/engine';
|
|
4
4
|
interface Renderer {
|
|
5
5
|
redraw: () => void;
|
|
6
6
|
}
|
package/dist/commons.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commons.d.ts","sourceRoot":"","sources":["../src/commons.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"commons.d.ts","sourceRoot":"","sources":["../src/commons.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAS,OAAO,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;AAChE,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AACnC,OAAO,EAAC,KAAK,EAAW,MAAM,iBAAiB,CAAC;AAGhD,UAAU,QAAQ;IAChB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,GAAG,EAAE,WAAW,CAAC;CAClB,CAAC;AA8BF,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,QAAQ,EACd,EAAE,EAAE,sBAAsB,GACzB,OAAO,CAAC,eAAe,CAAC,CAkF1B;AAED,wBAAgB,MAAM,CACpB,SAAS,EAAE,eAAe,EAC1B,QAAQ,EAAE;IACR,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB,QAkCF;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,eAAe,QAK3D"}
|
package/dist/commons.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
// deck.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright (c) vis.gl contributors
|
|
1
4
|
/* eslint-disable no-invalid-this */
|
|
2
5
|
import { GL } from '@luma.gl/constants';
|
|
3
|
-
import { Model, Geometry } from '@luma.gl/engine';
|
|
4
6
|
import { Deck } from '@deck.gl/core';
|
|
7
|
+
import { Model, Geometry } from '@luma.gl/engine';
|
|
8
|
+
import { WebGLDevice } from '@luma.gl/webgl';
|
|
5
9
|
async function createDeckInstance(gl) {
|
|
6
10
|
return new Promise(resolve => {
|
|
7
11
|
const deckInstance = new Deck({
|
|
@@ -103,29 +107,31 @@ void main(void) {
|
|
|
103
107
|
export function render(resources, viewport) {
|
|
104
108
|
const { model, deck, fbo } = resources;
|
|
105
109
|
const device = model.device;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
110
|
+
if (device instanceof WebGLDevice) {
|
|
111
|
+
// @ts-ignore device.getParametersWebGL should return `any` not `void`?
|
|
112
|
+
const screenFbo = device.getParametersWebGL(36006);
|
|
113
|
+
const { width, height, ...viewState } = viewport;
|
|
114
|
+
/* global window */
|
|
115
|
+
const dpr = window.devicePixelRatio;
|
|
116
|
+
const pixelWidth = Math.round(width * dpr);
|
|
117
|
+
const pixelHeight = Math.round(height * dpr);
|
|
118
|
+
fbo.resize({ width: pixelWidth, height: pixelHeight });
|
|
119
|
+
deck.setProps({ viewState });
|
|
120
|
+
// redraw deck immediately into deckFbo
|
|
121
|
+
deck.redraw('arcgis');
|
|
122
|
+
// We overlay the texture on top of the map using the full-screen quad.
|
|
123
|
+
const textureToScreenPass = device.beginRenderPass({
|
|
124
|
+
framebuffer: screenFbo,
|
|
125
|
+
parameters: { viewport: [0, 0, pixelWidth, pixelHeight] },
|
|
126
|
+
clearColor: false,
|
|
127
|
+
clearDepth: false
|
|
128
|
+
});
|
|
129
|
+
try {
|
|
130
|
+
model.draw(textureToScreenPass);
|
|
131
|
+
}
|
|
132
|
+
finally {
|
|
133
|
+
textureToScreenPass.end();
|
|
134
|
+
}
|
|
129
135
|
}
|
|
130
136
|
}
|
|
131
137
|
export function finalizeResources(resources) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deck-layer-view-2d.d.ts","sourceRoot":"","sources":["../src/deck-layer-view-2d.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deck-layer-view-2d.d.ts","sourceRoot":"","sources":["../src/deck-layer-view-2d.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,iBAAiB,KAAA,OAgE9D"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// deck.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright (c) vis.gl contributors
|
|
1
4
|
import { initializeResources, render, finalizeResources } from "./commons.js";
|
|
2
5
|
export default function createDeckLayerView2D(BaseLayerViewGL2D) {
|
|
3
6
|
return BaseLayerViewGL2D.createSubclass({
|
package/dist/deck-layer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deck-layer.d.ts","sourceRoot":"","sources":["../src/deck-layer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deck-layer.d.ts","sourceRoot":"","sources":["../src/deck-layer.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,SAAS,KAAA,EAAE,KAAK,KAAA,EAAE,eAAe,KAAA,OAgCxE"}
|
package/dist/deck-layer.js
CHANGED
package/dist/deck-props.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deck-props.d.ts","sourceRoot":"","sources":["../src/deck-props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deck-props.d.ts","sourceRoot":"","sources":["../src/deck-props.ts"],"names":[],"mappings":"AAyBA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,QAAQ,KAAA,OAsC/C"}
|
package/dist/deck-props.js
CHANGED
package/dist/deck-renderer.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RenderResources } from "./commons.js";
|
|
2
2
|
import SceneView from '@arcgis/core/views/SceneView';
|
|
3
|
+
import type { DeckProps } from '@deck.gl/core';
|
|
3
4
|
export default function createDeckRenderer(DeckProps: any, externalRenderers: any): {
|
|
4
5
|
new (view: SceneView, props: DeckProps): {
|
|
5
6
|
view: SceneView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deck-renderer.d.ts","sourceRoot":"","sources":["../src/deck-renderer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deck-renderer.d.ts","sourceRoot":"","sources":["../src/deck-renderer.ts"],"names":[],"mappings":"AAKA,OAAO,EAAiD,eAAe,EAAC,qBAAkB;AAE1F,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAU7C,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,SAAS,KAAA,EAAE,iBAAiB,KAAA;eAOjD,SAAS,SAAS,SAAS;cALvC,SAAS;cACT,GAAG;mBACE,eAAe,GAAG,IAAI;8BACX,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI;;;;;;EAqD5C"}
|
package/dist/deck-renderer.js
CHANGED