8000 feat: google-maps-utils package prep · NativeScript/plugins@e91e449 · GitHub
[go: up one dir, main page]

Skip to content

Commit e91e449

Browse files
committed
feat: google-maps-utils package prep
1 parent 2157f97 commit e91e449

File tree

11 files changed

+224
-103
lines changed

11 files changed

+224
-103
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@
3434
"@nativescript/types": "~8.9.0",
3535
"@nativescript/webpack": "~5.0.22",
3636
"@ngtools/webpack": "^19.0.0",
37+
"@types/geojson": "^7946.0.7",
3738
"@types/mkdirp": "^1.0.1",
3839
"@types/sprintf-js": "^1.1.0",
3940
"@typescript-eslint/eslint-plugin": "^8.13.0",
4041
"@typescript-eslint/parser": "^8.13.0",
4142
"email-validator": "^2.0.4",
43+
"geojson": "^0.5.0",
4244
"husky": "~9.0.0",
4345
"mkdirp": "^1.0.4",
4446
"nativescript-vue": "~2.9.0",
@@ -57,6 +59,5 @@
5759
"**/*.{js,ts,scss,json,html}": [
5860
"npx prettier --write"
5961
]
60-
},
61-
"dependencies": {}
62+
}
6263
}

packages/google-maps-utils/package.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@nativescript/google-maps-utils",
33
"version": "1.0.0",
4-
"description": "Add a plugin description",
4+
"description": "Google Maps Utilities for NativeScript",
55
"main": "index",
66
"typings": "index.d.ts",
77
"nativescript": {
@@ -21,13 +21,18 @@
2121
"iOS",
2222
"Android"
2323
],
24-
"devDependencies": {
25-
"@types/geojson": "^7946.0.7"
24+
"dependencies": {
25+
"geojson": "^0.5.0"
2626
},
2727
"author": {
28-
"name": "NativeScript",
29-
"email": "oss@nativescript.org"
28+
"name": "Dylan Llewellyn"
3029
},
30+
"contributors": [
31+
{
32+
"name": "NativeScript",
33+
"email": "oss@nativescript.org"
34+
}
35+
],
3136
"bugs": {
3237
"url": "https://github.com/NativeScript/plugins/issues"
3338
},
Lines changed: 65 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,67 @@
11
{
2-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
3-
"projectType": "library",
4-
"sourceRoot": "packages/google-maps-utils",
5-
"targets": {
6-
"build": {
7-
"executor": "@nrwl/js:tsc",
8-
"options": {
9-
"outputPath": "dist/packages/google-maps-utils",
10-
"tsConfig": "packages/google-maps-utils/tsconfig.json",
11-
"packageJson": "packages/google-maps-utils/package.json",
12-
"main": "packages/google-maps-utils/index.d.ts",
13-
"assets": [
14-
"packages/google-maps-utils/*.md",
15-
"packages/google-maps-utils/index.d.ts",
16-
"LICENSE",
17-
{
18-
"glob": "**/*",
19-
"input": "packages/google-maps-utils/platforms/",
20-
"output": "./platforms/"
21-
}
22-
],
23-
"dependsOn": [
24-
{
25-
"target": "build.all",
26-
"projects": "dependencies"
27-
}
28-
]
29-
}
30-
},
31-
"build.all": {
32-
"executor": "@nrwl/workspace:run-commands",
33-
"options": {
34-
"commands": [
35-
"node tools/scripts/build-finish.ts google-maps-utils"
36-
],
37-
"parallel": false
38-
},
39-
"outputs": [
40-
"dist/packages/google-maps-utils"
41-
],
42-
"dependsOn": [
43-
{
44-
"target": "build.all",
45-
"projects": "dependencies"
46-
},
47-
{
48-
"target": "build",
49-
"projects": "self"
50-
}
51-
]
52-
},
53-
"focus": {
54-
"executor": "@nrwl/workspace:run-commands",
55-
"options": {
56-
"commands": [
57-
"nx g @nativescript/plugin-tools:focus-packages google-maps-utils,google-maps"
58-
],
59-
"parallel": false
60-
}
61-
},
62-
"lint": {
63-
"executor": "@nrwl/linter:eslint",
64-
"options": {
65-
"lintFilePatterns": [
66-
"packages/google-maps-utils/**/*.ts"
67-
]
68-
}
69-
}
70-
},
71-
"tags": []
2+
"name": "google-maps-utils",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4+
"projectType": "library",
5+
"sourceRoot": "packages/google-maps-utils",
6+
"targets": {
7+
"build": {
8+
"executor": "@nx/js:tsc",
9+
"options": {
10+
"outputPath": "dist/packages/google-maps-utils",
11+
"tsConfig": "packages/google-maps-utils/tsconfig.json",
12+
"packageJson": "packages/google-maps-utils/package.json",
13+
"main": "packages/google-maps-utils/index.d.ts",
14+
"assets": [
15+
"packages/google-maps-utils/*.md",
16+
"packages/google-maps-utils/index.d.ts",
17+
"packages/google-maps-utils/experimental/**/index.d.ts",
18+
"packages/google-maps-utils/utils/index.d.ts",
19+
"LICENSE",
20+
{
21+
"glob": "**/*",
22+
"input": "packages/google-maps-utils/platforms/",
23+
"output": "./platforms/"
24+
}
25+
],
26+
"dependsOn": [
27+
{
28+
"target": "build.all",
29+
"projects": "dependencies"
30+
}
31+
]
32+
}
33+
},
34+
"build.all": {
35+
"executor": "nx:run-commands",
36+
"options": {
37+
"commands": ["node tools/scripts/build-finish.ts google-maps-utils"],
38+
"parallel": false
39+
},
40+
"outputs": ["{workspaceRoot}/dist/packages/google-maps-utils"],
41+
"dependsOn": [
42+
{
43+
"target": "build.all",
44+
"projects": "dependencies"
45+
},
46+
{
47+
"target": "build",
48+
"projects": "self"
49+
}
50+
]
51+
},
52+
"focus": {
53+
"executor": "nx:run-commands",
54+
"options": {
55+
"commands": ["nx g @nativescript/plugin-tools:focus-packages google-maps-utils,google-maps"],
56+
"parallel": false
57+
}
58+
},
59+
"lint": {
60+
"executor": "@nx/eslint:eslint",
61+
"options": {
62+
"lintFilePatterns": ["packages/google-maps-utils/**/*.ts"]
63+
}
64+
}
65+
},
66+
"tags": []
7267
}

packages/google-maps/common.d.ts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
import { ContentView, Property } from '@nativescript/core';
2+
export declare enum MapType {
3+
None = 'none',
4+
Normal = 'normal',
5+
Satellite = 'satellite',
6+
Terrain = 'terrain',
7+
Hybrid = 'hybrid',
8+
}
9+
export declare enum JointType {
10+
Round = 'round',
11+
Bevel = 'bevel',
12+
Default = 'default',
13+
}
14+
export declare const latProperty: Property<MapViewBase, number>;
15+
export declare const lngProperty: Property<MapViewBase, number>;
16+
export declare const zoomProperty: Property<MapViewBase, number>;
17+
export declare const bearingProperty: Property<MapViewBase, number>;
18+
export declare 57AE const tiltProperty: Property<MapViewBase, number>;
19+
export declare const preventDefaultMarkerTapBehaviorProperty: Property<MapViewBase, boolean>;
20+
export declare class MapViewBase extends ContentView {
21+
static readyEvent: string;
22+
static mapTapEvent: string;
23+
static mapLoadedEvent: string;
24+
static mapLongPressEvent: string;
25+
static markerTapEvent: string;
26+
static myLocationTapEvent: string;
27+
static myLocationButtonTapEvent: string;
28+
static markerDragStartEvent: string;
29+
static markerDraggingEvent: string;
30+
static markerDragEndEvent: string;
31+
static tileRenderingStartEvent: string;
32+
static tileRenderingEndEvent: string;
33+
static cameraPositionEvent: string;
34+
static circleTapEvent: string;
35+
static polygonTapEvent: string;
36+
static polylineTapEvent: string;
37+
static poiTapEvent: string;
38+
static groundOverlayTapEvent: string;
39+
static infoWindowTapEvent: string;
40+
static infoWindowLongPressEvent: string;
41+
static infoWindowCloseEvent: string;
42+
static markerInfoContentsEvent: string;
43+
static markerInfoWindowEvent: string;
44+
static activeBuildingEvent: string;
45+
static activeLevelEvent: string;
46+
lat: number;
47+
lng: number;
48+
zoom: number;
49+
bearing: number;
50+
tilt: number;
51+
preventDefaultMarkerTapBehavior: boolean;
52+
}

packages/google-maps/common.js

Lines changed: 67 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-maps/common.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
0