@antv/l7-renderer 2.21.11-beta.2 → 2.21.11-beta.4
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/es/device/index.js +7 -0
- package/lib/device/index.js +7 -0
- package/package.json +4 -4
package/es/device/index.js
CHANGED
|
@@ -119,6 +119,13 @@ var DeviceRendererService = class {
|
|
|
119
119
|
height,
|
|
120
120
|
new Uint8Array(width * height * 4)
|
|
121
121
|
);
|
|
122
|
+
if (this.viewportOrigin !== ViewportOrigin.LOWER_LEFT) {
|
|
123
|
+
for (let j = 0; j < result.length; j += 4) {
|
|
124
|
+
const t = result[j];
|
|
125
|
+
result[j] = result[j + 2];
|
|
126
|
+
result[j + 2] = t;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
122
129
|
readback.destroy();
|
|
123
130
|
return result;
|
|
124
131
|
};
|
package/lib/device/index.js
CHANGED
|
@@ -143,6 +143,13 @@ var DeviceRendererService = class {
|
|
|
143
143
|
height,
|
|
144
144
|
new Uint8Array(width * height * 4)
|
|
145
145
|
);
|
|
146
|
+
if (this.viewportOrigin !== import_g_device_api.ViewportOrigin.LOWER_LEFT) {
|
|
147
|
+
for (let j = 0; j < result.length; j += 4) {
|
|
148
|
+
const t = result[j];
|
|
149
|
+
result[j] = result[j + 2];
|
|
150
|
+
result[j + 2] = t;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
146
153
|
readback.destroy();
|
|
147
154
|
return result;
|
|
148
155
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-renderer",
|
|
3
|
-
"version": "2.21.11-beta.
|
|
3
|
+
"version": "2.21.11-beta.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "https://github.com/orgs/antvis/people",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"@antv/g-device-api": "^1.6.4",
|
|
17
17
|
"@babel/runtime": "^7.7.7",
|
|
18
18
|
"regl": "1.6.1",
|
|
19
|
-
"@antv/l7-core": "2.21.11-beta.
|
|
20
|
-
"@antv/l7-utils": "2.21.11-beta.
|
|
19
|
+
"@antv/l7-core": "2.21.11-beta.4",
|
|
20
|
+
"@antv/l7-utils": "2.21.11-beta.4"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@antv/l7-test-utils": "^2.21.11-beta.
|
|
23
|
+
"@antv/l7-test-utils": "^2.21.11-beta.4"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public",
|