Skip to content

Commit

Permalink
Checking in dist/ until we publish a package.
Browse files Browse the repository at this point in the history
  • Loading branch information
na9da committed Mar 28, 2022
1 parent 5323a63 commit 4e8a1f9
Show file tree
Hide file tree
Showing 10 changed files with 691 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
dist/
node_modules/

yarn.lock
Expand Down
621 changes: 621 additions & 0 deletions dist/BoxDrawingCatalogItem.d.ts

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions dist/DrawBoxController.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { Rectangle } from "terriajs-cesium";
import { MapNavigationItemController, Terria, UserDrawing, ViewerMode } from "terriajs-plugin-api";
import BoxDrawingCatalogItem from "./BoxDrawingCatalogItem";
/**
* A map navigation item that triggers a workflow for creating a 3d box by
* letting the user draw a rectangle on the map.
*/
export default class DrawBoxController extends MapNavigationItemController {
readonly terria: Terria;
/**
* The icon to use for this map nav button
*/
glyph: any;
/**
* Show the button only in 3d mode.
*/
viewerMode: ViewerMode;
/**
* A map interaction mode that allows the user to draw shapes on the map.
*/
readonly userDrawing: UserDrawing;
constructor(terria: Terria);
/**
* Start draw mode when the map nav button is clicked.
*/
activate(): void;
/**
* End draw mode when the map nav button is clicked.
*/
deactivate(): void;
/**
* Create a transformable 3d box catalog item.
*/
create3dBox(rectangle: Rectangle): BoxDrawingCatalogItem;
}
12 changes: 12 additions & 0 deletions dist/Models/DrawBoxController.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { MapNavigationItemController, ViewerMode, UserDrawing, Terria } from "terriajs-plugin-api";
import { Rectangle } from "terriajs-cesium";
export default class DrawBoxController extends MapNavigationItemController {
readonly terria: Terria;
glyph: any;
viewerMode: ViewerMode;
readonly userDrawing: UserDrawing;
constructor(terria: Terria);
create3dBox(rectangle: Rectangle): void;
activate(): void;
deactivate(): void;
}
2 changes: 2 additions & 0 deletions dist/Models/addMapButton.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { Terria } from "terriajs-plugin-api";
export declare function addMapButton(terria: Terria): void;
6 changes: 6 additions & 0 deletions dist/Traits/BoxDimensionsTraits.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { ModelTraits } from "terriajs-plugin-api";
export default class BoxDimensionsTraits extends ModelTraits {
length?: number;
width?: number;
height?: number;
}
6 changes: 6 additions & 0 deletions dist/Traits/BoxDrawingCatalogItemTraits.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { CatalogMemberTraits, MappableTraits } from "terriajs-plugin-api";
declare const BoxDrawingCatalogItemTraits_base: import("terriajs/lib/Traits/TraitsConstructor").default<MappableTraits & CatalogMemberTraits & import("terriajs/lib/Traits/ModelTraits").default>;
export default class BoxDrawingCatalogItemTraits extends BoxDrawingCatalogItemTraits_base {
transformationMatrix?: number[];
}
export {};
5 changes: 5 additions & 0 deletions dist/addMapButton.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Terria } from "terriajs-plugin-api";
/**
* Add a map nav button for activating/deactivating the plugin workflow.
*/
export declare function addMapButton(terria: Terria): void;
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 { TerriaPlugin } from "terriajs-plugin-api";
declare const plugin: TerriaPlugin;
export default plugin;
1 change: 1 addition & 0 deletions dist/index.js

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

0 comments on commit 4e8a1f9

Please sign in to comment.