@operato/scene-google-map 1.3.6

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.
Files changed (65) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +15 -0
  3. package/assets/favicon.ico +0 -0
  4. package/assets/images/spinner.png +0 -0
  5. package/dist/gmap-marker.d.ts +67 -0
  6. package/dist/gmap-marker.js +230 -0
  7. package/dist/gmap-marker.js.map +1 -0
  8. package/dist/gmap-path.d.ts +54 -0
  9. package/dist/gmap-path.js +296 -0
  10. package/dist/gmap-path.js.map +1 -0
  11. package/dist/google-map.d.ts +49 -0
  12. package/dist/google-map.js +178 -0
  13. package/dist/google-map.js.map +1 -0
  14. package/dist/index.d.ts +5 -0
  15. package/dist/index.js +8 -0
  16. package/dist/index.js.map +1 -0
  17. package/dist/templates/gmap-marker.d.ts +18 -0
  18. package/dist/templates/gmap-marker.js +20 -0
  19. package/dist/templates/gmap-marker.js.map +1 -0
  20. package/dist/templates/gmap-path.d.ts +21 -0
  21. package/dist/templates/gmap-path.js +25 -0
  22. package/dist/templates/gmap-path.js.map +1 -0
  23. package/dist/templates/google-map.d.ts +18 -0
  24. package/dist/templates/google-map.js +20 -0
  25. package/dist/templates/google-map.js.map +1 -0
  26. package/dist/templates/index.d.ts +53 -0
  27. package/dist/templates/index.js +5 -0
  28. package/dist/templates/index.js.map +1 -0
  29. package/helps/scene/component/gmap-map.ko.md +3 -0
  30. package/helps/scene/component/gmap-map.md +3 -0
  31. package/helps/scene/component/gmap-map.zh.md +3 -0
  32. package/helps/scene/component/gmap-marker.ko.md +3 -0
  33. package/helps/scene/component/gmap-marker.md +3 -0
  34. package/helps/scene/component/gmap-marker.zh.md +3 -0
  35. package/helps/scene/component/gmap-path.ko.md +3 -0
  36. package/helps/scene/component/gmap-path.md +3 -0
  37. package/helps/scene/component/gmap-path.zh.md +3 -0
  38. package/icons/gmap-marker.png +0 -0
  39. package/icons/gmap-path.png +0 -0
  40. package/icons/google-map.png +0 -0
  41. package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +15 -0
  42. package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +15 -0
  43. package/logs/application-2024-01-01-16.log +9 -0
  44. package/logs/connections-2024-01-01-16.log +41 -0
  45. package/package.json +62 -0
  46. package/schema.graphql +3966 -0
  47. package/src/gmap-marker.ts +306 -0
  48. package/src/gmap-path.ts +365 -0
  49. package/src/google-map.ts +215 -0
  50. package/src/index.ts +8 -0
  51. package/src/templates/gmap-marker.ts +20 -0
  52. package/src/templates/gmap-path.ts +25 -0
  53. package/src/templates/google-map.ts +20 -0
  54. package/src/templates/index.ts +5 -0
  55. package/test/basic-test.html +67 -0
  56. package/test/index.html +24 -0
  57. package/test/unit/test-google-map.js +33 -0
  58. package/test/unit/util.js +22 -0
  59. package/things-scene.config.js +5 -0
  60. package/translations/en.json +6 -0
  61. package/translations/ja.json +6 -0
  62. package/translations/ko.json +6 -0
  63. package/translations/zh.json +6 -0
  64. package/tsconfig.json +22 -0
  65. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,25 @@
1
+ const icon = new URL('../../icons/gmap-path.png', import.meta.url).href;
2
+ export default {
3
+ type: 'gmap-path',
4
+ description: 'google map path',
5
+ group: 'etc',
6
+ /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */
7
+ icon,
8
+ model: {
9
+ type: 'gmap-path',
10
+ left: 150,
11
+ top: 150,
12
+ width: 40,
13
+ height: 60,
14
+ latlngs: [
15
+ {
16
+ lat: 22.308117,
17
+ lng: 114.225443
18
+ }
19
+ ],
20
+ startEndMarkerDifferentDesign: true,
21
+ fillStyle: '#00ff00',
22
+ hidden: true
23
+ }
24
+ };
25
+ //# sourceMappingURL=gmap-path.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ type: string;
3
+ description: string;
4
+ group: string;
5
+ icon: string;
6
+ model: {
7
+ type: string;
8
+ left: number;
9
+ top: number;
10
+ width: number;
11
+ height: number;
12
+ lat: number;
13
+ lng: number;
14
+ zoom: number;
15
+ apiKey: string;
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1,20 @@
1
+ const icon = new URL('../../icons/google-map.png', import.meta.url).href;
2
+ export default {
3
+ type: 'google-map',
4
+ description: 'google-map',
5
+ group: 'etc',
6
+ /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */
7
+ icon,
8
+ model: {
9
+ type: 'google-map',
10
+ left: 150,
11
+ top: 150,
12
+ width: 300,
13
+ height: 200,
14
+ lat: 22.308117,
15
+ lng: 114.225443,
16
+ zoom: 20,
17
+ apiKey: 'AIzaSyBgQZb-SFqjQBC_XTxNiz0XapejNwV9PgA'
18
+ }
19
+ };
20
+ //# sourceMappingURL=google-map.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,53 @@
1
+ declare const _default: ({
2
+ type: string;
3
+ description: string;
4
+ group: string;
5
+ icon: string;
6
+ model: {
7
+ type: string;
8
+ left: number;
9
+ top: number;
10
+ width: number;
11
+ height: number;
12
+ lat: number;
13
+ lng: number;
14
+ zoom: number;
15
+ apiKey: string;
16
+ };
17
+ } | {
18
+ type: string;
19
+ description: string;
20
+ group: string;
21
+ icon: string;
22
+ model: {
23
+ type: string;
24
+ left: number;
25
+ top: number;
26
+ width: number;
27
+ height: number;
28
+ lat: number;
29
+ lng: number;
30
+ fillStyle: string;
31
+ hidden: boolean;
32
+ };
33
+ } | {
34
+ type: string;
35
+ description: string;
36
+ group: string;
37
+ icon: string;
38
+ model: {
39
+ type: string;
40
+ left: number;
41
+ top: number;
42
+ width: number;
43
+ height: number;
44
+ latlngs: {
45
+ lat: number;
46
+ lng: number;
47
+ }[];
48
+ startEndMarkerDifferentDesign: boolean;
49
+ fillStyle: string;
50
+ hidden: boolean;
51
+ };
52
+ })[];
53
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import GoogleMap from './google-map';
2
+ import GmapMarker from './gmap-marker';
3
+ import GmapPath from './gmap-path';
4
+ export default [GoogleMap, GmapMarker, GmapPath];
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/templates/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAA;AACpC,OAAO,UAAU,MAAM,eAAe,CAAA;AACtC,OAAO,QAAQ,MAAM,aAAa,CAAA;AAElC,eAAe,CAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAA","sourcesContent":["import GoogleMap from './google-map'\nimport GmapMarker from './gmap-marker'\nimport GmapPath from './gmap-path'\n\nexport default [GoogleMap, GmapMarker, GmapPath]\n"]}
@@ -0,0 +1,3 @@
1
+ # goolge map[ko]
2
+
3
+ ## properties
@@ -0,0 +1,3 @@
1
+ # goolge map[en]
2
+
3
+ ## properties
@@ -0,0 +1,3 @@
1
+ # goolge map[zh]
2
+
3
+ ## properties
@@ -0,0 +1,3 @@
1
+ # goolge map marker[en]
2
+
3
+ ## properties
@@ -0,0 +1,3 @@
1
+ # goolge map marker[en]
2
+
3
+ ## properties
@@ -0,0 +1,3 @@
1
+ # goolge map marker[en]
2
+
3
+ ## properties
@@ -0,0 +1,3 @@
1
+ # goolge map path[en]
2
+
3
+ ## properties
@@ -0,0 +1,3 @@
1
+ # goolge map path[en]
2
+
3
+ ## properties
@@ -0,0 +1,3 @@
1
+ # goolge map path[en]
2
+
3
+ ## properties
Binary file
Binary file
Binary file
@@ -0,0 +1,15 @@
1
+ {
2
+ "keep": {
3
+ "days": true,
4
+ "amount": 2
5
+ },
6
+ "auditLog": "logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json",
7
+ "files": [
8
+ {
9
+ "date": 1704093807950,
10
+ "name": "logs/application-2024-01-01-16.log",
11
+ "hash": "ae8531454c7d8a5113cbd9b73c99ed6cb1c7cbd928a3c0e5b5f49010392e4c5e"
12
+ }
13
+ ],
14
+ "hashType": "sha256"
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "keep": {
3
+ "days": true,
4
+ "amount": 14
5
+ },
6
+ "auditLog": "logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json",
7
+ "files": [
8
+ {
9
+ "date": 1704093809454,
10
+ "name": "logs/connections-2024-01-01-16.log",
11
+ "hash": "681b7cb4ae7a3fc5eb304ad2d5a6e2fe59d9f48fdd41105f4f6154c2ff044c3a"
12
+ }
13
+ ],
14
+ "hashType": "sha256"
15
+ }
@@ -0,0 +1,9 @@
1
+ 2024-01-01T16:23:28+09:00 info: File Storage is Ready.
2
+ 2024-01-01T16:23:29+09:00 error: oracledb module loading failed
3
+ 2024-01-01T16:23:29+09:00 error: oracledb module loading failed
4
+ 2024-01-01T16:23:40+09:00 info: File Storage is Ready.
5
+ 2024-01-01T16:23:40+09:00 error: oracledb module loading failed
6
+ 2024-01-01T16:23:40+09:00 error: oracledb module loading failed
7
+ 2024-01-01T16:23:41+09:00 info: Default DataSource established
8
+ 2024-01-01T16:23:42+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
9
+ 2024-01-01T16:23:42+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/graphql
@@ -0,0 +1,41 @@
1
+ 2024-01-01T16:23:42+09:00 info: Initializing ConnectionManager...
2
+ 2024-01-01T16:23:42+09:00 info: Connector 'echo-back-server' started to ready
3
+ 2024-01-01T16:23:42+09:00 info: Connector 'echo-back' started to ready
4
+ 2024-01-01T16:23:42+09:00 info: Connector 'http-connector' started to ready
5
+ 2024-01-01T16:23:42+09:00 info: Connector 'graphql-connector' started to ready
6
+ 2024-01-01T16:23:42+09:00 info: Connector 'sqlite-connector' started to ready
7
+ 2024-01-01T16:23:42+09:00 info: Connector 'postgresql-connector' started to ready
8
+ 2024-01-01T16:23:42+09:00 info: Connector 'mqtt-connector' started to ready
9
+ 2024-01-01T16:23:42+09:00 info: Connector 'mssql-connector' started to ready
10
+ 2024-01-01T16:23:42+09:00 info: Connector 'oracle-connector' started to ready
11
+ 2024-01-01T16:23:42+09:00 info: Connector 'mysql-connector' started to ready
12
+ 2024-01-01T16:23:42+09:00 info: Connector 'socket-server' started to ready
13
+ 2024-01-01T16:23:42+09:00 info: Connector 'operato-connector' started to ready
14
+ 2024-01-01T16:23:42+09:00 info: Connector 'msgraph-connector' started to ready
15
+ 2024-01-01T16:23:42+09:00 info: echo-back-servers are ready
16
+ 2024-01-01T16:23:42+09:00 info: echo-back connections are ready
17
+ 2024-01-01T16:23:42+09:00 info: http-connector connections are ready
18
+ 2024-01-01T16:23:42+09:00 info: graphql-connector connections are ready
19
+ 2024-01-01T16:23:42+09:00 info: sqlite-connector connections are ready
20
+ 2024-01-01T16:23:42+09:00 info: postgresql-connector connections are ready
21
+ 2024-01-01T16:23:42+09:00 info: mqtt-connector connections are ready
22
+ 2024-01-01T16:23:42+09:00 info: mssql-connector connections are ready
23
+ 2024-01-01T16:23:42+09:00 info: oracle-connector connections are ready
24
+ 2024-01-01T16:23:42+09:00 info: mysql-connector connections are ready
25
+ 2024-01-01T16:23:42+09:00 info: socket servers are ready
26
+ 2024-01-01T16:23:42+09:00 info: graphql-connector connections are ready
27
+ 2024-01-01T16:23:42+09:00 info: msgraph-connector connections are ready
28
+ 2024-01-01T16:23:42+09:00 info: All connector for 'echo-back-server' ready
29
+ 2024-01-01T16:23:42+09:00 info: All connector for 'echo-back' ready
30
+ 2024-01-01T16:23:42+09:00 info: All connector for 'http-connector' ready
31
+ 2024-01-01T16:23:42+09:00 info: All connector for 'graphql-connector' ready
32
+ 2024-01-01T16:23:42+09:00 info: All connector for 'sqlite-connector' ready
33
+ 2024-01-01T16:23:42+09:00 info: All connector for 'postgresql-connector' ready
34
+ 2024-01-01T16:23:42+09:00 info: All connector for 'mqtt-connector' ready
35
+ 2024-01-01T16:23:42+09:00 info: All connector for 'mssql-connector' ready
36
+ 2024-01-01T16:23:42+09:00 info: All connector for 'oracle-connector' ready
37
+ 2024-01-01T16:23:42+09:00 info: All connector for 'mysql-connector' ready
38
+ 2024-01-01T16:23:42+09:00 info: All connector for 'socket-server' ready
39
+ 2024-01-01T16:23:42+09:00 info: All connector for 'operato-connector' ready
40
+ 2024-01-01T16:23:42+09:00 info: All connector for 'msgraph-connector' ready
41
+ 2024-01-01T16:23:42+09:00 info: ConnectionManager initialization done:
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "@operato/scene-google-map",
3
+ "description": "Google map integration component for things-scene",
4
+ "author": "heartyoh",
5
+ "version": "1.3.6",
6
+ "main": "dist/index.js",
7
+ "module": "dist/index.js",
8
+ "license": "MIT",
9
+ "things-scene": true,
10
+ "publishConfig": {
11
+ "access": "public",
12
+ "@oprato:registry": "https://registry.npmjs.org"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/things-scene/operato-scene.git",
17
+ "directory": "packages/google-map"
18
+ },
19
+ "scripts": {
20
+ "serve": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"things-factory-dev\"",
21
+ "serve:dev": "npm run serve",
22
+ "start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
23
+ "build": "tsc",
24
+ "prepublish": "tsc",
25
+ "lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
26
+ "format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
27
+ "migration": "things-factory-migration"
28
+ },
29
+ "dependencies": {
30
+ "@hatiolab/things-scene": "^3.2.0"
31
+ },
32
+ "devDependencies": {
33
+ "@hatiolab/prettier-config": "^1.0.0",
34
+ "@things-factory/builder": "^6.0.0",
35
+ "@things-factory/operato-board": "^6.0.0",
36
+ "@types/googlemaps": "^3.43.3",
37
+ "@typescript-eslint/eslint-plugin": "^4.33.0",
38
+ "@typescript-eslint/parser": "^4.33.0",
39
+ "@web/dev-server": "^0.1.28",
40
+ "concurrently": "^8.0.1",
41
+ "eslint": "^8.39.0",
42
+ "eslint-config-prettier": "^8.3.0",
43
+ "husky": "^8.0.3",
44
+ "lint-staged": "^13.2.2",
45
+ "prettier": "^2.4.1",
46
+ "tslib": "^2.3.1",
47
+ "typescript": "^5.0.4"
48
+ },
49
+ "prettier": "@hatiolab/prettier-config",
50
+ "husky": {
51
+ "hooks": {
52
+ "pre-commit": "lint-staged"
53
+ }
54
+ },
55
+ "lint-staged": {
56
+ "*.ts": [
57
+ "eslint --fix",
58
+ "prettier --write"
59
+ ]
60
+ },
61
+ "gitHead": "aed920afd35c2a362057a22fc695523d8375975a"
62
+ }