WIP Interactive globe from Nico's sources
- The globe is a bit small? Ability to control the max-min size potentially
- Is there a reason why `globe.update()` runs every second? Sounds like a lot of resources?
- Have the ability to control the `addEventListener` of the markers to do whatever (in this case, going to a route by clicking on a link with a sapper-noscroll attribute + changing the href attribute on click - the method `goto` from Sapper scrolls back to top / maybe something to fix with the current transition issues?)
- Edited in `./index.js`:
1. Using the class as `export default WebglGlobe` instead of Window (as Svelte or Sapper doesn't likayt)
- Edited in `Camera.js`:
1. Commented line 218: `e.preventDefault();` would cause this error: `[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See <URL>`
This commit is contained in:
27
src/globe/beam/index.js
Executable file
27
src/globe/beam/index.js
Executable file
@@ -0,0 +1,27 @@
|
||||
export {default as ArrayBuffer} from './ArrayBuffer';
|
||||
export {default as Program} from './Program';
|
||||
export {default as Material} from './Material';
|
||||
export {default as Texture} from './Texture';
|
||||
export {default as Container} from './Container';
|
||||
export {default as Mesh} from './Mesh';
|
||||
export {default as Renderer} from './Renderer';
|
||||
export {default as Camera} from './Camera';
|
||||
export {default as Object3d} from './Object3d';
|
||||
|
||||
import * as mat2 from "./glMatrix/mat2";
|
||||
import * as mat2d from "./glMatrix/mat2d";
|
||||
import * as mat3 from "./glMatrix/mat3";
|
||||
import * as mat4 from "./glMatrix/mat4";
|
||||
import * as quat from "./glMatrix/quat";
|
||||
import * as vec2 from "./glMatrix/vec2";
|
||||
import * as vec3 from "./glMatrix/vec3";
|
||||
import * as vec4 from "./glMatrix/vec4";
|
||||
export {
|
||||
mat2, mat2d, mat3, mat4,
|
||||
quat,
|
||||
vec2, vec3, vec4,
|
||||
};
|
||||
|
||||
export {default as GeometryBuffer} from './GeometryBuffer';
|
||||
export {default as PlaneGeometryBuffer} from './PlaneGeometryBuffer';
|
||||
export {default as SphereGeometryBuffer} from './SphereGeometryBuffer';
|
||||
Reference in New Issue
Block a user