"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./mixins.js"),t=require("../../utils/amap-helpers.js"),o=require("./props.js"),r=require("./methods.js"),n=require("./overlay.js"),i=require("../../utils/types.js"),s=e.default(n.default).extend({props:{position:o.defineProp({type:Array,deep:!0,equals:t.theSamePair,setter(e,o){if(!o)return;const r=e,n=t.lngLat2Array(r.getPosition());t.nearPair(o,n)||r.setPosition([o[0],o[1]])},getter(e){const o=e.getPosition();return t.lngLat2Array(o)},events:["dragging","dragend","moving","moveend"]}),topWhenClick:{type:Boolean,default:void 0},animation:o.defineProp("setAnimation",String),angle:o.defineProp({type:Number,equals:t.near,setter(e,t){void 0!==t&&e.setAngle(t)},getter:e=>e.getAngle(),events:["moving"]}),autoRotation:{type:Boolean,default:void 0},title:o.defineProp("setTitle",String),anchor:o.defineProp({type:String,setter:"setAnchor",validator:e=>i.Anchors.includes(e)}),offset:o.defineProp({type:Array,deep:!0,equals:t.theSamePair,setter(e,o){const r=e;if(!o)return;const n=t.xy2Array(r.getOffset());t.nearPair(o,n)||r.setOffset(new window.AMap.Pixel(o[0],o[1]))},transform:e=>new window.AMap.Pixel(e[0],e[1])}),raiseOnDrag:{type:Boolean,default:void 0}},methods:{moveAlong:r.defineMethod("moveAlong",!0),moveTo:r.defineMethod("moveTo",!0),stopMove:r.defineMethod("stopMove")},beforeDestroy(){this.context.component&&this.stopMove()}});exports.default=s;
