@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 +16 -95
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -26
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/index.ts +41 -82
package/dist/index.d.ts
CHANGED
|
@@ -1,51 +1,11 @@
|
|
|
1
1
|
export { log, assert, uid } from '@luma.gl/api';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
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
|
-
|
|
141
|
-
|
|
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
|
-
|
|
174
|
-
|
|
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
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,
|
|
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,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AAEzC,OAAO,EACL,oBAAoB,IAAI,aAAa,EACrC,YAAY,IAAI,KAAK,EACrB,SAAS,EACT,cAAc,EACd,SAAS,EACV,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAOzB,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,QAAQ,EACR,UAAU,EACV,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAG1B,iCAAiC;AACjC,eAAO,MAAM,SAAS,qCAAa,CAAC;AAEpC,OAAO,EACL,OAAO,EACP,QAAQ,EACR,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,MAAM,EACN,OAAO,EACP,WAAW,EACX,YAAY,EACZ,SAAS,EACT,WAAW,EACX,KAAK,EACL,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,SAAS,EACT,iBAAiB,EAClB,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAEL,qBAAqB,IAAI,+BAA+B,EAUzD,MAAM,sBAAsB,CAAC;AAE9B,8DAA8D;AAC9D,eAAO,MAAM,qBAAqB,wCAAkC,CAAC;AACrE,8DAA8D;AAC9D,eAAO,MAAM,IAAI;;;CAAiB,CAAC;AACnC,8DAA8D;AAC9D,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;CAAiB,CAAC;AACnC,8DAA8D;AAC9D,eAAO,MAAM,OAAO;;;;;;;;;;CAAoB,CAAC;AACzC,8DAA8D;AAC9D,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;CAAqB,CAAC;AAC3C,8DAA8D;AAC9D,eAAO,MAAM,OAAO;;;;;CAAoB,CAAC;AACzC,8DAA8D;AAC9D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;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 {
|
|
3
|
-
export {
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
export const
|
|
8
|
-
export
|
|
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","
|
|
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","pickingDeprecated","gouraudLighting","gouraudLightingDeprecated","phongLighting","phongLightingDeprecated","pbr","pbrDeprecated"],"mappings":"AAIA,SAAQA,GAAR,EAAaC,MAAb,EAAqBC,GAArB,QAA+B,cAA/B;AAKA,SAAQC,QAAR,QAAuB,iBAAvB;AAEA,SACEC,oBAAoB,IAAIC,aAD1B,EAEEC,YAAY,IAAIC,KAFlB,EAGEC,SAHF,EAIEC,cAJF,EAKEC,SALF,QAMO,kBANP;AAQA,SACEC,QADF,EAEEC,YAFF,EAGEC,YAHF,EAIEC,gBAJF,EAKEC,iBALF,EAMEC,aANF,EAOEC,cAPF,EAQEC,qBARF,QASO,iBATP;AAgBA,SACEC,eADF,EAEEC,mBAFF,EAGEC,QAHF,EAIEC,UAJF,EAKEC,WALF,QAMO,kBANP;AAQA,SAAQC,IAAR,QAAmB,cAAnB;AAEA,OAAO,MAAMC,SAAS,GAAGD,IAAI,CAACE,KAAvB;AAEP,SACEC,OADF,EAEEC,QAFF,EAGEC,aAHF,EAIEC,aAJF,EAKEC,cALF,EAMEC,eANF,EAOEC,gBAPF,EAQEC,iBARF,EASEC,MATF,EAUEC,OAVF,EAWEC,WAXF,EAYEC,YAZF,EAaEC,SAbF,EAcEC,WAdF,EAeEC,KAfF,EAgBEC,iBAhBF,EAiBEC,kBAjBF,EAkBEC,gBAlBF,EAmBEC,aAnBF,EAoBEC,SApBF,EAqBEC,iBArBF,QAsBO,kBAtBP;AA0BA,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","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": "
|
|
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": "
|
|
35
|
-
"@luma.gl/engine": "
|
|
36
|
-
"@luma.gl/gltools": "
|
|
37
|
-
"@luma.gl/shadertools": "
|
|
38
|
-
"@luma.gl/webgl": "
|
|
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": "
|
|
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
|
-
|
|
16
|
-
} from '@luma.gl/
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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';
|