@heycar/heycars-map 0.7.4-zone3 → 0.7.4-zone4

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/dist/index.cjs CHANGED
@@ -9,7 +9,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
9
9
  const Vue = require("vue");
10
10
  const style = "";
11
11
  const name = "@heycar/heycars-map";
12
- const version = "0.7.4-zone3";
12
+ const version = "0.7.4-zone4";
13
13
  const type = "module";
14
14
  const scripts = {
15
15
  dev: "vite -c vite.config.dev.ts",
@@ -7371,9 +7371,6 @@ const BusinessTaxiServiceMap = defineLagecySetup(function BusinessTaxiServiceMap
7371
7371
  });
7372
7372
  const carPositionRef = Vue.ref();
7373
7373
  const carAngleRef = Vue.ref();
7374
- const {
7375
- toGcj02
7376
- } = useMapGCJ02();
7377
7374
  Vue.watch(() => props.driverStatus, (status, _, onCleanup) => {
7378
7375
  if (!STATUS_NEED_CAR_POSITION.includes(status))
7379
7376
  return;
@@ -7384,7 +7381,7 @@ const BusinessTaxiServiceMap = defineLagecySetup(function BusinessTaxiServiceMap
7384
7381
  }) => {
7385
7382
  assertPoint(position);
7386
7383
  assertAngle(angle);
7387
- carPositionRef.value = position ? await toGcj02(position) : void 0;
7384
+ carPositionRef.value = position != null ? position : void 0;
7388
7385
  carAngleRef.value = angle;
7389
7386
  });
7390
7387
  };
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ var __publicField = (obj, key, value) => {
7
7
  import Vue, { defineComponent, h, computed, inject, provide, watch, onMounted, onUnmounted, watchPostEffect, shallowRef, ref, watchEffect, reactive, toRefs, toRef } from "vue";
8
8
  const style = "";
9
9
  const name = "@heycar/heycars-map";
10
- const version = "0.7.4-zone3";
10
+ const version = "0.7.4-zone4";
11
11
  const type = "module";
12
12
  const scripts = {
13
13
  dev: "vite -c vite.config.dev.ts",
@@ -7369,9 +7369,6 @@ const BusinessTaxiServiceMap = defineLagecySetup(function BusinessTaxiServiceMap
7369
7369
  });
7370
7370
  const carPositionRef = ref();
7371
7371
  const carAngleRef = ref();
7372
- const {
7373
- toGcj02
7374
- } = useMapGCJ02();
7375
7372
  watch(() => props.driverStatus, (status, _, onCleanup) => {
7376
7373
  if (!STATUS_NEED_CAR_POSITION.includes(status))
7377
7374
  return;
@@ -7382,7 +7379,7 @@ const BusinessTaxiServiceMap = defineLagecySetup(function BusinessTaxiServiceMap
7382
7379
  }) => {
7383
7380
  assertPoint(position);
7384
7381
  assertAngle(angle);
7385
- carPositionRef.value = position ? await toGcj02(position) : void 0;
7382
+ carPositionRef.value = position != null ? position : void 0;
7386
7383
  carAngleRef.value = angle;
7387
7384
  });
7388
7385
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycar/heycars-map",
3
- "version": "0.7.4-zone3",
3
+ "version": "0.7.4-zone4",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite -c vite.config.dev.ts",