Skip to content

Commit

Permalink
Stage Release
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Aug 19, 2021
1 parent d779cb5 commit 7a176b4
Show file tree
Hide file tree
Showing 36 changed files with 465 additions and 2,205 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# CHANGELOG

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

## v1.0.0

LithoSphere's first release!

## v1.0.1

### Added

- Support for WMS tiles of any projection
- A .tif tile parser

## v1.0.2

### Changed

- PNG.js and zlib.js are now modules instead of globals
2,206 changes: 1 addition & 2,205 deletions dist/lithosphere.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/src/constants.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export declare const NO_DATA_VALUE_INTERNAL = -1100101;
Empty file added dist/src/controls/altitude.d.ts
Empty file.
15 changes: 15 additions & 0 deletions dist/src/controls/compass.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Corners } from '../generalTypes.d.ts';
interface Private {
}
export default class Compass {
_: Private;
p: any;
name: string;
corner: Corners;
constructor(parent: any, name: string);
getControl: () => string;
attachEvents: () => void;
onUpdate: () => void;
setDirection: () => void;
}
export {};
Empty file added dist/src/controls/controls.d.ts
Empty file.
19 changes: 19 additions & 0 deletions dist/src/controls/coordinates.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { Corners } from '../generalTypes.d.ts';
interface Private {
}
interface Params {
existingDivId?: string;
}
export default class Coordinates {
_: Private;
p: any;
name: string;
params: Params;
corner: Corners;
constructor(parent: any, name: string, params?: object);
getControl: () => string;
attachEvents: () => void;
onUpdate: () => void;
private updateMouseCoords;
}
export {};
Empty file added dist/src/controls/crop.d.ts
Empty file.
18 changes: 18 additions & 0 deletions dist/src/controls/exaggerate.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Corners } from '../generalTypes.d.ts';
interface Private {
}
export default class Exaggerate {
_: Private;
id: string;
p: any;
name: string;
corner: Corners;
exaggeration: number;
constructor(parent: any, name: string);
getControl: () => string;
attachEvents: () => void;
private getInactiveContent;
private getActiveContent;
setExaggeration: (multiplier: number) => void;
}
export {};
13 changes: 13 additions & 0 deletions dist/src/controls/home.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Corners } from '../generalTypes';
interface Private {
}
export default class Home {
_: Private;
p: any;
name: string;
corner: Corners;
constructor(parent: any, name: string);
getControl: () => string;
attachEvents: () => void;
}
export {};
29 changes: 29 additions & 0 deletions dist/src/controls/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { Corners } from '../generalTypes';
export default class Controls {
p: any;
controlContainer: HTMLElement;
corners: {
TopLeft: HTMLElement;
TopRight: HTMLElement;
BottomLeft: HTMLElement;
BottomRight: HTMLElement;
};
activeControls: any;
compass: any;
coordinates: any;
home: any;
layers: any;
exaggerate: any;
observe: any;
walk: any;
link: any;
constructor(parent: any);
addControl: (name: string, control: any, params?: object, corner?: Corners) => any;
removeControl: (name: any) => void;
_onUpdateEvent: () => void;
_onMove: (lng: any, lat: any, height: any) => void;
_onMouseMove: (lng: any, lat: any, height: any) => void;
_onMouseOut: (e?: any) => void;
_onFirstPersonUpdate: () => void;
_onOrbitalUpdate: (e?: any) => void;
}
17 changes: 17 additions & 0 deletions dist/src/controls/layers.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Corners } from '../generalTypes.d.ts';
interface Private {
}
export default class Layers {
_: Private;
id: string;
p: any;
name: string;
corner: Corners;
constructor(parent: any, name: string);
getControl: () => string;
attachEvents: () => void;
private getInactiveContent;
private getActiveContent;
private attachEventsInternal;
}
export {};
29 changes: 29 additions & 0 deletions dist/src/controls/link.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { Corners } from '../generalTypes';
import { Object3D } from 'three';
interface Private {
linkPanned: boolean;
linkPannedTimeout: any;
targetPoint?: Object3D;
}
export default class Link {
_: Private;
p: any;
name: string;
params: any;
corner: Corners;
return: any;
constructor(parent: any, name: string, params?: object);
getControl: () => string;
attachEvents: () => void;
getReturn: () => any;
onMove: (lng: any, lat: any, height: any) => void;
onMouseMove: (lng: any, lat: any, height: any) => void;
onMouseOut: () => void;
onFirstPersonUpdate: () => void;
onOrbitalUpdate: () => void;
setLink: (latlng?: any, style?: any, spriteId?: string) => void;
linkMove: (lng: number, lat: number) => void;
linkMouseMove: (lng: number, lat: number) => void;
linkMouseOut: () => void;
}
export {};
23 changes: 23 additions & 0 deletions dist/src/controls/observe.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { Corners } from '../generalTypes.d.ts';
interface Private {
}
export default class Observe {
_: Private;
p: any;
name: string;
id: string;
helpDiv: HTMLElement;
corner: Corners;
constructor(parent: any, name: string);
getControl: () => string;
private getInactiveContent;
private getActiveContent;
attachEvents: () => void;
private setCamera;
private leaveObserver;
private getObserverValues;
private keydownObserverSettings;
private toggleFOVOverlay;
private updateFOVOverlayBounds;
}
export {};
16 changes: 16 additions & 0 deletions dist/src/controls/walk.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { Corners } from '../generalTypes.d.ts';
interface Private {
}
export default class Walk {
_: Private;
p: any;
name: string;
helpDiv: HTMLElement;
corner: Corners;
constructor(parent: any, name: string);
getControl: () => string;
attachEvents: () => void;
private setCamera;
private leaveWalking;
}
export {};
58 changes: 58 additions & 0 deletions dist/src/core/cameras.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import { Vector2, Vector3 } from 'three';
interface Private {
keepNear: boolean;
crosshair: HTMLElement;
}
interface Orbit {
camera: any;
controls: any;
near: number;
far: number;
}
interface FirstPerson {
camera: any;
controls: any;
lockControls: boolean;
height: 3;
}
export default class Camera {
_: Private;
container: HTMLElement;
sceneContainer: HTMLElement;
camera: any;
controls: any;
orbit: Orbit;
firstPerson: FirstPerson;
isFirstPerson: boolean;
isShift: boolean;
moveForward?: boolean;
moveBackward?: boolean;
moveLeft?: boolean;
moveRight?: boolean;
canJump?: boolean;
prevTime?: number;
velocity?: Vector3;
constructor(container: HTMLElement, sceneContainer: HTMLElement, scene: any, projection: any);
reset(): void;
_init(scene: any, projection: any): void;
swap(lockControls: any, skipLock: any): void;
private inToFirstPerson;
private outFromFirstPerson;
private toggleCrosshair;
private requestPointerLocking;
setupEvents(): void;
onKeyDown: (event: KeyboardEvent) => void;
onKeyUp: (event: KeyboardEvent) => void;
updateSize: () => void;
setNearFarPlane: (farther: any, near: any, far: any, keepNear: any) => void;
setFirstPersonHeight: (height: any) => void;
getFirstPersonFocalLength: () => number;
setFirstPersonFocalLength: (focalLength: any) => void;
getFirstPersonFOV: () => number;
setFirstPersonFOV: (fov: any) => void;
getFirstPersonAspect: () => number;
setFirstPersonAspect: (aspect: any) => void;
setCameraAzimuthElevation: (az: any, el: any, cameraIsFirstPerson: any) => void;
update: () => Vector2;
}
export {};
50 changes: 50 additions & 0 deletions dist/src/core/events.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
interface Private {
mouseXY: {
x: number;
y: number;
};
prevMouseXY: {
x: number;
y: number;
};
containerXY: {
x: number;
y: number;
};
lastZoomDelta: number;
desiredZoom: number;
zoomedSince: number;
zoomWait: number;
highlightTimeout: any;
}
export default class Events {
_: Private;
p: any;
activeFeature: any;
hoveredFeature: any;
hoverInfo: HTMLElement;
constructor(parent: any);
_init(): void;
_rotateGlobe: (e: any, prevXY?: any) => void;
private _rotateAroundArbAxis;
private _rotateGlobe_MouseDown;
private _rotateGlobe_MouseUp;
_checkDesiredZoom(): void;
private _setZoom;
_onZoom: (e?: any) => void;
_onTouchZoom: (e: any) => void;
_matchPlanetsLODToPlanet(): void;
_refreshFrontGroupRotation(): void;
private _onClick;
_onMouseMove: (e?: any) => void;
private _updateMouseCoords;
private updateHoverInfoPosition;
private _highlightFeature;
private _unhighlightHoveredFeature;
private setHoveredFeature;
private clearHoveredFeature;
private setActiveFeature;
private clearActiveFeature;
_attenuate(): void;
}
export {};
8 changes: 8 additions & 0 deletions dist/src/core/renderer.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default class Renderer {
renderer: any;
container: HTMLElement;
constructor(container: HTMLElement);
_init(): void;
updateSize: () => void;
remove(): void;
}
7 changes: 7 additions & 0 deletions dist/src/core/shaders.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { ShaderMaterial } from 'three';
declare const Shaders: {
simplePoint: () => ShaderMaterial;
multiTexture: (textures: any, fadeIn?: boolean) => ShaderMaterial;
atmosphere: (color?: string) => ShaderMaterial;
};
export default Shaders;
10 changes: 10 additions & 0 deletions dist/src/layers/clamped.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { XYZ } from '../generalTypes.d.ts';
export default class ClampedLayerer {
p: any;
constructor(parent: any);
add: (layerObj: any, callback?: Function) => void;
toggle: (name: string, on?: boolean) => boolean;
setOpacity: (name: string, opacity: number) => boolean;
remove: (name: string) => boolean;
getClampedTexture: (i: number, xyz: XYZ) => any;
}
Empty file added dist/src/layers/curtain.d.ts
Empty file.
34 changes: 34 additions & 0 deletions dist/src/layers/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import Tile3dLayerer from './tile3d';
import TileLayerer from './tile';
import ClampedLayerer from './clamped';
import VectorLayerer from './vector';
interface Private {
layerers: {
tile3d: Tile3dLayerer;
tile: TileLayerer;
clamped: ClampedLayerer;
vector: VectorLayerer;
};
}
export default class Layers {
_: Private;
p: any;
baseStyle: any;
tile3d: any;
tile: any;
clamped: any;
vector: any;
all: any;
constructor(parent: any);
_reset(): void;
addLayer: (type: string, layerObj: any, callback?: Function, sI?: number) => void;
removeLayer: (name: string) => boolean;
toggleLayer: (name: string, on?: boolean) => boolean;
setLayerOpacity: (name: string, opacity: number) => boolean;
findHighestMaxZoom: () => number;
findLowestMinZoom: () => number;
private getFeatureStyleProp;
getLayerByName: (layerName: string) => any;
getFeatureStyle: (layer: any, feature: any, isStrokeless?: boolean) => any;
}
export {};
Empty file added dist/src/layers/model.d.ts
Empty file.
Empty file added dist/src/layers/overlay.d.ts
Empty file.
8 changes: 8 additions & 0 deletions dist/src/layers/tile.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default class TileLayerer {
p: any;
constructor(parent: any);
add: (layerObj: any) => void;
toggle: (name: string, on?: boolean) => boolean;
setOpacity: (name: string, opacity: number) => boolean;
remove: (name: string) => boolean;
}
Loading

0 comments on commit 7a176b4

Please sign in to comment.