Skip to content

Commit

Permalink
Add 0.9.0-patch1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nora Söderlund committed May 3, 2023
1 parent 83c97c1 commit f944892
Show file tree
Hide file tree
Showing 50 changed files with 1,699 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
node_modules/
dist/
1 change: 1 addition & 0 deletions dist/activities_009569ed-3cb9-431b-81e1-42ba4813161e.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions dist/index.d.ts
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
1 change: 1 addition & 0 deletions dist/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions dist/modules/projection.d.ts
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
1 change: 1 addition & 0 deletions dist/modules/projection.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions dist/modules/projection.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/modules/projection.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions dist/modules/renderer.d.ts
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
1 change: 1 addition & 0 deletions dist/modules/renderer.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

207 changes: 207 additions & 0 deletions dist/modules/renderer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f944892

Please sign in to comment.