UNPKG

@tuoyuan/map-adapter-lib

Version:

地图适配器库

2 lines (1 loc) 347 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class e{constructor(t,r){this._x=t,this._y=r}get x(){return this._x}get y(){return this._y}toString(){return`${this._x},${this._y}`}toArray(){return[this._x,this._y]}toObject(){return{x:this._x,y:this._y}}equals(t){return this.x===t.x&&this.y===t.y}}exports.Pixel=e;