@operato/scene-google-map 10.0.0-beta.2 → 10.0.0-beta.65

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.
package/README.md CHANGED
@@ -1,15 +1,23 @@
1
- ## things-scene-google-map
1
+ # @operato/scene-google-map
2
2
 
3
- ## build
3
+ > Google map integration component for things-scene
4
4
 
5
- `$ yarn build`
5
+ <!-- AUTOGEN_BEGIN: do not edit between markers (run scripts/regenerate-readmes.mjs to update) -->
6
6
 
7
- | type | filename | for | tested |
8
- | ---- | ----------------------------- | -------------- | ------ |
9
- | UMD | things-scene-google-map.js | modern browser | O |
10
- | UMD | things-scene-google-map-ie.js | ie 11 | O |
11
- | ESM | things-scene-google-map.mjs | modern browser | O |
7
+ ## Install
12
8
 
13
- ## publish
9
+ ```bash
10
+ yarn add @operato/scene-google-map
11
+ ```
14
12
 
15
- `$ yarn publish`
13
+ ## Build
14
+
15
+ ```bash
16
+ yarn build
17
+ ```
18
+
19
+ Output: ESM module at `dist/index.js` (single bundle, no UMD/IE legacy).
20
+
21
+ _Version: 10.0.0-beta.2_
22
+
23
+ <!-- AUTOGEN_END -->
@@ -50,7 +50,7 @@ declare const GMapMarker_base: (new (...args: any[]) => {
50
50
  get disposed(): boolean;
51
51
  isLayer(): boolean;
52
52
  isGroup(): boolean;
53
- isContainer(): this is import("@hatiolab/things-scene/dist-types/types/component.js").Container;
53
+ isContainer(): this is import("@hatiolab/things-scene").Container;
54
54
  isLine(): boolean;
55
55
  isRoot(): boolean;
56
56
  isRootModel(): boolean;
@@ -66,9 +66,10 @@ declare const GMapMarker_base: (new (...args: any[]) => {
66
66
  get(property: any): any;
67
67
  set(props: any, propval?: any): any;
68
68
  getState(property: any): any;
69
- setState(props: any, propval?: any): any;
69
+ setState(props: Partial<import("@hatiolab/things-scene").State> | string, propval?: any): any;
70
70
  get model(): any;
71
- get state(): any;
71
+ get state(): import("@hatiolab/things-scene").State;
72
+ get refid(): any;
72
73
  get hierarchy(): any;
73
74
  get volatile(): never[];
74
75
  _applyProps(target: any, props: any, options: any): any;
@@ -159,7 +160,7 @@ declare const GMapMarker_base: (new (...args: any[]) => {
159
160
  findAll(s: string | ((c: Component) => boolean), ...others: any[]): any[] | undefined;
160
161
  capture(x: number, y: number, except?: (c: Component) => boolean): any;
161
162
  findAnchor(name: string): any;
162
- isDescendible(container: Component): boolean;
163
+ isDescendible(container: Component | any): boolean;
163
164
  getContext(component?: unknown): any;
164
165
  get root(): Component;
165
166
  get rootModel(): Component;
@@ -203,9 +204,13 @@ declare const GMapMarker_base: (new (...args: any[]) => {
203
204
  toLocal(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
204
205
  toGlobal(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
205
206
  toOther(x: number, y: number, target: Component): import("@hatiolab/things-scene").POINT;
207
+ on<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback: (...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void, context?: any): any;
206
208
  on(name: string | object, callback: Function, context?: any): any;
209
+ off<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback?: ((...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void) | undefined, context?: any): any;
207
210
  off(name?: string | object, callback?: Function, context?: any): any;
211
+ once<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback: (...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void, context?: any): any;
208
212
  once(name: string | object, callback: Function, context?: any): any;
213
+ trigger<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, ...args: import("@hatiolab/things-scene").ComponentEventMap[K]): any;
209
214
  trigger(name: string, ...args: any[]): any;
210
215
  delegate_on(delegator: any): any;
211
216
  delegate_off(delegator: any): any;
@@ -50,7 +50,7 @@ declare const GMapPath_base: (new (...args: any[]) => {
50
50
  get disposed(): boolean;
51
51
  isLayer(): boolean;
52
52
  isGroup(): boolean;
53
- isContainer(): this is import("@hatiolab/things-scene/dist-types/types/component.js").Container;
53
+ isContainer(): this is import("@hatiolab/things-scene").Container;
54
54
  isLine(): boolean;
55
55
  isRoot(): boolean;
56
56
  isRootModel(): boolean;
@@ -66,9 +66,10 @@ declare const GMapPath_base: (new (...args: any[]) => {
66
66
  get(property: any): any;
67
67
  set(props: any, propval?: any): any;
68
68
  getState(property: any): any;
69
- setState(props: any, propval?: any): any;
69
+ setState(props: Partial<import("@hatiolab/things-scene").State> | string, propval?: any): any;
70
70
  get model(): any;
71
- get state(): any;
71
+ get state(): import("@hatiolab/things-scene").State;
72
+ get refid(): any;
72
73
  get hierarchy(): any;
73
74
  get volatile(): never[];
74
75
  _applyProps(target: any, props: any, options: any): any;
@@ -159,7 +160,7 @@ declare const GMapPath_base: (new (...args: any[]) => {
159
160
  findAll(s: string | ((c: Component) => boolean), ...others: any[]): any[] | undefined;
160
161
  capture(x: number, y: number, except?: (c: Component) => boolean): any;
161
162
  findAnchor(name: string): any;
162
- isDescendible(container: Component): boolean;
163
+ isDescendible(container: Component | any): boolean;
163
164
  getContext(component?: unknown): any;
164
165
  get root(): Component;
165
166
  get rootModel(): Component;
@@ -203,9 +204,13 @@ declare const GMapPath_base: (new (...args: any[]) => {
203
204
  toLocal(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
204
205
  toGlobal(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
205
206
  toOther(x: number, y: number, target: Component): import("@hatiolab/things-scene").POINT;
207
+ on<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback: (...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void, context?: any): any;
206
208
  on(name: string | object, callback: Function, context?: any): any;
209
+ off<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback?: ((...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void) | undefined, context?: any): any;
207
210
  off(name?: string | object, callback?: Function, context?: any): any;
211
+ once<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback: (...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void, context?: any): any;
208
212
  once(name: string | object, callback: Function, context?: any): any;
213
+ trigger<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, ...args: import("@hatiolab/things-scene").ComponentEventMap[K]): any;
209
214
  trigger(name: string, ...args: any[]): any;
210
215
  delegate_on(delegator: any): any;
211
216
  delegate_off(delegator: any): any;
@@ -3,7 +3,7 @@ export default {
3
3
  type: 'gmap-marker',
4
4
  description: 'google map marker',
5
5
  group: 'etc',
6
- /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */
6
+ /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */
7
7
  icon,
8
8
  model: {
9
9
  type: 'gmap-marker',
@@ -1 +1 @@
1
- {"version":3,"file":"gmap-marker.js","sourceRoot":"","sources":["../../src/templates/gmap-marker.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,6BAA6B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEzE,eAAe;IACb,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,mBAAmB;IAChC,KAAK,EAAE,KAAK;IACZ,gGAAgG;IAChG,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,UAAU;QACf,SAAS,EAAE,SAAS;QACpB,MAAM,EAAE,IAAI;KACb;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/gmap-marker.png', import.meta.url).href\n\nexport default {\n type: 'gmap-marker',\n description: 'google map marker',\n group: 'etc',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */\n icon,\n model: {\n type: 'gmap-marker',\n left: 150,\n top: 150,\n width: 40,\n height: 60,\n lat: 22.308117,\n lng: 114.225443,\n fillStyle: '#00ff00',\n hidden: true\n }\n}\n"]}
1
+ {"version":3,"file":"gmap-marker.js","sourceRoot":"","sources":["../../src/templates/gmap-marker.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,6BAA6B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEzE,eAAe;IACb,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,mBAAmB;IAChC,KAAK,EAAE,KAAK;IACZ,wHAAwH;IACxH,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,UAAU;QACf,SAAS,EAAE,SAAS;QACpB,MAAM,EAAE,IAAI;KACb;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/gmap-marker.png', import.meta.url).href\n\nexport default {\n type: 'gmap-marker',\n description: 'google map marker',\n group: 'etc',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */\n icon,\n model: {\n type: 'gmap-marker',\n left: 150,\n top: 150,\n width: 40,\n height: 60,\n lat: 22.308117,\n lng: 114.225443,\n fillStyle: '#00ff00',\n hidden: true\n }\n}\n"]}
@@ -3,7 +3,7 @@ export default {
3
3
  type: 'gmap-path',
4
4
  description: 'google map path',
5
5
  group: 'etc',
6
- /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */
6
+ /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */
7
7
  icon,
8
8
  model: {
9
9
  type: 'gmap-path',
@@ -1 +1 @@
1
- {"version":3,"file":"gmap-path.js","sourceRoot":"","sources":["../../src/templates/gmap-path.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,2BAA2B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEvE,eAAe;IACb,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,iBAAiB;IAC9B,KAAK,EAAE,KAAK;IACZ,gGAAgG;IAChG,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,OAAO,EAAE;YACP;gBACE,GAAG,EAAE,SAAS;gBACd,GAAG,EAAE,UAAU;aAChB;SACF;QACD,6BAA6B,EAAE,IAAI;QACnC,SAAS,EAAE,SAAS;QACpB,MAAM,EAAE,IAAI;KACb;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/gmap-path.png', import.meta.url).href\n\nexport default {\n type: 'gmap-path',\n description: 'google map path',\n group: 'etc',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */\n icon,\n model: {\n type: 'gmap-path',\n left: 150,\n top: 150,\n width: 40,\n height: 60,\n latlngs: [\n {\n lat: 22.308117,\n lng: 114.225443\n }\n ],\n startEndMarkerDifferentDesign: true,\n fillStyle: '#00ff00',\n hidden: true\n }\n}\n"]}
1
+ {"version":3,"file":"gmap-path.js","sourceRoot":"","sources":["../../src/templates/gmap-path.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,2BAA2B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAEvE,eAAe;IACb,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,iBAAiB;IAC9B,KAAK,EAAE,KAAK;IACZ,wHAAwH;IACxH,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,OAAO,EAAE;YACP;gBACE,GAAG,EAAE,SAAS;gBACd,GAAG,EAAE,UAAU;aAChB;SACF;QACD,6BAA6B,EAAE,IAAI;QACnC,SAAS,EAAE,SAAS;QACpB,MAAM,EAAE,IAAI;KACb;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/gmap-path.png', import.meta.url).href\n\nexport default {\n type: 'gmap-path',\n description: 'google map path',\n group: 'etc',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */\n icon,\n model: {\n type: 'gmap-path',\n left: 150,\n top: 150,\n width: 40,\n height: 60,\n latlngs: [\n {\n lat: 22.308117,\n lng: 114.225443\n }\n ],\n startEndMarkerDifferentDesign: true,\n fillStyle: '#00ff00',\n hidden: true\n }\n}\n"]}
@@ -3,7 +3,7 @@ export default {
3
3
  type: 'google-map',
4
4
  description: 'google-map',
5
5
  group: 'etc',
6
- /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */
6
+ /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */
7
7
  icon,
8
8
  model: {
9
9
  type: 'google-map',
@@ -1 +1 @@
1
- {"version":3,"file":"google-map.js","sourceRoot":"","sources":["../../src/templates/google-map.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,4BAA4B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAExE,eAAe;IACb,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IACzB,KAAK,EAAE,KAAK;IACZ,gGAAgG;IAChG,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,UAAU;QACf,IAAI,EAAE,EAAE;QACR,MAAM,EAAE,yCAAyC;KAClD;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/google-map.png', import.meta.url).href\n\nexport default {\n type: 'google-map',\n description: 'google-map',\n group: 'etc',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */\n icon,\n model: {\n type: 'google-map',\n left: 150,\n top: 150,\n width: 300,\n height: 200,\n lat: 22.308117,\n lng: 114.225443,\n zoom: 20,\n apiKey: 'AIzaSyBgQZb-SFqjQBC_XTxNiz0XapejNwV9PgA'\n }\n}\n"]}
1
+ {"version":3,"file":"google-map.js","sourceRoot":"","sources":["../../src/templates/google-map.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,4BAA4B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAExE,eAAe;IACb,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IACzB,KAAK,EAAE,KAAK;IACZ,wHAAwH;IACxH,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,UAAU;QACf,IAAI,EAAE,EAAE;QACR,MAAM,EAAE,yCAAyC;KAClD;CACF,CAAA","sourcesContent":["const icon = new URL('../../icons/google-map.png', import.meta.url).href\n\nexport default {\n type: 'google-map',\n description: 'google-map',\n group: 'etc',\n /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|3D|facility|storage|conveyance|transport|form|etc */\n icon,\n model: {\n type: 'google-map',\n left: 150,\n top: 150,\n width: 300,\n height: 200,\n lat: 22.308117,\n lng: 114.225443,\n zoom: 20,\n apiKey: 'AIzaSyBgQZb-SFqjQBC_XTxNiz0XapejNwV9PgA'\n }\n}\n"]}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@operato/scene-google-map",
3
3
  "description": "Google map integration component for things-scene",
4
4
  "author": "heartyoh",
5
- "version": "10.0.0-beta.2",
5
+ "version": "10.0.0-beta.65",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.js",
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@hatiolab/prettier-config": "^1.0.0",
35
- "@things-factory/builder": "^10.0.0-beta.1",
36
- "@things-factory/operato-board": "^10.0.0-beta.1",
35
+ "@things-factory/builder": "^10.0.0-zeta.1",
36
+ "@things-factory/operato-board": "^10.0.0-zeta.1",
37
37
  "@types/googlemaps": "^3.43.3",
38
38
  "@typescript-eslint/eslint-plugin": "^8.0.0",
39
39
  "@typescript-eslint/parser": "^8.0.0",
@@ -59,5 +59,5 @@
59
59
  "prettier --write"
60
60
  ]
61
61
  },
62
- "gitHead": "350ece104754d007967cf8e3f54d0d157465e94a"
62
+ "gitHead": "99733bf39e2d279630d68844f19d9687272a4992"
63
63
  }