-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
node_modules/ | ||
dist/ |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Renderer from "./modules/renderer.js"; | ||
export { Renderer as RouteRenderer }; | ||
//# sourceMappingURL=index.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export declare class Projection { | ||
static getTileSize(zoomLevel: number): number; | ||
static getMercatorWorldCoordinateProjection(zoomLevel: number, latitude: number, longitude: number): { | ||
left: number; | ||
top: number; | ||
}; | ||
static getPixelCoordinates(zoomLevel: number, leftWorldCoordinate: number, topWorldCoordinate: number): { | ||
left: number; | ||
top: number; | ||
}; | ||
static projectToPixelCoordinate(zoomLevel: number, latitude: number, longitude: number): { | ||
left: number; | ||
top: number; | ||
}; | ||
} | ||
//# sourceMappingURL=projection.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { Animation } from "./renderer/animation.js"; | ||
export type RendererOptions = { | ||
topColor?: number[]; | ||
bottomColor?: number[]; | ||
startBlockColor?: number[]; | ||
endBlockColor?: number[]; | ||
leftWallColor?: number[]; | ||
rightWallColor?: number[]; | ||
wallColor?: number[]; | ||
wallWidth?: number; | ||
elevationGradient?: boolean; | ||
elevationGradientColors?: number[][]; | ||
keepMinimumAltitude?: boolean; | ||
projectionZoomLevel?: number; | ||
cameraFov?: number; | ||
cameraTranslation?: number[]; | ||
cameraRotation?: number[]; | ||
premultipliedAlpha?: boolean; | ||
grid?: boolean; | ||
gridColor?: number[]; | ||
gridPadding?: number; | ||
}; | ||
export default class Renderer { | ||
private canvas; | ||
private context; | ||
private options; | ||
private programInfo; | ||
private paths; | ||
private bufferers; | ||
private animations; | ||
private deltaX; | ||
private deltaY; | ||
private previous; | ||
constructor(canvas: HTMLCanvasElement, options: RendererOptions); | ||
setPaths(paths: any[][], animations?: Animation[] | null, project?: boolean): void; | ||
private getAnimationFrame; | ||
private registerMouseEvents; | ||
private render; | ||
private createBuffers; | ||
} | ||
//# sourceMappingURL=renderer.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.