@heycar/heycars-map 0.7.7-animate1 → 0.7.7-animate2

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
@@ -2120,7 +2120,7 @@ const Amap = defineSetup(function Amap2(props, { slots, emit }) {
2120
2120
  (_a = mapRef.value) == null ? void 0 : _a.setStatus(statusOptions2);
2121
2121
  }
2122
2122
  );
2123
- Vue.watch(
2123
+ watchNoneImmediatePostEffectForDeepOption(
2124
2124
  () => props.center,
2125
2125
  (center, prevCenter) => {
2126
2126
  const map = mapRef.value;
@@ -2128,8 +2128,7 @@ const Amap = defineSetup(function Amap2(props, { slots, emit }) {
2128
2128
  return;
2129
2129
  const immediately = prevCenter ? apiMapDistanceVwOfPoints(center, prevCenter) > MAX_ANIMATION_DISTANCE_VW : true;
2130
2130
  map.setCenter(center, immediately);
2131
- },
2132
- { immediate: false, flush: "post" }
2131
+ }
2133
2132
  );
2134
2133
  Vue.watch(
2135
2134
  () => props.zoom,
package/dist/index.js CHANGED
@@ -2118,7 +2118,7 @@ const Amap = defineSetup(function Amap2(props, { slots, emit }) {
2118
2118
  (_a = mapRef.value) == null ? void 0 : _a.setStatus(statusOptions2);
2119
2119
  }
2120
2120
  );
2121
- watch(
2121
+ watchNoneImmediatePostEffectForDeepOption(
2122
2122
  () => props.center,
2123
2123
  (center, prevCenter) => {
2124
2124
  const map = mapRef.value;
@@ -2126,8 +2126,7 @@ const Amap = defineSetup(function Amap2(props, { slots, emit }) {
2126
2126
  return;
2127
2127
  const immediately = prevCenter ? apiMapDistanceVwOfPoints(center, prevCenter) > MAX_ANIMATION_DISTANCE_VW : true;
2128
2128
  map.setCenter(center, immediately);
2129
- },
2130
- { immediate: false, flush: "post" }
2129
+ }
2131
2130
  );
2132
2131
  watch(
2133
2132
  () => props.zoom,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycar/heycars-map",
3
- "version": "0.7.7-animate1",
3
+ "version": "0.7.7-animate2",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite -c vite.config.dev.ts",