@luma.gl/core 8.6.0-alpha.4 → 9.0.0-alpha.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/dist/index.d.ts CHANGED
@@ -1,51 +1,11 @@
1
1
  export { log, assert, uid } from '@luma.gl/api';
2
- export { AnimationLoop, Model, Transform, ProgramManager, Timeline } from '@luma.gl/engine';
3
- export { Geometry, ClipSpace, ConeGeometry, CubeGeometry, CylinderGeometry, IcoSphereGeometry, PlaneGeometry, SphereGeometry, TruncatedConeGeometry } from '@luma.gl/engine';
4
- import { isWebGL as isWebGLDeprecated, isWebGL2 as isWebGL2Deprecated, getParameters as getParametersDeprecated, setParameters as setParametersDeprecated, withParameters as withParametersDeprecated, resetParameters as resetParametersDeprecated, cssToDeviceRatio as cssToDeviceRatioDeprecated, cssToDevicePixels as cssToDevicePixelsDeprecated, Buffer as BufferDeprecated, Program as ProgramDeprecated, Framebuffer as FramebufferDeprecated, Renderbuffer as RenderbufferDeprecated, Texture2D as Texture2DDeprecated, TextureCube as TextureCubeDeprecated, clear as clearDeprecated, readPixelsToArray as readPixelsToArrayDeprecated, readPixelsToBuffer as readPixelsToBufferDeprecated, cloneTextureFrom as cloneTextureFromDeprecated, copyToTexture as copyToTextureDeprecated, Texture3D as Texture3DDeprecated, TransformFeedback as TransformFeedbackDeprecated } from '@luma.gl/webgl';
5
- /** @deprecated Import directly from `@luma.gl/webgl` */
6
- export declare const isWebGL: typeof isWebGLDeprecated;
7
- /** @deprecated Import directly from `@luma.gl/webgl` */
8
- export declare const isWebGL2: typeof isWebGL2Deprecated;
9
- /** @deprecated Import directly from `@luma.gl/webgl` */
10
- export declare const getParameters: typeof getParametersDeprecated;
11
- /** @deprecated Import directly from `@luma.gl/webgl` */
12
- export declare const setParameters: typeof setParametersDeprecated;
13
- /** @deprecated Import directly from `@luma.gl/webgl` */
14
- export declare const withParameters: typeof withParametersDeprecated;
15
- /** @deprecated Import directly from `@luma.gl/webgl` */
16
- export declare const resetParameters: typeof resetParametersDeprecated;
17
- /** @deprecated Import directly from `@luma.gl/webgl` */
18
- export declare const cssToDeviceRatio: typeof cssToDeviceRatioDeprecated;
19
- /** @deprecated Import directly from `@luma.gl/webgl` */
20
- export declare const cssToDevicePixels: typeof cssToDevicePixelsDeprecated;
21
- /** @deprecated Import directly from `@luma.gl/webgl` */
2
+ export { Timeline } from '@luma.gl/engine';
3
+ export { ClassicAnimationLoop as AnimationLoop, ClassicModel as Model, Transform, ProgramManager, ClipSpace } from '@luma.gl/gltools';
4
+ export { Geometry, ConeGeometry, CubeGeometry, CylinderGeometry, IcoSphereGeometry, PlaneGeometry, SphereGeometry, TruncatedConeGeometry } from '@luma.gl/engine';
5
+ export { createGLContext, instrumentGLContext, FEATURES, hasFeature, hasFeatures } from '@luma.gl/gltools';
6
+ /** @deprecated Use luma.stats */
22
7
  export declare const lumaStats: import("@luma.gl/api").StatsManager;
23
- /** @deprecated Import directly from `@luma.gl/webgl` */
24
- export declare const Buffer: typeof BufferDeprecated;
25
- /** @deprecated Import directly from `@luma.gl/webgl` */
26
- export declare const Program: typeof ProgramDeprecated;
27
- /** @deprecated Import directly from `@luma.gl/webgl` */
28
- export declare const Framebuffer: typeof FramebufferDeprecated;
29
- /** @deprecated Import directly from `@luma.gl/webgl` */
30
- export declare const Renderbuffer: typeof RenderbufferDeprecated;
31
- /** @deprecated Import directly from `@luma.gl/webgl` */
32
- export declare const Texture2D: typeof Texture2DDeprecated;
33
- /** @deprecated Import directly from `@luma.gl/webgl` */
34
- export declare const TextureCube: typeof TextureCubeDeprecated;
35
- /** @deprecated Import directly from `@luma.gl/webgl` */
36
- export declare const clear: typeof clearDeprecated;
37
- /** @deprecated Import directly from `@luma.gl/webgl` */
38
- export declare const readPixelsToArray: typeof readPixelsToArrayDeprecated;
39
- /** @deprecated Import directly from `@luma.gl/webgl` */
40
- export declare const readPixelsToBuffer: typeof readPixelsToBufferDeprecated;
41
- /** @deprecated Import directly from `@luma.gl/webgl` */
42
- export declare const cloneTextureFrom: typeof cloneTextureFromDeprecated;
43
- /** @deprecated Import directly from `@luma.gl/webgl` */
44
- export declare const copyToTexture: typeof copyToTextureDeprecated;
45
- /** @deprecated Import directly from `@luma.gl/webgl` */
46
- export declare const Texture3D: typeof Texture3DDeprecated;
47
- /** @deprecated Import directly from `@luma.gl/webgl` */
48
- export declare const TransformFeedback: typeof TransformFeedbackDeprecated;
8
+ export { isWebGL, isWebGL2, getParameters, setParameters, withParameters, resetParameters, cssToDeviceRatio, cssToDevicePixels, Buffer, Program, Framebuffer, Renderbuffer, Texture2D, TextureCube, clear, readPixelsToArray, readPixelsToBuffer, cloneTextureFrom, copyToTexture, Texture3D, TransformFeedback } from '@luma.gl/gltools';
49
9
  import { normalizeShaderModule as normalizeShaderModuleDeprecated } from '@luma.gl/shadertools';
50
10
  /** @deprecated Import directly from `@luma.gl/shadertools` */
51
11
  export declare const normalizeShaderModule: typeof normalizeShaderModuleDeprecated;
@@ -53,17 +13,14 @@ export declare const normalizeShaderModule: typeof normalizeShaderModuleDeprecat
53
13
  export declare const fp32: {
54
14
  name: string;
55
15
  vs: string;
56
- fs: any;
57
16
  };
58
17
  /** @deprecated Import directly from `@luma.gl/shadertools` */
59
18
  export declare const fp64: {
60
19
  name: string;
61
20
  vs: string;
62
- fs: any;
63
21
  dependencies: {
64
22
  name: string;
65
23
  vs: string;
66
- fs: any;
67
24
  getUniforms: () => {
68
25
  ONE: number;
69
26
  };
@@ -90,11 +47,8 @@ export declare const project: {
90
47
  /** @deprecated Import directly from `@luma.gl/shadertools` */
91
48
  export declare const dirlight: {
92
49
  name: string;
93
- vs: any;
94
50
  fs: string;
95
- getUniforms: (opts?: {
96
- lightDirection: Float32Array;
97
- }) => {};
51
+ getUniforms: (opts?: import("@luma.gl/shadertools/modules/dirlight/dirlight").DirlightOptions) => Record<string, any>;
98
52
  dependencies: {
99
53
  name: string;
100
54
  getUniforms: (opts?: {
@@ -121,13 +75,7 @@ export declare const gouraudLighting: {
121
75
  name: string;
122
76
  vs: string;
123
77
  fs: string;
124
- getUniforms: (opts?: {
125
- lightSources?: {
126
- ambientLight?: any;
127
- pointLights?: any;
128
- directionalLights?: any;
129
- };
130
- }) => any;
78
+ getUniforms: (opts?: import("@luma.gl/shadertools/modules/lights/lights").LightsOptions) => Record<string, any>;
131
79
  defines: {
132
80
  MAX_LIGHTS: number;
133
81
  };
@@ -136,16 +84,9 @@ export declare const gouraudLighting: {
136
84
  defines: {
137
85
  LIGHTING_VERTEX: number;
138
86
  };
139
- getUniforms: (opts?: {}) => {
140
- lighting_uAmbient: any;
141
- lighting_uDiffuse: any;
142
- lighting_uShininess: any;
143
- lighting_uSpecularColor: any;
144
- } | {
145
- lighting_uEnabled?: undefined;
146
- } | {
147
- lighting_uEnabled: boolean;
148
- };
87
+ getUniforms: (opts?: {
88
+ material?: import("@luma.gl/shadertools/modules/phong-lighting/phong-lighting").PhongLightingProps;
89
+ }) => Record<string, any>;
149
90
  };
150
91
  /** @deprecated Import directly from `@luma.gl/shadertools` */
151
92
  export declare const phongLighting: {
@@ -154,13 +95,7 @@ export declare const phongLighting: {
154
95
  name: string;
155
96
  vs: string;
156
97
  fs: string;
157
- getUniforms: (opts?: {
158
- lightSources?: {
159
- ambientLight?: any;
160
- pointLights?: any;
161
- directionalLights?: any;
162
- };
163
- }) => any;
98
+ getUniforms: (opts?: import("@luma.gl/shadertools/modules/lights/lights").LightsOptions) => Record<string, any>;
164
99
  defines: {
165
100
  MAX_LIGHTS: number;
166
101
  };
@@ -169,16 +104,9 @@ export declare const phongLighting: {
169
104
  defines: {
170
105
  LIGHTING_FRAGMENT: number;
171
106
  };
172
- getUniforms: (opts?: {}) => {
173
- lighting_uAmbient: any;
174
- lighting_uDiffuse: any;
175
- lighting_uShininess: any;
176
- lighting_uSpecularColor: any;
177
- } | {
178
- lighting_uEnabled?: undefined;
179
- } | {
180
- lighting_uEnabled: boolean;
181
- };
107
+ getUniforms: (opts?: {
108
+ material?: import("@luma.gl/shadertools/modules/phong-lighting/phong-lighting").PhongLightingProps;
109
+ }) => Record<string, any>;
182
110
  };
183
111
  /** @deprecated Import directly from `@luma.gl/shadertools` */
184
112
  export declare const pbr: {
@@ -192,17 +120,10 @@ export declare const pbr: {
192
120
  name: string;
193
121
  vs: string;
194
122
  fs: string;
195
- getUniforms: (opts?: {
196
- lightSources?: {
197
- ambientLight?: any;
198
- pointLights?: any;
199
- directionalLights?: any;
200
- };
201
- }) => any;
123
+ getUniforms: (opts?: import("@luma.gl/shadertools/modules/lights/lights").LightsOptions) => Record<string, any>;
202
124
  defines: {
203
125
  MAX_LIGHTS: number;
204
126
  };
205
127
  }[];
206
128
  };
207
- export { createGLContext, instrumentGLContext, FEATURES, hasFeature, hasFeatures } from '@luma.gl/webgl';
208
129
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAC,MAAM,cAAc,CAAC;AAK9C,OAAO,EACL,aAAa,EACb,KAAK,EACL,SAAS,EACT,cAAc,EACd,QAAQ,EACT,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAMzB,OAAO,EACL,OAAO,IAAI,iBAAiB,EAC5B,QAAQ,IAAI,kBAAkB,EAC9B,aAAa,IAAI,uBAAuB,EACxC,aAAa,IAAI,uBAAuB,EACxC,cAAc,IAAI,wBAAwB,EAC1C,eAAe,IAAI,yBAAyB,EAC5C,gBAAgB,IAAI,0BAA0B,EAC9C,iBAAiB,IAAI,2BAA2B,EAEhD,MAAM,IAAI,gBAAgB,EAC1B,OAAO,IAAI,iBAAiB,EAC5B,WAAW,IAAI,qBAAqB,EAC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;;;;CAA4B,CAAC;AACzD,8DAA8D;AAC9D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;CAA0B,CAAC;AACrD,8DAA8D;AAC9D,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;CAAgB,CAAC"}
package/dist/index.js CHANGED
@@ -1,29 +1,11 @@
1
1
  export { log, assert, uid } from '@luma.gl/api';
2
- export { AnimationLoop, Model, Transform, ProgramManager, Timeline } from '@luma.gl/engine';
3
- export { Geometry, ClipSpace, ConeGeometry, CubeGeometry, CylinderGeometry, IcoSphereGeometry, PlaneGeometry, SphereGeometry, TruncatedConeGeometry } from '@luma.gl/engine';
4
- import { isWebGL as isWebGLDeprecated, isWebGL2 as isWebGL2Deprecated, getParameters as getParametersDeprecated, setParameters as setParametersDeprecated, withParameters as withParametersDeprecated, resetParameters as resetParametersDeprecated, cssToDeviceRatio as cssToDeviceRatioDeprecated, cssToDevicePixels as cssToDevicePixelsDeprecated, lumaStats as lumaStatsDeprecated, Buffer as BufferDeprecated, Program as ProgramDeprecated, Framebuffer as FramebufferDeprecated, Renderbuffer as RenderbufferDeprecated, Texture2D as Texture2DDeprecated, TextureCube as TextureCubeDeprecated, clear as clearDeprecated, readPixelsToArray as readPixelsToArrayDeprecated, readPixelsToBuffer as readPixelsToBufferDeprecated, cloneTextureFrom as cloneTextureFromDeprecated, copyToTexture as copyToTextureDeprecated, Texture3D as Texture3DDeprecated, TransformFeedback as TransformFeedbackDeprecated } from '@luma.gl/webgl';
5
- export const isWebGL = isWebGLDeprecated;
6
- export const isWebGL2 = isWebGL2Deprecated;
7
- export const getParameters = getParametersDeprecated;
8
- export const setParameters = setParametersDeprecated;
9
- export const withParameters = withParametersDeprecated;
10
- export const resetParameters = resetParametersDeprecated;
11
- export const cssToDeviceRatio = cssToDeviceRatioDeprecated;
12
- export const cssToDevicePixels = cssToDevicePixelsDeprecated;
13
- export const lumaStats = lumaStatsDeprecated;
14
- export const Buffer = BufferDeprecated;
15
- export const Program = ProgramDeprecated;
16
- export const Framebuffer = FramebufferDeprecated;
17
- export const Renderbuffer = RenderbufferDeprecated;
18
- export const Texture2D = Texture2DDeprecated;
19
- export const TextureCube = TextureCubeDeprecated;
20
- export const clear = clearDeprecated;
21
- export const readPixelsToArray = readPixelsToArrayDeprecated;
22
- export const readPixelsToBuffer = readPixelsToBufferDeprecated;
23
- export const cloneTextureFrom = cloneTextureFromDeprecated;
24
- export const copyToTexture = copyToTextureDeprecated;
25
- export const Texture3D = Texture3DDeprecated;
26
- export const TransformFeedback = TransformFeedbackDeprecated;
2
+ export { Timeline } from '@luma.gl/engine';
3
+ export { ClassicAnimationLoop as AnimationLoop, ClassicModel as Model, Transform, ProgramManager, ClipSpace } from '@luma.gl/gltools';
4
+ export { Geometry, ConeGeometry, CubeGeometry, CylinderGeometry, IcoSphereGeometry, PlaneGeometry, SphereGeometry, TruncatedConeGeometry } from '@luma.gl/engine';
5
+ export { createGLContext, instrumentGLContext, FEATURES, hasFeature, hasFeatures } from '@luma.gl/gltools';
6
+ import { luma } from '@luma.gl/api';
7
+ export const lumaStats = luma.stats;
8
+ export { isWebGL, isWebGL2, getParameters, setParameters, withParameters, resetParameters, cssToDeviceRatio, cssToDevicePixels, Buffer, Program, Framebuffer, Renderbuffer, Texture2D, TextureCube, clear, readPixelsToArray, readPixelsToBuffer, cloneTextureFrom, copyToTexture, Texture3D, TransformFeedback } from '@luma.gl/gltools';
27
9
  import { normalizeShaderModule as normalizeShaderModuleDeprecated, fp32 as fp32Deprecated, fp64 as fp64Deprecated, project as projectDeprecated, dirlight as dirlightDeprecated, picking as pickingDeprecated, gouraudLighting as gouraudLightingDeprecated, phongLighting as phongLightingDeprecated, pbr as pbrDeprecated } from '@luma.gl/shadertools';
28
10
  export const normalizeShaderModule = normalizeShaderModuleDeprecated;
29
11
  export const fp32 = fp32Deprecated;
@@ -34,5 +16,4 @@ export const picking = pickingDeprecated;
34
16
  export const gouraudLighting = gouraudLightingDeprecated;
35
17
  export const phongLighting = phongLightingDeprecated;
36
18
  export const pbr = pbrDeprecated;
37
- export { createGLContext, instrumentGLContext, FEATURES, hasFeature, hasFeatures } from '@luma.gl/webgl';
38
19
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":["log","assert","uid","AnimationLoop","Model","Transform","ProgramManager","Timeline","Geometry","ClipSpace","ConeGeometry","CubeGeometry","CylinderGeometry","IcoSphereGeometry","PlaneGeometry","SphereGeometry","TruncatedConeGeometry","isWebGL","isWebGLDeprecated","isWebGL2","isWebGL2Deprecated","getParameters","getParametersDeprecated","setParameters","setParametersDeprecated","withParameters","withParametersDeprecated","resetParameters","resetParametersDeprecated","cssToDeviceRatio","cssToDeviceRatioDeprecated","cssToDevicePixels","cssToDevicePixelsDeprecated","lumaStats","lumaStatsDeprecated","Buffer","BufferDeprecated","Program","ProgramDeprecated","Framebuffer","FramebufferDeprecated","Renderbuffer","RenderbufferDeprecated","Texture2D","Texture2DDeprecated","TextureCube","TextureCubeDeprecated","clear","clearDeprecated","readPixelsToArray","readPixelsToArrayDeprecated","readPixelsToBuffer","readPixelsToBufferDeprecated","cloneTextureFrom","cloneTextureFromDeprecated","copyToTexture","copyToTextureDeprecated","Texture3D","Texture3DDeprecated","TransformFeedback","TransformFeedbackDeprecated","normalizeShaderModule","normalizeShaderModuleDeprecated","fp32","fp32Deprecated","fp64","fp64Deprecated","project","projectDeprecated","dirlight","dirlightDeprecated","picking","pickingDeprecated","gouraudLighting","gouraudLightingDeprecated","phongLighting","phongLightingDeprecated","pbr","pbrDeprecated","createGLContext","instrumentGLContext","FEATURES","hasFeature","hasFeatures"],"mappings":"AAIA,SAAQA,GAAR,EAAaC,MAAb,EAAqBC,GAArB,QAA+B,cAA/B;AAKA,SACEC,aADF,EAEEC,KAFF,EAGEC,SAHF,EAIEC,cAJF,EAKEC,QALF,QAMO,iBANP;AAQA,SACEC,QADF,EAEEC,SAFF,EAGEC,YAHF,EAIEC,Y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,GAAGC,qBAApB;AAEP,OAAO,MAAMC,YAAY,GAAGC,sBAArB;AAEP,OAAO,MAAMC,SAAS,GAAGC,mBAAlB;AAEP,OAAO,MAAMC,WAAW,GAAGC,qBAApB;AAEP,OAAO,MAAMC,KAAK,GAAGC,eAAd;AAEP,OAAO,MAAMC,iBAAiB,GAAGC,2BAA1B;AAEP,OAAO,MAAMC,kBAAkB,GAAGC,4BAA3B;AAEP,OAAO,MAAMC,gBAAgB,GAAGC,0BAAzB;AAEP,OAAO,MAAMC,aAAa,GAAGC,uBAAtB;AAEP,OAAO,MAAMC,SAAS,GAAGC,mBAAlB;AAEP,OAAO,MAAMC,iBAAiB,GAAGC,2BAA1B;AAIP,SAEEC,qBAAqB,IAAIC,+BAF3B,EAIEC,IAAI,IAAIC,cAJV,EAKEC,IAAI,IAAIC,cALV,EAMEC,OAAO,IAAIC,iBANb,EAOEC,QAAQ,IAAIC,kBAPd,EAQEC,OAAO,IAAIC,iBARb,EASEC,eAAe,IAAIC,yBATrB,EAUEC,aAAa,IAAIC,uBAVnB,EAWEC,GAAG,IAAIC,aAXT,QAYO,sBAZP;AAeA,OAAO,MAAMjB,qBAAqB,GAAGC,+BAA9B;AAEP,OAAO,MAAMC,IAAI,GAAGC,cAAb;AAEP,OAAO,MAAMC,IAAI,GAAGC,cAAb;AAEP,OAAO,MAAMC,OAAO,GAAGC,iBAAhB;AAEP,OAAO,MAAMC,QAAQ,GAAGC,kBAAjB;AAEP,OAAO,MAAMC,OAAO,GAAGC,iBAAhB;AAEP,OAAO,MAAMC,eAAe,GAAGC,yBAAxB;AAEP,OAAO,MAAMC,aAAa,GAAGC,uBAAtB;AAEP,OAAO,MAAMC,GAAG,GAAGC,aAAZ;AAGP,SACEC,eADF,EAEEC,mBAFF,EAGEC,QAHF,EAIEC,UAJF,EAKEC,WALF,QAMO,gBANP","sourcesContent":["// luma.gl, MIT license\n// core module exports\n\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\n// ENGINE\nexport {\n AnimationLoop,\n Model,\n Transform,\n ProgramManager,\n Timeline\n} from '@luma.gl/engine';\n\nexport {\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 - the following exports will be removed in v9\n\n// WEBGL - importing from `@luma.gl/core` is deprecated\n\nimport {\n isWebGL as isWebGLDeprecated,\n isWebGL2 as isWebGL2Deprecated,\n getParameters as getParametersDeprecated,\n setParameters as setParametersDeprecated,\n withParameters as withParametersDeprecated,\n resetParameters as resetParametersDeprecated,\n cssToDeviceRatio as cssToDeviceRatioDeprecated,\n cssToDevicePixels as cssToDevicePixelsDeprecated,\n lumaStats as lumaStatsDeprecated,\n Buffer as BufferDeprecated,\n Program as ProgramDeprecated,\n Framebuffer as FramebufferDeprecated,\n Renderbuffer as RenderbufferDeprecated,\n Texture2D as Texture2DDeprecated,\n TextureCube as TextureCubeDeprecated,\n clear as clearDeprecated,\n readPixelsToArray as readPixelsToArrayDeprecated,\n readPixelsToBuffer as readPixelsToBufferDeprecated,\n cloneTextureFrom as cloneTextureFromDeprecated,\n copyToTexture as copyToTextureDeprecated,\n Texture3D as Texture3DDeprecated,\n TransformFeedback as TransformFeedbackDeprecated\n} from '@luma.gl/webgl';\n\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const isWebGL = isWebGLDeprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const isWebGL2 = isWebGL2Deprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const getParameters = getParametersDeprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const setParameters = setParametersDeprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const withParameters = withParametersDeprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const resetParameters = resetParametersDeprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const cssToDeviceRatio = cssToDeviceRatioDeprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const cssToDevicePixels = cssToDevicePixelsDeprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const lumaStats = lumaStatsDeprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const Buffer = BufferDeprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const Program = ProgramDeprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const Framebuffer = FramebufferDeprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const Renderbuffer = RenderbufferDeprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const Texture2D = Texture2DDeprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const TextureCube = TextureCubeDeprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const clear = clearDeprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const readPixelsToArray = readPixelsToArrayDeprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const readPixelsToBuffer = readPixelsToBufferDeprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const cloneTextureFrom = cloneTextureFromDeprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const copyToTexture = copyToTextureDeprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const Texture3D = Texture3DDeprecated;\n/** @deprecated Import directly from `@luma.gl/webgl` */\nexport const TransformFeedback = TransformFeedbackDeprecated;\n\n// SHADERTOOLS - importing from `@luma.gl/core` is deprecated\n\nimport {\n // HELPERS\n normalizeShaderModule as normalizeShaderModuleDeprecated,\n // SHADER MODULES\n fp32 as fp32Deprecated,\n fp64 as fp64Deprecated,\n project as projectDeprecated,\n dirlight as dirlightDeprecated,\n picking as pickingDeprecated,\n gouraudLighting as gouraudLightingDeprecated,\n phongLighting as phongLightingDeprecated,\n pbr as pbrDeprecated\n} from '@luma.gl/shadertools';\n\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const normalizeShaderModule = normalizeShaderModuleDeprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const fp32 = fp32Deprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const fp64 = fp64Deprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const project = projectDeprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const dirlight = dirlightDeprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const picking = pickingDeprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const gouraudLighting = gouraudLightingDeprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const phongLighting = phongLightingDeprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const pbr = pbrDeprecated;\n\n// GLTOOLS - Already marked as deprecated at source\nexport {\n createGLContext,\n instrumentGLContext,\n FEATURES,\n hasFeature,\n hasFeatures\n} from '@luma.gl/webgl';\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../src/index.ts"],"names":["log","assert","uid","Timeline","ClassicAnimationLoop","AnimationLoop","ClassicModel","Model","Transform","ProgramManager","ClipSpace","Geometry","ConeGeometry","CubeGeometry","CylinderGeometry","IcoSphereGeometry","PlaneGeometry","SphereGeometry","TruncatedConeGeometry","createGLContext","instrumentGLContext","FEATURES","hasFeature","hasFeatures","luma","lumaStats","stats","isWebGL","isWebGL2","getParameters","setParameters","withParameters","resetParameters","cssToDeviceRatio","cssToDevicePixels","Buffer","Program","Framebuffer","Renderbuffer","Texture2D","TextureCube","clear","readPixelsToArray","readPixelsToBuffer","cloneTextureFrom","copyToTexture","Texture3D","TransformFeedback","normalizeShaderModule","normalizeShaderModuleDeprecated","fp32","fp32Deprecated","fp64","fp64Deprecated","project","projectDeprecated","dirlight","dirlightDeprecated","picking","pickingDeprec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AEP,OAAO,MAAMC,IAAI,GAAGC,cAAb;AAEP,OAAO,MAAMC,OAAO,GAAGC,iBAAhB;AAEP,OAAO,MAAMC,QAAQ,GAAGC,kBAAjB;AAEP,OAAO,MAAMC,OAAO,GAAGC,iBAAhB;AAEP,OAAO,MAAMC,eAAe,GAAGC,yBAAxB;AAEP,OAAO,MAAMC,aAAa,GAAGC,uBAAtB;AAEP,OAAO,MAAMC,GAAG,GAAGC,aAAZ","sourcesContent":["// luma.gl, MIT license\n// core module exports\n\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\n// ENGINE\nexport {Timeline} from '@luma.gl/engine';\n\nexport {\n ClassicAnimationLoop as AnimationLoop,\n ClassicModel as Model,\n Transform,\n ProgramManager,\n ClipSpace\n} from '@luma.gl/gltools';\n\nexport {\n Geometry,\n ConeGeometry,\n CubeGeometry,\n CylinderGeometry,\n IcoSphereGeometry,\n PlaneGeometry,\n SphereGeometry,\n TruncatedConeGeometry\n} from '@luma.gl/engine';\n\n// TODO - the following exports will be removed in v9\n\n// WEBGL - importing from `@luma.gl/core` is deprecated\n\n// GLTOOLS\nexport {\n createGLContext,\n instrumentGLContext,\n FEATURES,\n hasFeature,\n hasFeatures\n} from '@luma.gl/gltools';\n\nimport {luma} from '@luma.gl/api';\n/** @deprecated Use luma.stats */\nexport const lumaStats = luma.stats;\n\nexport {\n isWebGL,\n isWebGL2,\n getParameters,\n setParameters,\n withParameters,\n resetParameters,\n cssToDeviceRatio,\n cssToDevicePixels,\n Buffer,\n Program,\n Framebuffer,\n Renderbuffer,\n Texture2D,\n TextureCube,\n clear,\n readPixelsToArray,\n readPixelsToBuffer,\n cloneTextureFrom,\n copyToTexture,\n Texture3D,\n TransformFeedback\n} from '@luma.gl/gltools';\n\n// SHADERTOOLS - importing from `@luma.gl/core` is deprecated\n\nimport {\n // HELPERS\n normalizeShaderModule as normalizeShaderModuleDeprecated,\n // SHADER MODULES\n fp32 as fp32Deprecated,\n fp64 as fp64Deprecated,\n project as projectDeprecated,\n dirlight as dirlightDeprecated,\n picking as pickingDeprecated,\n gouraudLighting as gouraudLightingDeprecated,\n phongLighting as phongLightingDeprecated,\n pbr as pbrDeprecated\n} from '@luma.gl/shadertools';\n\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const normalizeShaderModule = normalizeShaderModuleDeprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const fp32 = fp32Deprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const fp64 = fp64Deprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const project = projectDeprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const dirlight = dirlightDeprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const picking = pickingDeprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const gouraudLighting = gouraudLightingDeprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const phongLighting = phongLightingDeprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const pbr = pbrDeprecated;\n"],"file":"index.js"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luma.gl/core",
3
- "version": "8.6.0-alpha.4",
3
+ "version": "9.0.0-alpha.4",
4
4
  "description": "WebGL2 Components for High Performance Rendering and Computation",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -31,11 +31,11 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.0.0",
34
- "@luma.gl/constants": "8.6.0-alpha.4",
35
- "@luma.gl/engine": "8.6.0-alpha.4",
36
- "@luma.gl/gltools": "8.6.0-alpha.4",
37
- "@luma.gl/shadertools": "8.6.0-alpha.4",
38
- "@luma.gl/webgl": "8.6.0-alpha.4"
34
+ "@luma.gl/constants": "9.0.0-alpha.4",
35
+ "@luma.gl/engine": "9.0.0-alpha.4",
36
+ "@luma.gl/gltools": "9.0.0-alpha.4",
37
+ "@luma.gl/shadertools": "9.0.0-alpha.4",
38
+ "@luma.gl/webgl": "9.0.0-alpha.4"
39
39
  },
40
- "gitHead": "c1c84f1bcaa6e6ff4f1e96f5d294baf8ce39846c"
40
+ "gitHead": "c1bbfa21e6e2cce41378a284b305ebfac39e998b"
41
41
  }
package/src/index.ts CHANGED
@@ -7,17 +7,18 @@ export {log, assert, uid} from '@luma.gl/api';
7
7
  // CORE MODULE EXPORTS FOR LUMA.GL
8
8
 
9
9
  // ENGINE
10
+ export {Timeline} from '@luma.gl/engine';
11
+
10
12
  export {
11
- AnimationLoop,
12
- Model,
13
+ ClassicAnimationLoop as AnimationLoop,
14
+ ClassicModel as Model,
13
15
  Transform,
14
16
  ProgramManager,
15
- Timeline
16
- } from '@luma.gl/engine';
17
+ ClipSpace
18
+ } from '@luma.gl/gltools';
17
19
 
18
20
  export {
19
21
  Geometry,
20
- ClipSpace,
21
22
  ConeGeometry,
22
23
  CubeGeometry,
23
24
  CylinderGeometry,
@@ -31,75 +32,42 @@ export {
31
32
 
32
33
  // WEBGL - importing from `@luma.gl/core` is deprecated
33
34
 
34
- import {
35
- isWebGL as isWebGLDeprecated,
36
- isWebGL2 as isWebGL2Deprecated,
37
- getParameters as getParametersDeprecated,
38
- setParameters as setParametersDeprecated,
39
- withParameters as withParametersDeprecated,
40
- resetParameters as resetParametersDeprecated,
41
- cssToDeviceRatio as cssToDeviceRatioDeprecated,
42
- cssToDevicePixels as cssToDevicePixelsDeprecated,
43
- lumaStats as lumaStatsDeprecated,
44
- Buffer as BufferDeprecated,
45
- Program as ProgramDeprecated,
46
- Framebuffer as FramebufferDeprecated,
47
- Renderbuffer as RenderbufferDeprecated,
48
- Texture2D as Texture2DDeprecated,
49
- TextureCube as TextureCubeDeprecated,
50
- clear as clearDeprecated,
51
- readPixelsToArray as readPixelsToArrayDeprecated,
52
- readPixelsToBuffer as readPixelsToBufferDeprecated,
53
- cloneTextureFrom as cloneTextureFromDeprecated,
54
- copyToTexture as copyToTextureDeprecated,
55
- Texture3D as Texture3DDeprecated,
56
- TransformFeedback as TransformFeedbackDeprecated
57
- } from '@luma.gl/webgl';
35
+ // GLTOOLS
36
+ export {
37
+ createGLContext,
38
+ instrumentGLContext,
39
+ FEATURES,
40
+ hasFeature,
41
+ hasFeatures
42
+ } from '@luma.gl/gltools';
58
43
 
59
- /** @deprecated Import directly from `@luma.gl/webgl` */
60
- export const isWebGL = isWebGLDeprecated;
61
- /** @deprecated Import directly from `@luma.gl/webgl` */
62
- export const isWebGL2 = isWebGL2Deprecated;
63
- /** @deprecated Import directly from `@luma.gl/webgl` */
64
- export const getParameters = getParametersDeprecated;
65
- /** @deprecated Import directly from `@luma.gl/webgl` */
66
- export const setParameters = setParametersDeprecated;
67
- /** @deprecated Import directly from `@luma.gl/webgl` */
68
- export const withParameters = withParametersDeprecated;
69
- /** @deprecated Import directly from `@luma.gl/webgl` */
70
- export const resetParameters = resetParametersDeprecated;
71
- /** @deprecated Import directly from `@luma.gl/webgl` */
72
- export const cssToDeviceRatio = cssToDeviceRatioDeprecated;
73
- /** @deprecated Import directly from `@luma.gl/webgl` */
74
- export const cssToDevicePixels = cssToDevicePixelsDeprecated;
75
- /** @deprecated Import directly from `@luma.gl/webgl` */
76
- export const lumaStats = lumaStatsDeprecated;
77
- /** @deprecated Import directly from `@luma.gl/webgl` */
78
- export const Buffer = BufferDeprecated;
79
- /** @deprecated Import directly from `@luma.gl/webgl` */
80
- export const Program = ProgramDeprecated;
81
- /** @deprecated Import directly from `@luma.gl/webgl` */
82
- export const Framebuffer = FramebufferDeprecated;
83
- /** @deprecated Import directly from `@luma.gl/webgl` */
84
- export const Renderbuffer = RenderbufferDeprecated;
85
- /** @deprecated Import directly from `@luma.gl/webgl` */
86
- export const Texture2D = Texture2DDeprecated;
87
- /** @deprecated Import directly from `@luma.gl/webgl` */
88
- export const TextureCube = TextureCubeDeprecated;
89
- /** @deprecated Import directly from `@luma.gl/webgl` */
90
- export const clear = clearDeprecated;
91
- /** @deprecated Import directly from `@luma.gl/webgl` */
92
- export const readPixelsToArray = readPixelsToArrayDeprecated;
93
- /** @deprecated Import directly from `@luma.gl/webgl` */
94
- export const readPixelsToBuffer = readPixelsToBufferDeprecated;
95
- /** @deprecated Import directly from `@luma.gl/webgl` */
96
- export const cloneTextureFrom = cloneTextureFromDeprecated;
97
- /** @deprecated Import directly from `@luma.gl/webgl` */
98
- export const copyToTexture = copyToTextureDeprecated;
99
- /** @deprecated Import directly from `@luma.gl/webgl` */
100
- export const Texture3D = Texture3DDeprecated;
101
- /** @deprecated Import directly from `@luma.gl/webgl` */
102
- export const TransformFeedback = TransformFeedbackDeprecated;
44
+ import {luma} from '@luma.gl/api';
45
+ /** @deprecated Use luma.stats */
46
+ export const lumaStats = luma.stats;
47
+
48
+ export {
49
+ isWebGL,
50
+ isWebGL2,
51
+ getParameters,
52
+ setParameters,
53
+ withParameters,
54
+ resetParameters,
55
+ cssToDeviceRatio,
56
+ cssToDevicePixels,
57
+ Buffer,
58
+ Program,
59
+ Framebuffer,
60
+ Renderbuffer,
61
+ Texture2D,
62
+ TextureCube,
63
+ clear,
64
+ readPixelsToArray,
65
+ readPixelsToBuffer,
66
+ cloneTextureFrom,
67
+ copyToTexture,
68
+ Texture3D,
69
+ TransformFeedback
70
+ } from '@luma.gl/gltools';
103
71
 
104
72
  // SHADERTOOLS - importing from `@luma.gl/core` is deprecated
105
73
 
@@ -135,12 +103,3 @@ export const gouraudLighting = gouraudLightingDeprecated;
135
103
  export const phongLighting = phongLightingDeprecated;
136
104
  /** @deprecated Import directly from `@luma.gl/shadertools` */
137
105
  export const pbr = pbrDeprecated;
138
-
139
- // GLTOOLS - Already marked as deprecated at source
140
- export {
141
- createGLContext,
142
- instrumentGLContext,
143
- FEATURES,
144
- hasFeature,
145
- hasFeatures
146
- } from '@luma.gl/webgl';