@arcgis/map-components
Version:
ArcGIS Map Components
33 lines (32 loc) • 1.06 kB
JavaScript
import { proxyExports as s } from "@arcgis/lumina/controllers";
import { AccessorController as i } from "@arcgis/lumina/controllers/accessor";
import { isEsriInternalEnv as n } from "@arcgis/components-utils";
import { V as m } from "./useView.js";
import { watch as p } from "@arcgis/core/core/reactiveUtils.js";
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
v4.33.13 */
const v = (t, o) => (e) => a(e, t);
class r extends i {
#o = void 0;
constructor(o, e) {
super(o, e), new m(this.component);
}
hostLoad() {
this.#o = p(
() => this.component.el.view,
(o) => {
this.instance.view = o, this.instance.map = o?.map;
},
{ sync: !0, initial: !0 }
);
}
hostDestroy() {
this.#o?.remove(), super.hostDestroy();
}
}
process.env.NODE_ENV !== "production" && n() && (r.devOnly$allowedPropNameMismatches = /* @__PURE__ */ new Set(["manager", "el", "swipePosition"]));
const a = s(r);
export {
v as m
};