@focusbc/bbs-lib 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -63,7 +63,7 @@ export declare class MapOverlay implements Disposable {
63
63
  lng: number;
64
64
  };
65
65
  /**
66
- * Returns the geographic coordinates at the center of the map viewport (screen center).
66
+ * Returns the geographic coordinates at the center of the map viewport (at the screen center).
67
67
  */
68
68
  getViewportCenter(): {
69
69
  lat: number;
@@ -233,7 +233,7 @@ export class MapOverlay {
233
233
  };
234
234
  }
235
235
  /**
236
- * Returns the geographic coordinates at the center of the map viewport (screen center).
236
+ * Returns the geographic coordinates at the center of the map viewport (at the screen center).
237
237
  */
238
238
  getViewportCenter() {
239
239
  const viewport = this._deck.getViewports()?.[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@focusbc/bbs-lib",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "BBS map rendering library (deck.gl + @focusbc/map-rendering)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -12,14 +12,16 @@
12
12
  }
13
13
  },
14
14
  "scripts": {
15
- "build": "tsc",
15
+ "build": "tsc && npm run build:browser",
16
16
  "clean": "rm -rf dist",
17
17
  "sandbox:build": "esbuild sandbox/main.ts --bundle --format=esm --outfile=sandbox/app.js --platform=browser",
18
18
  "sandbox:watch": "esbuild sandbox/main.ts --bundle --format=esm --outfile=sandbox/app.js --platform=browser --watch",
19
19
  "sandbox:serve": "yarn sandbox:build && npx --yes serve sandbox -p 5173",
20
20
  "demo:serve": "cd demo && yarn serve",
21
21
  "prebuild": "npm run clean",
22
- "release:lib": "bash scripts/release-lib.sh"
22
+ "release:lib": "bash scripts/release-lib.sh",
23
+ "build:browser": "esbuild src/index.ts --bundle --format=esm --platform=browser --target=es2020 --outfile=dist/browser/bbs-lib.js --sourcemap --define:process.env.NODE_ENV=\"production\"",
24
+ "upload:browser": "bash scripts/upload-browser-bundle.sh"
23
25
  },
24
26
  "keywords": [
25
27
  "bbs",