Skip to content

Commit 0a7f4fa

Browse files
tariqksolimantcannon686Tom Cannon
authored
v1.5.0 (#45)
* v1.3.0 (#24) * Update README.md * Added boundingBoxEN option to tile layerer (#30) Co-authored-by: Tom Cannon <cthoma20@ndc.nasa.gov> * #1 Add Navigation Control (#31) * Bump v1.4.0 * Add initialCamera option (#33) * Update * #35 Ability to reorder clamped and tile layers after they've been created (#40) * Update (#36) * orderLayers * v1.4.2 * #37 Support larger radius (#43) * #37 Passably poor fix for radiusScale * #37 FarPlane support * #42 Annotations (#44) * #42 Annotations and visibility cutoffs * Bump v1.5.0 Co-authored-by: Thomas Cannon <tom-cannon@playcannon.com> Co-authored-by: Tom Cannon <cthoma20@ndc.nasa.gov>
1 parent 90bbf33 commit 0a7f4fa

39 files changed

+1239
-426
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* linguist-vendored
2+
src/* linguist-vendored=false

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,31 @@
22

33
[Official Releases](https://github.com/NASA-AMMOS/LithoSphere/releases)
44

5+
## v1.5.0
6+
7+
_May 23, 2022_
8+
9+
#### Added
10+
11+
- Support for clamped and vector layer annotations
12+
- Support for clamped and vector layer visibility cutoffs
13+
14+
#### Fixed
15+
16+
- Near-Far plane issues with large planetary radii.
17+
18+
---
19+
20+
## v1.4.2
21+
22+
_May 5, 2022_
23+
24+
#### Added
25+
26+
- New `orderLayers` function
27+
28+
---
29+
530
## v1.4.1
631

732
_May 2, 2022_

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Head over to the **[Documentation](https://nasa-ammos.github.io/LithoSphere/)**
4343
- Tile
4444
- Tile3d
4545
- Model
46+
- Curtain
4647
- Adjustable planetary radii
4748
- Scripts for tiling Digital Elevation Maps (DEM) and custom projections
4849
- Various tile formats:
@@ -58,7 +59,7 @@ Head over to the **[Documentation](https://nasa-ammos.github.io/LithoSphere/)**
5859
- Home
5960
- Exaggerate
6061
- Crop (upcoming?)
61-
- Controls (upcoming)
62+
- Controls
6263
- Coordinates
6364
- Link
6465
- The ability to use custom parsers for your own tiled data formats

dist/lithosphere.js

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/core/cameras.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default class Camera {
4444
onKeyDown: (event: KeyboardEvent) => void;
4545
onKeyUp: (event: KeyboardEvent) => void;
4646
updateSize: () => void;
47-
setNearFarPlane: (farther: any, near: any, far: any, keepNear: any) => void;
47+
setNearFarPlane: (scalar: number, farther: any, near: any, far: any, keepNear: any) => void;
4848
setFirstPersonHeight: (height: any) => void;
4949
getFirstPersonFocalLength: () => number;
5050
setFirstPersonFocalLength: (focalLength: any) => void;

dist/src/core/events.d.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ interface Private {
77
x: number;
88
y: number;
99
};
10+
oldPrevMouseXY: {
11+
x: number;
12+
y: number;
13+
};
1014
containerXY: {
1115
x: number;
1216
y: number;
@@ -16,6 +20,8 @@ interface Private {
1620
zoomedSince: number;
1721
zoomWait: number;
1822
highlightTimeout: any;
23+
rotationDampingInterval: any;
24+
panned: boolean;
1925
}
2026
export default class Events {
2127
_: Private;
@@ -25,7 +31,7 @@ export default class Events {
2531
hoverInfo: HTMLElement;
2632
constructor(parent: any);
2733
_init(): void;
28-
_rotateGlobe: (e: any, prevXY?: any) => void;
34+
_rotateGlobe: (e: any, prevXY?: any, fromDamping?: boolean) => void;
2935
private _rotateAroundArbAxis;
3036
private _rotateGlobe_MouseDown;
3137
private _rotateGlobe_MouseUp;
@@ -46,6 +52,7 @@ export default class Events {
4652
private clearHoveredFeature;
4753
private setActiveFeature;
4854
private clearActiveFeature;
55+
_setMissingElevation(mesh: any): void;
4956
_attenuate(): void;
5057
}
5158
export {};

dist/src/core/projection.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ declare enum RadiusE {
1313
export default class Projection {
1414
_: Private;
1515
baseRadius: number;
16+
radiusCutoff: number;
1617
radiusScale: number;
1718
radii: Radii;
1819
tileMapResource: TileMapResource;
@@ -22,7 +23,7 @@ export default class Projection {
2223
e: number;
2324
ep: number;
2425
flatteningFactor: number;
25-
constructor(majorRadius?: number, minorRadius?: number, tileMapResource?: TileMapResource, trueTileResolution?: number);
26+
constructor(majorRadius?: number, minorRadius?: number, tileMapResource?: TileMapResource, trueTileResolution?: number, radiusCutoff?: number);
2627
_reset(): void;
2728
setRadius: (radius: number, which?: RadiusE) => void;
2829
invertY: (y: number, z: number) => number;

dist/src/layers/clamped.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export default class ClampedLayerer {
44
constructor(parent: any);
55
add: (layerObj: any, callback?: Function) => void;
66
toggle: (name: string, on?: boolean) => boolean;
7+
orderLayers: (ordering: string[]) => boolean;
78
setOpacity: (name: string, opacity: number) => boolean;
89
remove: (name: string) => boolean;
910
getClampedTexture: (i: number, xyz: XYZ) => any;

dist/src/layers/index.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ interface Private {
1717
export default class Layers {
1818
_: Private;
1919
p: any;
20-
baseStyle: any;
2120
tile3d: any;
2221
tile: any;
2322
clamped: any;
@@ -30,14 +29,17 @@ export default class Layers {
3029
addLayer: (type: string, layerObj: any, callback?: Function, sI?: number) => void;
3130
removeLayer: (name: string) => boolean;
3231
toggleLayer: (name: string, on?: boolean) => boolean;
32+
orderLayers: (ordering: string[]) => boolean;
33+
private getDesiredOrder;
3334
setLayerOpacity: (name: string, opacity: number) => boolean;
3435
setLayerFilterEffect: (name: string, filter: string, value: number) => boolean;
3536
setLayerSpecificOptions: (name: string, options: any) => boolean;
3637
findHighestMaxZoom: () => number;
3738
findLowestMinZoom: () => number;
38-
private getFeatureStyleProp;
3939
getLayerByName: (layerName: string) => any;
4040
hasLayer: (layerName: string) => boolean;
41+
private getFeatureStyleProp;
42+
private getBaseStyle;
4143
getFeatureStyle: (layer: any, feature: any, isStrokeless?: boolean) => any;
4244
_onMouseMove: (intersectedLL: any, e: MouseEvent, obj: any, intersectionRaw: any, intersectionPoint: any) => void;
4345
}

dist/src/layers/tile.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export default class TileLayerer {
33
constructor(parent: any);
44
add: (layerObj: any) => void;
55
toggle: (name: string, on?: boolean) => boolean;
6+
orderLayers: (ordering: string[]) => boolean;
67
setOpacity: (name: string, opacity: number) => boolean;
78
setFilterEffect: (name: string, filter: string, value: number) => boolean;
89
remove: (name: string) => boolean;

0 commit comments

Comments
 (0)