geo-three
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -24,4 +24,6 @@ import { BufferGeometry, Camera, Group, Material, Mesh, Raycaster, Scene, WebGLRenderer } from 'three'; | ||
clear(): any; | ||
minZoom(): number; | ||
maxZoom(): number; | ||
getMetaData(): void; | ||
raycast(raycaster: Raycaster, intersects: any[]): boolean; | ||
} |
@@ -5,4 +5,3 @@ import { BufferGeometry, Intersection, Material, Raycaster, Texture, Vector3 } from 'three'; | ||
export declare class MapHeightNodeShader extends MapHeightNode { | ||
constructor(parentNode?: MapHeightNode, mapView?: MapView, location?: number, level?: number, x?: number, y?: number); | ||
static emptyTexture: Texture; | ||
static defaultHeightTexture: Texture; | ||
static geometrySize: number; | ||
@@ -12,2 +11,3 @@ static geometry: BufferGeometry; | ||
static baseScale: Vector3; | ||
constructor(parentNode?: MapHeightNode, mapView?: MapView, location?: number, level?: number, x?: number, y?: number); | ||
static prepareMaterial(material: Material): Material; | ||
@@ -14,0 +14,0 @@ loadData(): Promise<void>; |
@@ -1,2 +0,2 @@ | ||
import { Material, Mesh, Vector3, BufferGeometry, Object3D } from 'three'; | ||
import { Material, Mesh, Texture, Vector3, BufferGeometry, Object3D } from 'three'; | ||
import { MapView } from '../MapView'; | ||
@@ -11,2 +11,3 @@ export declare class QuadTreePosition { | ||
export declare abstract class MapNode extends Mesh { | ||
static defaultTexture: Texture; | ||
mapView: MapView; | ||
@@ -13,0 +14,0 @@ parentNode: MapNode; |
@@ -5,2 +5,3 @@ import { MapProvider } from './MapProvider'; | ||
maxZoom: number; | ||
minZoom: number; | ||
apiKey: string; | ||
@@ -7,0 +8,0 @@ type: string; |
@@ -13,3 +13,4 @@ import { Color, Vector2, Vector3 } from 'three'; | ||
static vectorToDatums(dir: Vector3): Geolocation; | ||
static datumsToVector(latitude: number, longitude: number): Vector3; | ||
static mapboxAltitude(color: Color): number; | ||
} |
{ | ||
"name": "geo-three", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"type": "module", | ||
@@ -10,7 +10,7 @@ "description": "geo-three is library for tile based geographic map layers in with three.js supporting selective loading/unloading of real-time generated 3D tiles", | ||
".": { | ||
"import": "./build/geo-three.module.js", | ||
"require": "./build/geo-three.cjs" | ||
"import": "./build/geo-three.module.js", | ||
"require": "./build/geo-three.cjs" | ||
}, | ||
"./source/*": "./source/*" | ||
}, | ||
}, | ||
"repository": { | ||
@@ -42,3 +42,3 @@ "type": "git", | ||
"peerDependencies": { | ||
"three": ">0.120.0" | ||
"three": "^0.147.0" | ||
}, | ||
@@ -48,5 +48,5 @@ "devDependencies": { | ||
"@rollup/plugin-typescript": "~8.3.1", | ||
"@types/node": "~16.9.0", | ||
"@types/offscreencanvas": "~2019.6.4", | ||
"@types/node": "~16.9.0", | ||
"@types/three": "^0.140.0", | ||
"@types/three": "^0.146.0", | ||
"@typescript-eslint/eslint-plugin": "~5.12.1", | ||
@@ -64,4 +64,3 @@ "@typescript-eslint/parser": "~5.17.0", | ||
"typescript": "~4.5.5" | ||
}, | ||
"dependencies": {} | ||
} | ||
} |
@@ -6,4 +6,4 @@ import serve from 'rollup-plugin-serve'; | ||
export default { | ||
input: 'source/Main.ts', | ||
external: ['three'], | ||
input: 'source/Main.ts', | ||
plugins: [ | ||
@@ -10,0 +10,0 @@ typescript({ tsconfig: './tsconfig.json' }), |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
371245
6305