@luma.gl/core 8.5.9 → 8.6.0-alpha.3
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 +8 -1
- package/dist/bundle.d.ts +2 -0
- package/dist/bundle.d.ts.map +1 -0
- package/dist/bundle.js +5 -0
- package/dist/bundle.js.map +1 -0
- package/dist/index.d.ts +208 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +38 -0
- package/dist/index.js.map +1 -0
- package/package.json +10 -10
- package/src/bundle.ts +4 -0
- package/src/index.ts +146 -0
- package/dist/dist.js +0 -32390
- package/dist/dist.min.js +0 -1
- package/dist/es5/bundle.js +0 -9
- package/dist/es5/bundle.js.map +0 -1
- package/dist/es5/index.js +0 -332
- package/dist/es5/index.js.map +0 -1
- package/dist/esm/bundle.js +0 -7
- package/dist/esm/bundle.js.map +0 -1
- package/dist/esm/index.js +0 -6
- package/dist/esm/index.js.map +0 -1
- package/src/bundle.js +0 -8
- package/src/index.js +0 -76
package/LICENSE
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
Copyright (c) 2020 Urban Computing Foundation
|
|
2
|
+
|
|
3
|
+
This software includes parts initially developed by Uber and open sourced under MIT license.
|
|
1
4
|
Copyright (c) 2015 Uber Technologies, Inc.
|
|
2
5
|
|
|
3
6
|
This software includes parts of PhiloGL (https://github.com/philogb/philogl)
|
|
4
7
|
under MIT license. PhiloGL parts Copyright © 2013 Sencha Labs.
|
|
5
8
|
|
|
6
|
-
This software includes adaptations of postprocessing code from
|
|
9
|
+
This software includes adaptations of some postprocessing code from
|
|
10
|
+
THREE.js (https://github.com/mrdoob/three.js/) under MIT license.
|
|
11
|
+
THREE.js parts Copyright © 2010-2018 three.js authors.
|
|
12
|
+
|
|
13
|
+
Additional attribution given in specific source files.
|
|
7
14
|
|
|
8
15
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
16
|
of this software and associated documentation files (the "Software"), to deal
|
package/dist/bundle.d.ts
ADDED
|
@@ -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 @@
|
|
|
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"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
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` */
|
|
22
|
+
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;
|
|
49
|
+
import { normalizeShaderModule as normalizeShaderModuleDeprecated } from '@luma.gl/shadertools';
|
|
50
|
+
/** @deprecated Import directly from `@luma.gl/shadertools` */
|
|
51
|
+
export declare const normalizeShaderModule: typeof normalizeShaderModuleDeprecated;
|
|
52
|
+
/** @deprecated Import directly from `@luma.gl/shadertools` */
|
|
53
|
+
export declare const fp32: {
|
|
54
|
+
name: string;
|
|
55
|
+
vs: string;
|
|
56
|
+
fs: any;
|
|
57
|
+
};
|
|
58
|
+
/** @deprecated Import directly from `@luma.gl/shadertools` */
|
|
59
|
+
export declare const fp64: {
|
|
60
|
+
name: string;
|
|
61
|
+
vs: string;
|
|
62
|
+
fs: any;
|
|
63
|
+
dependencies: {
|
|
64
|
+
name: string;
|
|
65
|
+
vs: string;
|
|
66
|
+
fs: any;
|
|
67
|
+
getUniforms: () => {
|
|
68
|
+
ONE: number;
|
|
69
|
+
};
|
|
70
|
+
fp64ify: typeof import("@luma.gl/shadertools/modules/fp64/fp64-utils").fp64ify;
|
|
71
|
+
fp64LowPart: typeof import("@luma.gl/shadertools/modules/fp64/fp64-utils").fp64LowPart;
|
|
72
|
+
fp64ifyMatrix4: typeof import("@luma.gl/shadertools/modules/fp64/fp64-utils").fp64ifyMatrix4;
|
|
73
|
+
}[];
|
|
74
|
+
fp64ify: typeof import("@luma.gl/shadertools/modules/fp64/fp64-utils").fp64ify;
|
|
75
|
+
fp64LowPart: typeof import("@luma.gl/shadertools/modules/fp64/fp64-utils").fp64LowPart;
|
|
76
|
+
fp64ifyMatrix4: typeof import("@luma.gl/shadertools/modules/fp64/fp64-utils").fp64ifyMatrix4;
|
|
77
|
+
};
|
|
78
|
+
/** @deprecated Import directly from `@luma.gl/shadertools` */
|
|
79
|
+
export declare const project: {
|
|
80
|
+
name: string;
|
|
81
|
+
getUniforms: (opts?: {
|
|
82
|
+
modelMatrix: number[];
|
|
83
|
+
viewMatrix: number[];
|
|
84
|
+
projectionMatrix: number[];
|
|
85
|
+
cameraPositionWorld: number[];
|
|
86
|
+
}, prevUniforms?: {}) => Record<string, any>;
|
|
87
|
+
vs: string;
|
|
88
|
+
fs: string;
|
|
89
|
+
};
|
|
90
|
+
/** @deprecated Import directly from `@luma.gl/shadertools` */
|
|
91
|
+
export declare const dirlight: {
|
|
92
|
+
name: string;
|
|
93
|
+
vs: any;
|
|
94
|
+
fs: string;
|
|
95
|
+
getUniforms: (opts?: {
|
|
96
|
+
lightDirection: Float32Array;
|
|
97
|
+
}) => {};
|
|
98
|
+
dependencies: {
|
|
99
|
+
name: string;
|
|
100
|
+
getUniforms: (opts?: {
|
|
101
|
+
modelMatrix: number[];
|
|
102
|
+
viewMatrix: number[];
|
|
103
|
+
projectionMatrix: number[];
|
|
104
|
+
cameraPositionWorld: number[];
|
|
105
|
+
}, prevUniforms?: {}) => Record<string, any>;
|
|
106
|
+
vs: string;
|
|
107
|
+
fs: string;
|
|
108
|
+
}[];
|
|
109
|
+
};
|
|
110
|
+
/** @deprecated Import directly from `@luma.gl/shadertools` */
|
|
111
|
+
export declare const picking: {
|
|
112
|
+
name: string;
|
|
113
|
+
vs: string;
|
|
114
|
+
fs: string;
|
|
115
|
+
getUniforms: (opts?: Required<import("@luma.gl/shadertools/modules/picking/picking").PickingOptions>) => Record<string, any>;
|
|
116
|
+
};
|
|
117
|
+
/** @deprecated Import directly from `@luma.gl/shadertools` */
|
|
118
|
+
export declare const gouraudLighting: {
|
|
119
|
+
name: string;
|
|
120
|
+
dependencies: {
|
|
121
|
+
name: string;
|
|
122
|
+
vs: string;
|
|
123
|
+
fs: string;
|
|
124
|
+
getUniforms: (opts?: {
|
|
125
|
+
lightSources?: {
|
|
126
|
+
ambientLight?: any;
|
|
127
|
+
pointLights?: any;
|
|
128
|
+
directionalLights?: any;
|
|
129
|
+
};
|
|
130
|
+
}) => any;
|
|
131
|
+
defines: {
|
|
132
|
+
MAX_LIGHTS: number;
|
|
133
|
+
};
|
|
134
|
+
}[];
|
|
135
|
+
vs: string;
|
|
136
|
+
defines: {
|
|
137
|
+
LIGHTING_VERTEX: number;
|
|
138
|
+
};
|
|
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
|
+
};
|
|
149
|
+
};
|
|
150
|
+
/** @deprecated Import directly from `@luma.gl/shadertools` */
|
|
151
|
+
export declare const phongLighting: {
|
|
152
|
+
name: string;
|
|
153
|
+
dependencies: {
|
|
154
|
+
name: string;
|
|
155
|
+
vs: string;
|
|
156
|
+
fs: string;
|
|
157
|
+
getUniforms: (opts?: {
|
|
158
|
+
lightSources?: {
|
|
159
|
+
ambientLight?: any;
|
|
160
|
+
pointLights?: any;
|
|
161
|
+
directionalLights?: any;
|
|
162
|
+
};
|
|
163
|
+
}) => any;
|
|
164
|
+
defines: {
|
|
165
|
+
MAX_LIGHTS: number;
|
|
166
|
+
};
|
|
167
|
+
}[];
|
|
168
|
+
fs: string;
|
|
169
|
+
defines: {
|
|
170
|
+
LIGHTING_FRAGMENT: number;
|
|
171
|
+
};
|
|
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
|
+
};
|
|
182
|
+
};
|
|
183
|
+
/** @deprecated Import directly from `@luma.gl/shadertools` */
|
|
184
|
+
export declare const pbr: {
|
|
185
|
+
name: string;
|
|
186
|
+
vs: string;
|
|
187
|
+
fs: string;
|
|
188
|
+
defines: {
|
|
189
|
+
LIGHTING_FRAGMENT: number;
|
|
190
|
+
};
|
|
191
|
+
dependencies: {
|
|
192
|
+
name: string;
|
|
193
|
+
vs: string;
|
|
194
|
+
fs: string;
|
|
195
|
+
getUniforms: (opts?: {
|
|
196
|
+
lightSources?: {
|
|
197
|
+
ambientLight?: any;
|
|
198
|
+
pointLights?: any;
|
|
199
|
+
directionalLights?: any;
|
|
200
|
+
};
|
|
201
|
+
}) => any;
|
|
202
|
+
defines: {
|
|
203
|
+
MAX_LIGHTS: number;
|
|
204
|
+
};
|
|
205
|
+
}[];
|
|
206
|
+
};
|
|
207
|
+
export { createGLContext, instrumentGLContext, FEATURES, hasFeature, hasFeatures } from '@luma.gl/gltools';
|
|
208
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
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;
|
|
27
|
+
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
|
+
export const normalizeShaderModule = normalizeShaderModuleDeprecated;
|
|
29
|
+
export const fp32 = fp32Deprecated;
|
|
30
|
+
export const fp64 = fp64Deprecated;
|
|
31
|
+
export const project = projectDeprecated;
|
|
32
|
+
export const dirlight = dirlightDeprecated;
|
|
33
|
+
export const picking = pickingDeprecated;
|
|
34
|
+
export const gouraudLighting = gouraudLightingDeprecated;
|
|
35
|
+
export const phongLighting = phongLightingDeprecated;
|
|
36
|
+
export const pbr = pbrDeprecated;
|
|
37
|
+
export { createGLContext, instrumentGLContext, FEATURES, hasFeature, hasFeatures } from '@luma.gl/gltools';
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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":"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","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/gltools';\n"],"file":"index.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luma.gl/core",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.6.0-alpha.3",
|
|
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
|
-
"
|
|
20
|
-
"
|
|
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
|
|
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.
|
|
34
|
-
"@luma.gl/engine": "8.
|
|
35
|
-
"@luma.gl/
|
|
36
|
-
"@luma.gl/
|
|
37
|
-
"@luma.gl/webgl": "8.5.9"
|
|
34
|
+
"@luma.gl/constants": "8.6.0-alpha.3",
|
|
35
|
+
"@luma.gl/engine": "8.6.0-alpha.3",
|
|
36
|
+
"@luma.gl/shadertools": "8.6.0-alpha.3",
|
|
37
|
+
"@luma.gl/webgl": "8.6.0-alpha.3"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "a808a90fb8d59b682f5b647b8caa819f26827512"
|
|
40
40
|
}
|
package/src/bundle.ts
ADDED
package/src/index.ts
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
// luma.gl, MIT license
|
|
2
|
+
// core module exports
|
|
3
|
+
|
|
4
|
+
// UTILS: undocumented API for other luma.gl modules
|
|
5
|
+
export {log, assert, uid} from '@luma.gl/api';
|
|
6
|
+
|
|
7
|
+
// CORE MODULE EXPORTS FOR LUMA.GL
|
|
8
|
+
|
|
9
|
+
// ENGINE
|
|
10
|
+
export {
|
|
11
|
+
AnimationLoop,
|
|
12
|
+
Model,
|
|
13
|
+
Transform,
|
|
14
|
+
ProgramManager,
|
|
15
|
+
Timeline
|
|
16
|
+
} from '@luma.gl/engine';
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
Geometry,
|
|
20
|
+
ClipSpace,
|
|
21
|
+
ConeGeometry,
|
|
22
|
+
CubeGeometry,
|
|
23
|
+
CylinderGeometry,
|
|
24
|
+
IcoSphereGeometry,
|
|
25
|
+
PlaneGeometry,
|
|
26
|
+
SphereGeometry,
|
|
27
|
+
TruncatedConeGeometry
|
|
28
|
+
} from '@luma.gl/engine';
|
|
29
|
+
|
|
30
|
+
// TODO - the following exports will be removed in v9
|
|
31
|
+
|
|
32
|
+
// WEBGL - importing from `@luma.gl/core` is deprecated
|
|
33
|
+
|
|
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';
|
|
58
|
+
|
|
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;
|
|
103
|
+
|
|
104
|
+
// SHADERTOOLS - importing from `@luma.gl/core` is deprecated
|
|
105
|
+
|
|
106
|
+
import {
|
|
107
|
+
// HELPERS
|
|
108
|
+
normalizeShaderModule as normalizeShaderModuleDeprecated,
|
|
109
|
+
// SHADER MODULES
|
|
110
|
+
fp32 as fp32Deprecated,
|
|
111
|
+
fp64 as fp64Deprecated,
|
|
112
|
+
project as projectDeprecated,
|
|
113
|
+
dirlight as dirlightDeprecated,
|
|
114
|
+
picking as pickingDeprecated,
|
|
115
|
+
gouraudLighting as gouraudLightingDeprecated,
|
|
116
|
+
phongLighting as phongLightingDeprecated,
|
|
117
|
+
pbr as pbrDeprecated
|
|
118
|
+
} from '@luma.gl/shadertools';
|
|
119
|
+
|
|
120
|
+
/** @deprecated Import directly from `@luma.gl/shadertools` */
|
|
121
|
+
export const normalizeShaderModule = normalizeShaderModuleDeprecated;
|
|
122
|
+
/** @deprecated Import directly from `@luma.gl/shadertools` */
|
|
123
|
+
export const fp32 = fp32Deprecated;
|
|
124
|
+
/** @deprecated Import directly from `@luma.gl/shadertools` */
|
|
125
|
+
export const fp64 = fp64Deprecated;
|
|
126
|
+
/** @deprecated Import directly from `@luma.gl/shadertools` */
|
|
127
|
+
export const project = projectDeprecated;
|
|
128
|
+
/** @deprecated Import directly from `@luma.gl/shadertools` */
|
|
129
|
+
export const dirlight = dirlightDeprecated;
|
|
130
|
+
/** @deprecated Import directly from `@luma.gl/shadertools` */
|
|
131
|
+
export const picking = pickingDeprecated;
|
|
132
|
+
/** @deprecated Import directly from `@luma.gl/shadertools` */
|
|
133
|
+
export const gouraudLighting = gouraudLightingDeprecated;
|
|
134
|
+
/** @deprecated Import directly from `@luma.gl/shadertools` */
|
|
135
|
+
export const phongLighting = phongLightingDeprecated;
|
|
136
|
+
/** @deprecated Import directly from `@luma.gl/shadertools` */
|
|
137
|
+
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/gltools';
|