@tuoyuan/map-adapter-lib
Version:
地图适配器库
27 lines (26 loc) • 404 B
JavaScript
class e {
constructor(t, h) {
this._width = t, this._height = h;
}
get width() {
return this._width;
}
get height() {
return this._height;
}
toString() {
return `${this._width},${this._height}`;
}
toArray() {
return [this._width, this._height];
}
toObject() {
return {
width: this._width,
height: this.height
};
}
}
export {
e as Size
};