Skip to content

Commit df63910

Browse files
committed
Reduce minimum three version
1 parent 17a077d commit df63910

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

build/geo-three.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/nodes/MapNode.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export declare abstract class MapNode extends Mesh {
2222
static baseGeometry: BufferGeometry;
2323
static baseScale: Vector3;
2424
static childrens: number;
25-
isMesh: boolean;
25+
isMesh: true;
2626
constructor(parentNode?: MapNode, mapView?: MapView, location?: number, level?: number, x?: number, y?: number, geometry?: BufferGeometry, material?: Material);
2727
initialize(): Promise<void>;
2828
createChildNodes(): void;

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "geo-three",
3-
"version": "0.1.8",
3+
"version": "0.1.9",
44
"type": "module",
55
"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",
66
"main": "build/Main.d.ts",
@@ -38,7 +38,7 @@
3838
"author": "Tentone",
3939
"license": "MIT",
4040
"peerDependencies": {
41-
"three": "^0.147.0"
41+
"three": "^0.120.0"
4242
},
4343
"devDependencies": {
4444
"@rollup/plugin-strip": "~2.1.0",

source/nodes/MapNode.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export abstract class MapNode extends Mesh
142142
* Used to toggle the visibility of the node. The renderer skips the node rendering if this is set false.
143143
*/
144144
// @ts-ignore
145-
public isMesh: boolean = true;
145+
public isMesh: true = true;
146146

147147
public constructor(parentNode: MapNode = null, mapView: MapView = null, location: number = QuadTreePosition.root, level: number = 0, x: number = 0, y: number = 0, geometry: BufferGeometry = null, material: Material = null)
148148
{
@@ -189,6 +189,7 @@ export abstract class MapNode extends Mesh
189189

190190
if (this.mapView.cacheTiles && this.childrenCache !== null)
191191
{
192+
// @ts-ignore
192193
this.isMesh = false;
193194
this.children = this.childrenCache;
194195
this.nodesLoaded = this.childrenCache.length;
@@ -311,6 +312,7 @@ export abstract class MapNode extends Mesh
311312
{
312313
if (this.parentNode.subdivided === true)
313314
{
315+
// @ts-ignore
314316
this.parentNode.isMesh = false;
315317
}
316318

0 commit comments

Comments
 (0)