@luma.gl/core 8.5.8 → 8.6.0-alpha.2

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.
@@ -0,0 +1,2 @@
1
+ declare const moduleExports: any;
2
+ //# sourceMappingURL=bundle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../src/bundle.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,aAAa,KAAqB,CAAC"}
package/dist/bundle.js ADDED
@@ -0,0 +1,5 @@
1
+ const moduleExports = require('./index');
2
+
3
+ globalThis.luma = globalThis.luma || {};
4
+ module.exports = Object.assign(globalThis.luma, moduleExports);
5
+ //# sourceMappingURL=bundle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/bundle.ts"],"names":["moduleExports","require","globalThis","luma","module","exports","Object","assign"],"mappings":"AACA,MAAMA,aAAa,GAAGC,OAAO,CAAC,SAAD,CAA7B;;AACAC,UAAU,CAACC,IAAX,GAAkBD,UAAU,CAACC,IAAX,IAAmB,EAArC;AACAC,MAAM,CAACC,OAAP,GAAiBC,MAAM,CAACC,MAAP,CAAcL,UAAU,CAACC,IAAzB,EAA+BH,aAA/B,CAAjB","sourcesContent":["// @ts-nocheck\nconst moduleExports = require('./index');\nglobalThis.luma = globalThis.luma || {};\nmodule.exports = Object.assign(globalThis.luma, moduleExports);\n"],"file":"bundle.js"}
@@ -0,0 +1,6 @@
1
+ export { log, assert, uid } from '@luma.gl/api';
2
+ export { isWebGL, isWebGL2, getParameters, setParameters, withParameters, resetParameters, cssToDeviceRatio, cssToDevicePixels } from '@luma.gl/webgl';
3
+ export { lumaStats, Buffer, Program, Framebuffer, Renderbuffer, Texture2D, TextureCube, clear, readPixelsToArray, readPixelsToBuffer, cloneTextureFrom, copyToTexture, Texture3D, TransformFeedback } from '@luma.gl/webgl';
4
+ export { AnimationLoop, Model, Transform, ProgramManager, Timeline, Geometry, ClipSpace, ConeGeometry, CubeGeometry, CylinderGeometry, IcoSphereGeometry, PlaneGeometry, SphereGeometry, TruncatedConeGeometry } from '@luma.gl/engine';
5
+ export { normalizeShaderModule, fp32, fp64, project, dirlight, picking, gouraudLighting, phongLighting, pbr } from '@luma.gl/shadertools';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAC,MAAM,cAAc,CAAC;AAI9C,OAAO,EACL,OAAO,EACP,QAAQ,EACR,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,SAAS,EACT,MAAM,EACN,OAAO,EACP,WAAW,EACX,YAAY,EACZ,SAAS,EACT,WAAW,EACX,KAAK,EAEL,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EAEb,SAAS,EACT,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,aAAa,EACb,KAAK,EACL,SAAS,EACT,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAKzB,OAAO,EAEL,qBAAqB,EAErB,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,OAAO,EACP,eAAe,EACf,aAAa,EACb,GAAG,EACJ,MAAM,sBAAsB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,6 @@
1
+ export { log, assert, uid } from '@luma.gl/api';
2
+ export { isWebGL, isWebGL2, getParameters, setParameters, withParameters, resetParameters, cssToDeviceRatio, cssToDevicePixels } from '@luma.gl/webgl';
3
+ export { lumaStats, Buffer, Program, Framebuffer, Renderbuffer, Texture2D, TextureCube, clear, readPixelsToArray, readPixelsToBuffer, cloneTextureFrom, copyToTexture, Texture3D, TransformFeedback } from '@luma.gl/webgl';
4
+ export { AnimationLoop, Model, Transform, ProgramManager, Timeline, Geometry, ClipSpace, ConeGeometry, CubeGeometry, CylinderGeometry, IcoSphereGeometry, PlaneGeometry, SphereGeometry, TruncatedConeGeometry } from '@luma.gl/engine';
5
+ export { normalizeShaderModule, fp32, fp64, project, dirlight, picking, gouraudLighting, phongLighting, pbr } from '@luma.gl/shadertools';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"names":["log","assert","uid","isWebGL","isWebGL2","getParameters","setParameters","withParameters","resetParameters","cssToDeviceRatio","cssToDevicePixels","lumaStats","Buffer","Program","Framebuffer","Renderbuffer","Texture2D","TextureCube","clear","readPixelsToArray","readPixelsToBuffer","cloneTextureFrom","copyToTexture","Texture3D","TransformFeedback","AnimationLoop","Model","Transform","ProgramManager","Timeline","Geometry","ClipSpace","ConeGeometry","CubeGeometry","CylinderGeometry","IcoSphereGeometry","PlaneGeometry","SphereGeometry","TruncatedConeGeometry","normalizeShaderModule","fp32","fp64","project","dirlight","picking","gouraudLighting","phongLighting","pbr"],"mappings":"AAEA,SAAQA,GAAR,EAAaC,MAAb,EAAqBC,GAArB,QAA+B,cAA/B;AAIA,SACEC,OADF,EAEEC,QAFF,EAGEC,aAHF,EAIEC,aAJF,EAKEC,cALF,EAMEC,eANF,EAOEC,gBAPF,EAQEC,iBARF,QASO,gBATP;AAYA,SACEC,SADF,EAEEC,MAFF,EAGEC,OAHF,EAIEC,WAJF,EAKEC,YALF,EAMEC,SANF,EAOEC,WAPF,EAQEC,KARF,EAUEC,iBAVF,EAWEC,kBAXF,EAYEC,gBAZF,EAaEC,aAbF,EAeEC,SAfF,EAgBEC,iBAhBF,QAiBO,gBAjBP;AAoBA,SACEC,aADF,EAEEC,KAFF,EAGEC,SAHF,EAIEC,cAJF,EAKEC,QALF,EAMEC,QANF,EAOEC,SAPF,EAQEC,YARF,EASEC,YATF,EAUEC,gBAVF,EAWEC,iBAXF,EAYEC,aAZF,EAaEC,cAbF,EAcEC,qBAdF,QAeO,iBAfP;AAoBA,SAEEC,qBAFF,EAIEC,IAJF,EAKEC,IALF,EAMEC,OANF,EAOEC,QAPF,EAQEC,OARF,EASEC,eATF,EAUEC,aAVF,EAWEC,GAXF,QAYO,sBAZP","sourcesContent":["\n// UTILS: undocumented API for other luma.gl modules\nexport {log, assert, uid} from '@luma.gl/api';\n\n// CORE MODULE EXPORTS FOR LUMA.GL\n\nexport {\n isWebGL,\n isWebGL2,\n getParameters,\n setParameters,\n withParameters,\n resetParameters,\n cssToDeviceRatio,\n cssToDevicePixels\n} from '@luma.gl/webgl';\n\n// WEBGL\nexport {\n lumaStats,\n Buffer,\n Program,\n Framebuffer,\n Renderbuffer,\n Texture2D,\n TextureCube,\n clear,\n // Copy and Blit\n readPixelsToArray,\n readPixelsToBuffer,\n cloneTextureFrom,\n copyToTexture,\n // WebGL2 classes & Extensions\n Texture3D,\n TransformFeedback\n} from '@luma.gl/webgl';\n\n// ENGINE\nexport {\n AnimationLoop,\n Model,\n Transform,\n ProgramManager,\n Timeline,\n Geometry,\n ClipSpace,\n ConeGeometry,\n CubeGeometry,\n CylinderGeometry,\n IcoSphereGeometry,\n PlaneGeometry,\n SphereGeometry,\n TruncatedConeGeometry\n} from '@luma.gl/engine';\n\n// TODO/CLEAN UP FOR V7\n// We should have a minimal set of forwarding exports from shadertools (ideally none)\n// Analyze risk of breaking apps\nexport {\n // HELPERS\n normalizeShaderModule,\n // SHADER MODULES\n fp32,\n fp64,\n project,\n dirlight,\n picking,\n gouraudLighting,\n phongLighting,\n pbr\n} from '@luma.gl/shadertools';\n\n/* TODO restore for 8.7\n// GLTOOLS\nexport {\n createGLContext,\n instrumentGLContext,\n FEATURES,\n // hasFeature,\n // hasFeatures,\n} from '@luma.gl/gltools';\n*/\n"],"file":"index.js"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luma.gl/core",
3
- "version": "8.5.8",
3
+ "version": "8.6.0-alpha.2",
4
4
  "description": "WebGL2 Components for High Performance Rendering and Computation",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -16,8 +16,9 @@
16
16
  "animation",
17
17
  "3d"
18
18
  ],
19
- "main": "dist/es5/index.js",
20
- "module": "dist/esm/index.js",
19
+ "types": "src/index.ts",
20
+ "main": "dist/index.js",
21
+ "module": "dist/index.js",
21
22
  "files": [
22
23
  "src",
23
24
  "dist",
@@ -25,16 +26,15 @@
25
26
  ],
26
27
  "sideEffects": false,
27
28
  "scripts": {
28
- "pre-build": "npm run build-bundle && npm run build-bundle -- --env.dev",
29
+ "pre-build": "npm run build-bundle",
29
30
  "build-bundle": "webpack --display=minimal --config ../../scripts/bundle.config.js"
30
31
  },
31
32
  "dependencies": {
32
33
  "@babel/runtime": "^7.0.0",
33
- "@luma.gl/constants": "8.5.8",
34
- "@luma.gl/engine": "8.5.8",
35
- "@luma.gl/gltools": "8.5.8",
36
- "@luma.gl/shadertools": "8.5.8",
37
- "@luma.gl/webgl": "8.5.8"
34
+ "@luma.gl/constants": "8.6.0-alpha.2",
35
+ "@luma.gl/engine": "8.6.0-alpha.2",
36
+ "@luma.gl/shadertools": "8.6.0-alpha.2",
37
+ "@luma.gl/webgl": "8.6.0-alpha.2"
38
38
  },
39
- "gitHead": "ec6897d6a3df73e30a4f31be904b2fba4fcac191"
39
+ "gitHead": "bdcebda76c1b4e47b127cdbd3f426ea6cbae44f1"
40
40
  }
package/src/bundle.ts ADDED
@@ -0,0 +1,4 @@
1
+ // @ts-nocheck
2
+ const moduleExports = require('./index');
3
+ globalThis.luma = globalThis.luma || {};
4
+ module.exports = Object.assign(globalThis.luma, moduleExports);
@@ -1,9 +1,10 @@
1
+
2
+ // UTILS: undocumented API for other luma.gl modules
3
+ export {log, assert, uid} from '@luma.gl/api';
4
+
1
5
  // CORE MODULE EXPORTS FOR LUMA.GL
2
6
 
3
- // GLTOOLS
4
7
  export {
5
- createGLContext,
6
- instrumentGLContext,
7
8
  isWebGL,
8
9
  isWebGL2,
9
10
  getParameters,
@@ -12,14 +13,11 @@ export {
12
13
  resetParameters,
13
14
  cssToDeviceRatio,
14
15
  cssToDevicePixels
15
- } from '@luma.gl/gltools';
16
+ } from '@luma.gl/webgl';
16
17
 
17
18
  // WEBGL
18
19
  export {
19
20
  lumaStats,
20
- FEATURES,
21
- hasFeature,
22
- hasFeatures,
23
21
  Buffer,
24
22
  Program,
25
23
  Framebuffer,
@@ -72,5 +70,13 @@ export {
72
70
  pbr
73
71
  } from '@luma.gl/shadertools';
74
72
 
75
- // UTILS: undocumented API for other luma.gl modules
76
- export {log, assert, uid} from '@luma.gl/webgl';
73
+ /* TODO restore for 8.7
74
+ // GLTOOLS
75
+ export {
76
+ createGLContext,
77
+ instrumentGLContext,
78
+ FEATURES,
79
+ // hasFeature,
80
+ // hasFeatures,
81
+ } from '@luma.gl/gltools';
82
+ */