"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../loadPlugins.js"),i=require("../mixins/mixins.js"),t=require("../mixins/props.js"),o=require("../mixins/methods.js"),s=require("./base.js"),n=i.default(s.default).extend({name:"AmapScale",amapMeta:{prepare:()=>e.default("AMap.Scale"),initComponent:async(e,i)=>new e.Scale(i)},props:{position:t.defineProp({type:String,validator:e=>s.ControlPositions.includes(e)}),visible:t.defineProp({type:Boolean,default:!0,setter(e,i){const t=e;i?t.show():t.hide()}}),offset:t.defineProp({type:Array,transform:e=>new window.AMap.Pixel(e[0],e[1])})},methods:{show:o.defineMethod("show"),hide:o.defineMethod("hide"),setPosition:o.defineMethod("position"),setOffset(e){this.context.component.setOffset(new window.AMap.Pixel(e[0],e[1]))}}});exports.default=n;
