@deck.gl/arcgis 9.0.0-alpha.4 → 9.0.0-alpha.6
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/LICENSE +19 -0
- package/dist/dist.dev.js +20 -20
- package/dist.min.js +1 -1
- package/package.json +3 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright Vis.gl contributors.
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
|
11
|
+
all copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
THE SOFTWARE.
|
package/dist/dist.dev.js
CHANGED
|
@@ -347,21 +347,21 @@ var __exports__ = (() => {
|
|
|
347
347
|
});
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
//
|
|
350
|
+
// ../../node_modules/@luma.gl/engine/dist/model/model.js
|
|
351
351
|
var import_core4 = __toESM(require_core2(), 1);
|
|
352
352
|
var import_core5 = __toESM(require_core2(), 1);
|
|
353
353
|
|
|
354
|
-
//
|
|
354
|
+
// ../../node_modules/@luma.gl/shadertools/dist/lib/glsl-utils/highlight.js
|
|
355
355
|
var glsl = (x) => `${x}`;
|
|
356
356
|
|
|
357
|
-
//
|
|
357
|
+
// ../../node_modules/@luma.gl/shadertools/dist/lib/utils/assert.js
|
|
358
358
|
function assert(condition, message2) {
|
|
359
359
|
if (!condition) {
|
|
360
360
|
throw new Error(message2 || "shadertools: assertion failed.");
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
|
|
364
|
-
//
|
|
364
|
+
// ../../node_modules/@luma.gl/shadertools/dist/lib/filters/prop-types.js
|
|
365
365
|
var DEFAULT_PROP_VALIDATORS = {
|
|
366
366
|
number: {
|
|
367
367
|
type: "number",
|
|
@@ -442,7 +442,7 @@ var __exports__ = (() => {
|
|
|
442
442
|
return typeof value;
|
|
443
443
|
}
|
|
444
444
|
|
|
445
|
-
//
|
|
445
|
+
// ../../node_modules/@luma.gl/shadertools/dist/module-injectors.js
|
|
446
446
|
var MODULE_INJECTORS_VS = glsl`\
|
|
447
447
|
#ifdef MODULE_LOGDEPTH
|
|
448
448
|
logdepth_adjustPosition(gl_Position);
|
|
@@ -471,7 +471,7 @@ var __exports__ = (() => {
|
|
|
471
471
|
#endif
|
|
472
472
|
`;
|
|
473
473
|
|
|
474
|
-
//
|
|
474
|
+
// ../../node_modules/@luma.gl/shadertools/dist/lib/shader-assembly/shader-injections.js
|
|
475
475
|
var MODULE_INJECTORS = {
|
|
476
476
|
vertex: MODULE_INJECTORS_VS,
|
|
477
477
|
fragment: MODULE_INJECTORS_FS
|
|
@@ -563,7 +563,7 @@ var __exports__ = (() => {
|
|
|
563
563
|
return source;
|
|
564
564
|
}
|
|
565
565
|
|
|
566
|
-
//
|
|
566
|
+
// ../../node_modules/@luma.gl/shadertools/dist/lib/shader-module/shader-module-instance.js
|
|
567
567
|
var ShaderModuleInstance = class {
|
|
568
568
|
static instantiateModules(modules) {
|
|
569
569
|
return modules.map((module) => {
|
|
@@ -593,7 +593,7 @@ var __exports__ = (() => {
|
|
|
593
593
|
vs,
|
|
594
594
|
fs,
|
|
595
595
|
dependencies = [],
|
|
596
|
-
|
|
596
|
+
uniforms = {},
|
|
597
597
|
getUniforms,
|
|
598
598
|
deprecations = [],
|
|
599
599
|
defines = {},
|
|
@@ -608,8 +608,8 @@ var __exports__ = (() => {
|
|
|
608
608
|
this.deprecations = this._parseDeprecationDefinitions(deprecations);
|
|
609
609
|
this.defines = defines;
|
|
610
610
|
this.injections = normalizeInjections(inject);
|
|
611
|
-
if (
|
|
612
|
-
this.uniforms = makePropValidators(
|
|
611
|
+
if (uniforms) {
|
|
612
|
+
this.uniforms = makePropValidators(uniforms);
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
getModuleSource(stage) {
|
|
@@ -681,7 +681,7 @@ ${moduleSource}// END MODULE_${this.name}
|
|
|
681
681
|
}
|
|
682
682
|
};
|
|
683
683
|
|
|
684
|
-
//
|
|
684
|
+
// ../../node_modules/@luma.gl/shadertools/dist/lib/shader-assembly/resolve-modules.js
|
|
685
685
|
function resolveModules(modules) {
|
|
686
686
|
const instances = ShaderModuleInstance.instantiateModules(modules);
|
|
687
687
|
return getShaderDependencies(instances);
|
|
@@ -725,7 +725,7 @@ ${moduleSource}// END MODULE_${this.name}
|
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
|
|
728
|
-
//
|
|
728
|
+
// ../../node_modules/@luma.gl/shadertools/dist/lib/shader-assembly/platform-defines.js
|
|
729
729
|
function getPlatformShaderDefines(platformInfo) {
|
|
730
730
|
switch (platformInfo === null || platformInfo === void 0 ? void 0 : platformInfo.gpu.toLowerCase()) {
|
|
731
731
|
case "apple":
|
|
@@ -825,7 +825,7 @@ ${moduleSource}// END MODULE_${this.name}
|
|
|
825
825
|
return versionDefines;
|
|
826
826
|
}
|
|
827
827
|
|
|
828
|
-
//
|
|
828
|
+
// ../../node_modules/@luma.gl/shadertools/dist/lib/shader-transpiler/transpile-glsl-shader.js
|
|
829
829
|
function transpileGLSLShader(source, targetGLSLVersion, stage) {
|
|
830
830
|
switch (targetGLSLVersion) {
|
|
831
831
|
case 300:
|
|
@@ -891,7 +891,7 @@ ${match}`).replace(new RegExp(`\\b${ES100_FRAGMENT_OUTPUT_NAME}\\b`, "g"), outpu
|
|
|
891
891
|
return new RegExp(`\\b${qualifier}[ \\t]+(\\w+[ \\t]+\\w+(\\[\\w+\\])?;)`, "g");
|
|
892
892
|
}
|
|
893
893
|
|
|
894
|
-
//
|
|
894
|
+
// ../../node_modules/@luma.gl/shadertools/dist/lib/shader-assembly/shader-hooks.js
|
|
895
895
|
function getShaderHooks(hookFunctions, hookInjections) {
|
|
896
896
|
let result = "";
|
|
897
897
|
for (const hookName in hookFunctions) {
|
|
@@ -951,7 +951,7 @@ ${match}`).replace(new RegExp(`\\b${ES100_FRAGMENT_OUTPUT_NAME}\\b`, "g"), outpu
|
|
|
951
951
|
return result;
|
|
952
952
|
}
|
|
953
953
|
|
|
954
|
-
//
|
|
954
|
+
// ../../node_modules/@luma.gl/shadertools/dist/lib/shader-assembly/assemble-shaders.js
|
|
955
955
|
var INJECT_SHADER_DECLARATIONS = `
|
|
956
956
|
|
|
957
957
|
${DECLARATION_INJECT_MARKER}
|
|
@@ -1223,7 +1223,7 @@ ${stage === "fragment" ? FRAGMENT_SHADER_PROLOGUE : ""}
|
|
|
1223
1223
|
return sourceText;
|
|
1224
1224
|
}
|
|
1225
1225
|
|
|
1226
|
-
//
|
|
1226
|
+
// ../../node_modules/@luma.gl/shadertools/dist/lib/shader-assembly/select-shaders.js
|
|
1227
1227
|
function selectShaders(platformInfo, props) {
|
|
1228
1228
|
if (!props.vs) {
|
|
1229
1229
|
throw new Error("no vertex shader");
|
|
@@ -1257,7 +1257,7 @@ ${stage === "fragment" ? FRAGMENT_SHADER_PROLOGUE : ""}
|
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
1259
|
|
|
1260
|
-
//
|
|
1260
|
+
// ../../node_modules/@luma.gl/shadertools/dist/lib/shader-assembler.js
|
|
1261
1261
|
var ShaderAssembler = class {
|
|
1262
1262
|
constructor() {
|
|
1263
1263
|
this._hookFunctions = [];
|
|
@@ -1320,7 +1320,7 @@ ${stage === "fragment" ? FRAGMENT_SHADER_PROLOGUE : ""}
|
|
|
1320
1320
|
};
|
|
1321
1321
|
ShaderAssembler.defaultShaderAssembler = void 0;
|
|
1322
1322
|
|
|
1323
|
-
//
|
|
1323
|
+
// ../../node_modules/@luma.gl/engine/dist/geometry/gpu-geometry.js
|
|
1324
1324
|
var import_core2 = __toESM(require_core2(), 1);
|
|
1325
1325
|
var GPUGeometry = class {
|
|
1326
1326
|
constructor(props) {
|
|
@@ -1423,7 +1423,7 @@ ${stage === "fragment" ? FRAGMENT_SHADER_PROLOGUE : ""}
|
|
|
1423
1423
|
};
|
|
1424
1424
|
}
|
|
1425
1425
|
|
|
1426
|
-
//
|
|
1426
|
+
// ../../node_modules/@luma.gl/engine/dist/lib/pipeline-factory.js
|
|
1427
1427
|
var import_core3 = __toESM(require_core2(), 1);
|
|
1428
1428
|
var PipelineFactory = class {
|
|
1429
1429
|
static getDefaultPipelineFactory(device) {
|
|
@@ -1517,7 +1517,7 @@ ${stage === "fragment" ? FRAGMENT_SHADER_PROLOGUE : ""}
|
|
|
1517
1517
|
fs: void 0
|
|
1518
1518
|
};
|
|
1519
1519
|
|
|
1520
|
-
//
|
|
1520
|
+
// ../../node_modules/@luma.gl/engine/dist/model/model.js
|
|
1521
1521
|
var Model = class {
|
|
1522
1522
|
constructor(device, props) {
|
|
1523
1523
|
this.device = void 0;
|
package/dist.min.js
CHANGED
|
@@ -32,7 +32,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
32
32
|
#endif
|
|
33
33
|
`;var gi={vertex:gr,fragment:Cr},Or=/void\s+main\s*\([^)]*\)\s*\{\n?/,Fr=/}\n?[^{}]*$/,vt=[],ye="__LUMA_INJECT_DECLARATIONS__";function Mr(e){let t={vertex:{},fragment:{}};for(let n in e){let i=e[n],s=Ci(n);typeof i=="string"&&(i={order:0,injection:i}),t[s][n]=i}return t}function Ci(e){let t=e.slice(0,2);switch(t){case"vs":return"vertex";case"fs":return"fragment";default:throw new Error(t)}}function ve(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,s=t==="vertex";for(let o in n){let _=n[o];_.sort((E,R)=>E.order-R.order),vt.length=_.length;for(let E=0,R=_.length;E<R;++E)vt[E]=_[E].injection;let a=`${vt.join(`
|
|
34
34
|
`)}
|
|
35
|
-
`;switch(o){case"vs:#decl":s&&(e=e.replace(ye,a));break;case"vs:#main-start":s&&(e=e.replace(Or,E=>E+a));break;case"vs:#main-end":s&&(e=e.replace(Fr,E=>a+E));break;case"fs:#decl":s||(e=e.replace(ye,a));break;case"fs:#main-start":s||(e=e.replace(Or,E=>E+a));break;case"fs:#main-end":s||(e=e.replace(Fr,E=>a+E));break;default:e=e.replace(o,E=>E+a)}}return e=e.replace(ye,""),i&&(e=e.replace(/\}\s*$/,o=>o+gi[t])),e}var _e=class{static instantiateModules(t){return t.map(n=>{if(n instanceof _e)return n;z(typeof n!="string",`Shader module use by name is deprecated. Import shader module '${n}' and use it directly.`),z(n.name,"shader module has no name");let i=new _e(n);return i.dependencies=_e.instantiateModules(n.dependencies||[]),i})}constructor(t){this.name=void 0,this.vs=void 0,this.fs=void 0,this.getModuleUniforms=void 0,this.dependencies=void 0,this.deprecations=void 0,this.defines=void 0,this.injections=void 0,this.uniforms={},this.uniformTypes={};let{name:n,vs:i,fs:s,dependencies:o=[],
|
|
35
|
+
`;switch(o){case"vs:#decl":s&&(e=e.replace(ye,a));break;case"vs:#main-start":s&&(e=e.replace(Or,E=>E+a));break;case"vs:#main-end":s&&(e=e.replace(Fr,E=>a+E));break;case"fs:#decl":s||(e=e.replace(ye,a));break;case"fs:#main-start":s||(e=e.replace(Or,E=>E+a));break;case"fs:#main-end":s||(e=e.replace(Fr,E=>a+E));break;default:e=e.replace(o,E=>E+a)}}return e=e.replace(ye,""),i&&(e=e.replace(/\}\s*$/,o=>o+gi[t])),e}var _e=class{static instantiateModules(t){return t.map(n=>{if(n instanceof _e)return n;z(typeof n!="string",`Shader module use by name is deprecated. Import shader module '${n}' and use it directly.`),z(n.name,"shader module has no name");let i=new _e(n);return i.dependencies=_e.instantiateModules(n.dependencies||[]),i})}constructor(t){this.name=void 0,this.vs=void 0,this.fs=void 0,this.getModuleUniforms=void 0,this.dependencies=void 0,this.deprecations=void 0,this.defines=void 0,this.injections=void 0,this.uniforms={},this.uniformTypes={};let{name:n,vs:i,fs:s,dependencies:o=[],uniforms:_={},getUniforms:a,deprecations:E=[],defines:R={},inject:u={}}=t;z(typeof n=="string"),this.name=n,this.vs=i,this.fs=s,this.getModuleUniforms=a,this.dependencies=_e.instantiateModules(o),this.deprecations=this._parseDeprecationDefinitions(E),this.defines=R,this.injections=Mr(u),_&&(this.uniforms=mr(_))}getModuleSource(t){let n;switch(t){case"vertex":n=this.vs||"";break;case"fragment":n=this.fs||"";break;default:z(!1)}return`#define MODULE_${this.name.toUpperCase().replace(/[^0-9a-z]/gi,"_")}
|
|
36
36
|
${n}// END MODULE_${this.name}
|
|
37
37
|
|
|
38
38
|
`}getUniforms(t,n){return this.getModuleUniforms?this.getModuleUniforms(t,n):Ir(t,this.uniforms,this.name)}getDefines(){return this.defines}checkDeprecations(t,n){this.deprecations.forEach(i=>{var s;(s=i.regex)!==null&&s!==void 0&&s.test(t)&&(i.deprecated?n.deprecated(i.old,i.new)():n.removed(i.old,i.new)())})}_parseDeprecationDefinitions(t){return t.forEach(n=>{switch(n.type){case"function":n.regex=new RegExp(`\\b${n.old}\\(`);break;default:n.regex=new RegExp(`${n.type} ${n.old};`)}}),t}_defaultGetUniforms(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n={},i=this.uniforms;for(let s in i){let o=i[s];s in t&&!o.private?(o.validate&&z(o.validate(t[s],o),`${this.name}: invalid ${s}`),n[s]=t[s]):n[s]=o.value}return n}};function pr(e){let t=_e.instantiateModules(e);return Oi(t)}function Oi(e){let t={},n={};return br({modules:e,level:0,moduleMap:t,moduleDepth:n}),Object.keys(n).sort((i,s)=>n[s]-n[i]).map(i=>t[i])}function br(e){let{modules:t,level:n,moduleMap:i,moduleDepth:s}=e;if(n>=5)throw new Error("Possible loop in shader dependency graph");for(let o of t)i[o.name]=o,(s[o.name]===void 0||s[o.name]<n)&&(s[o.name]=n);for(let o of t)o.dependencies&&br({modules:o.dependencies,level:n+1,moduleMap:i,moduleDepth:s})}function Br(e){switch(e?.gpu.toLowerCase()){case"apple":return X`\
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@deck.gl/arcgis",
|
|
3
3
|
"description": "Use deck.gl as a custom ArcGIS API for JavaScript layer",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "9.0.0-alpha.
|
|
5
|
+
"version": "9.0.0-alpha.6",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@arcgis/core": "^4.0.0",
|
|
34
|
-
"@deck.gl/core": "^
|
|
34
|
+
"@deck.gl/core": "^9.0.0-alpha",
|
|
35
35
|
"@luma.gl/core": "9.0.0-alpha.42",
|
|
36
36
|
"@luma.gl/engine": "9.0.0-alpha.42"
|
|
37
37
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"@babel/runtime": "^7.0.0",
|
|
40
40
|
"esri-loader": "^3.3.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "dcb297a8b2b0fcfb3194f16f8df759afcd0e6cac"
|
|
43
43
|
}
|