@vcmap/ui 5.3.1 → 5.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- export * from "./cesium.86b93e.js";
1
+ export * from "./cesium.7b7975.js";
@@ -1,8 +1,8 @@
1
1
  var Vu = Object.defineProperty;
2
2
  var $u = (i, t, e) => t in i ? Vu(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
3
  var h = (i, t, e) => ($u(i, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { ol$proj$getTransform as Fe, ol$proj$get as Bu, ol$proj$equivalent as Uu, ol$proj$proj4$register as Ko, ol$geom$Circle as bt, ol$geom$GeometryCollection as Fr, ol$style$Style as ee, ol$style$Fill as st, ol$style$Stroke as $e, ol$style$Text as mo, ol$style$Icon as Ci, ol$style$Circle as xi, ol$style$RegularShape as Rr, ol$has$DEVICE_PIXEL_RATIO as qu, ol$style$Image as Th, ol$Feature as ae, ol$extent$containsCoordinate as ja, ol$Map as Wu, ol$interaction$defaults as Xu, ol$Observable$unByKey as re, ol$View as po, ol$easing$inAndOut as Yu, ol$extent$containsXY as Nh, ol$extent$boundingExtent as ar, ol$layer$Vector as Dh, ol$extent$getBottomLeft as yo, ol$geom$SimpleGeometry as Zu, ol$geom$Point as Dt, ol$geom$LineString as qt, ol$geom$Polygon as At, ol$geom$MultiPoint as Ah, ol$geom$MultiLineString as Fh, ol$geom$MultiPolygon as or, ol$sphere$offset as fn, ol$geom$Polygon$fromCircle as Rh, ol$geom$Polygon$circular as Ku, ol$colorlike$asColorLike as Ju, Feature as Ft, ol$ImageState as Qr, ol$extent$getBottomRight as Gh, ol$extent$getTopRight as kh, ol$extent$getTopLeft as ea, ol$proj$transform as ki, ol$source$Vector as lr, ol$tilegrid$createXYZ as zh, ol$TileState as Hh, ol$proj$Projection as Qu, ol$tilegrid$TileGrid as jh, ol$source$TileImage as ed, ol$layer$Tile as Es, ol$extent$buffer as Vh, ol$extent$getCenter as hr, ol$geom$Polygon$fromExtent as td, ol$proj$transformExtent as Jo, ol$sphere$getDistance as id, ol$format$GeoJSON as $h, ol$extent$getWidth as Va, ol$source$TileWMS as sd, ol$source$ImageWMS as rd, ol$format$GML2 as $a, ol$format$WFS as Ba, ol$format$GML3 as Ua, ol$extent$createEmpty as ws, ol$structs$LRUCache as nd, ol$extent$createOrUpdateFromCoordinate as ad, ol$render$canvas$Immediate as od, ol$geom$flat$transform$transform2D as ld, ol$extent$intersects as hd, ol$geom$SimpleGeometry$transformGeom2D as cd, ol$transform$scale as ud, ol$transform$create as dd, ol$transform$compose as fd, ol$extent$extend as cr, ol$source$OSM as gd, ol$layer$Image as Bh, ol$source$ImageStatic as md, ol$source$TileDebug as pd, ol$source$XYZ as yd, ol$source$VectorTile as _d, ol$layer$VectorTile as vd, ol$tilegrid$WMTS as Sd, ol$source$WMTS as wd, ol$format$MVT as Md, ol$coordinate$equals as Cd, ol$interaction$DragPan as xd, ol$extent$isEmpty as qa, ol$geom$LinearRing as bd } from "./ol.d0972a.js";
5
- import { Math as N, Cartesian3 as _, Cartographic as se, Cesium3DTileStyle as xn, Cesium3DTileColorBlendMode as gn, Color as U, TrustedServers as Zt, VerticalOrigin as gt, Cesium3DTileFeature as Yi, Cesium3DTilePointFeature as Zi, Entity as Ki, Material as Rt, Cartesian2 as j, Matrix3 as X, Quaternion as bn, Primitive as pt, GeometryInstance as ct, FrustumGeometry as Od, ColorGeometryInstanceAttribute as ur, PerInstanceColorAppearance as Ms, FrustumOutlineGeometry as Ed, destroyObject as Pd, EasingFunction as Id, ConditionsExpression as Ld, Expression as Td, HeightReference as Le, ClassificationType as ys, NearFarScalar as er, SplitDirection as Me, SceneTransforms as Nd, MaterialAppearance as On, ShadowMode as Gr, ClassificationPrimitive as Uh, GroundPrimitive as Qo, PolylineMaterialAppearance as Wa, GroundPolylinePrimitive as el, PolygonGeometry as Dd, PolygonOutlineGeometry as Ad, GroundPolylineGeometry as _o, PolylineGeometry as zi, PolygonHierarchy as Xa, CircleGeometry as Fd, CircleOutlineGeometry as Rd, HeadingPitchRoll as Vi, Matrix4 as R, Transforms as bi, Model as vo, sampleTerrainMostDetailed as ta, ModelAnimationLoop as Gd, CylinderOutlineGeometry as kd, CylinderGeometry as qh, EllipsoidOutlineGeometry as zd, EllipsoidGeometry as Wh, SphereOutlineGeometry as Hd, SphereGeometry as jd, BoxOutlineGeometry as Vd, BoxGeometry as Xh, WallGeometry as $d, WallOutlineGeometry as Bd, LabelStyle as pa, HorizontalOrigin as ya, CatmullRomSpline as Yh, ArcType as En, PrimitiveCollection as Oi, BillboardCollection as Ud, LabelCollection as qd, Resource as Wd, CesiumTerrainProvider as tl, Cartesian4 as il, sampleTerrain as Xd, Ellipsoid as Ya, Clock as Yd, DataSourceClock as Zd, JulianDate as Zh, KeyboardEventModifier as _a, ScreenSpaceEventType as pi, CesiumWidget as Kd, DataSourceDisplay as sl, DataSourceCollection as rl, RequestScheduler as Jd, ScreenSpaceEventHandler as Qd, Ray as Kh, Camera as Jh, ImageryLayer as Ji, CustomDataSource as Qh, BoundingSphere as ec, Intersect as ef, BillboardVisualizer as tf, LabelVisualizer as sf, PointVisualizer as rf, WebMercatorTilingScheme as So, GeographicTilingScheme as tc, Rectangle as yt, Cesium3DTileset as Pn, Composite3DTileContent as nf, HeadingPitchRange as af, BoundingSphereState as nl, OpenStreetMapImageryProvider as of, SingleTileImageryProvider as lf, TileMapServiceImageryProvider as hf, Event as al, WebMapServiceImageryProvider as cf, WebMapTileServiceImageryProvider as uf, EntityCollection as df, CzmlDataSource as ff, Plane as ie, ClippingPlaneCollection as dr, ClippingPlane as fr, ConstantProperty as gf, Globe as mf, LinearSpline as pf, QuaternionSpline as yf, CoplanarPolygonGeometry as _f, IntersectionTests as vf } from "./cesium.86b93e.js";
4
+ import { ol$proj$getTransform as Fe, ol$proj$get as Bu, ol$proj$equivalent as Uu, ol$proj$proj4$register as Ko, ol$geom$Circle as bt, ol$geom$GeometryCollection as Fr, ol$style$Style as ee, ol$style$Fill as st, ol$style$Stroke as $e, ol$style$Text as mo, ol$style$Icon as Ci, ol$style$Circle as xi, ol$style$RegularShape as Rr, ol$has$DEVICE_PIXEL_RATIO as qu, ol$style$Image as Th, ol$Feature as ae, ol$extent$containsCoordinate as ja, ol$Map as Wu, ol$interaction$defaults as Xu, ol$Observable$unByKey as re, ol$View as po, ol$easing$inAndOut as Yu, ol$extent$containsXY as Nh, ol$extent$boundingExtent as ar, ol$layer$Vector as Dh, ol$extent$getBottomLeft as yo, ol$geom$SimpleGeometry as Zu, ol$geom$Point as Dt, ol$geom$LineString as qt, ol$geom$Polygon as At, ol$geom$MultiPoint as Ah, ol$geom$MultiLineString as Fh, ol$geom$MultiPolygon as or, ol$sphere$offset as fn, ol$geom$Polygon$fromCircle as Rh, ol$geom$Polygon$circular as Ku, ol$colorlike$asColorLike as Ju, Feature as Ft, ol$ImageState as Qr, ol$extent$getBottomRight as Gh, ol$extent$getTopRight as kh, ol$extent$getTopLeft as ea, ol$proj$transform as ki, ol$source$Vector as lr, ol$tilegrid$createXYZ as zh, ol$TileState as Hh, ol$proj$Projection as Qu, ol$tilegrid$TileGrid as jh, ol$source$TileImage as ed, ol$layer$Tile as Es, ol$extent$buffer as Vh, ol$extent$getCenter as hr, ol$geom$Polygon$fromExtent as td, ol$proj$transformExtent as Jo, ol$sphere$getDistance as id, ol$format$GeoJSON as $h, ol$extent$getWidth as Va, ol$source$TileWMS as sd, ol$source$ImageWMS as rd, ol$format$GML2 as $a, ol$format$WFS as Ba, ol$format$GML3 as Ua, ol$extent$createEmpty as ws, ol$structs$LRUCache as nd, ol$extent$createOrUpdateFromCoordinate as ad, ol$render$canvas$Immediate as od, ol$geom$flat$transform$transform2D as ld, ol$extent$intersects as hd, ol$geom$SimpleGeometry$transformGeom2D as cd, ol$transform$scale as ud, ol$transform$create as dd, ol$transform$compose as fd, ol$extent$extend as cr, ol$source$OSM as gd, ol$layer$Image as Bh, ol$source$ImageStatic as md, ol$source$TileDebug as pd, ol$source$XYZ as yd, ol$source$VectorTile as _d, ol$layer$VectorTile as vd, ol$tilegrid$WMTS as Sd, ol$source$WMTS as wd, ol$format$MVT as Md, ol$coordinate$equals as Cd, ol$interaction$DragPan as xd, ol$extent$isEmpty as qa, ol$geom$LinearRing as bd } from "./ol.f4bb15.js";
5
+ import { Math as N, Cartesian3 as _, Cartographic as se, Cesium3DTileStyle as xn, Cesium3DTileColorBlendMode as gn, Color as U, TrustedServers as Zt, VerticalOrigin as gt, Cesium3DTileFeature as Yi, Cesium3DTilePointFeature as Zi, Entity as Ki, Material as Rt, Cartesian2 as j, Matrix3 as X, Quaternion as bn, Primitive as pt, GeometryInstance as ct, FrustumGeometry as Od, ColorGeometryInstanceAttribute as ur, PerInstanceColorAppearance as Ms, FrustumOutlineGeometry as Ed, destroyObject as Pd, EasingFunction as Id, ConditionsExpression as Ld, Expression as Td, HeightReference as Le, ClassificationType as ys, NearFarScalar as er, SplitDirection as Me, SceneTransforms as Nd, MaterialAppearance as On, ShadowMode as Gr, ClassificationPrimitive as Uh, GroundPrimitive as Qo, PolylineMaterialAppearance as Wa, GroundPolylinePrimitive as el, PolygonGeometry as Dd, PolygonOutlineGeometry as Ad, GroundPolylineGeometry as _o, PolylineGeometry as zi, PolygonHierarchy as Xa, CircleGeometry as Fd, CircleOutlineGeometry as Rd, HeadingPitchRoll as Vi, Matrix4 as R, Transforms as bi, Model as vo, sampleTerrainMostDetailed as ta, ModelAnimationLoop as Gd, CylinderOutlineGeometry as kd, CylinderGeometry as qh, EllipsoidOutlineGeometry as zd, EllipsoidGeometry as Wh, SphereOutlineGeometry as Hd, SphereGeometry as jd, BoxOutlineGeometry as Vd, BoxGeometry as Xh, WallGeometry as $d, WallOutlineGeometry as Bd, LabelStyle as pa, HorizontalOrigin as ya, CatmullRomSpline as Yh, ArcType as En, PrimitiveCollection as Oi, BillboardCollection as Ud, LabelCollection as qd, Resource as Wd, CesiumTerrainProvider as tl, Cartesian4 as il, sampleTerrain as Xd, Ellipsoid as Ya, Clock as Yd, DataSourceClock as Zd, JulianDate as Zh, KeyboardEventModifier as _a, ScreenSpaceEventType as pi, CesiumWidget as Kd, DataSourceDisplay as sl, DataSourceCollection as rl, RequestScheduler as Jd, ScreenSpaceEventHandler as Qd, Ray as Kh, Camera as Jh, ImageryLayer as Ji, CustomDataSource as Qh, BoundingSphere as ec, Intersect as ef, BillboardVisualizer as tf, LabelVisualizer as sf, PointVisualizer as rf, WebMercatorTilingScheme as So, GeographicTilingScheme as tc, Rectangle as yt, Cesium3DTileset as Pn, Composite3DTileContent as nf, HeadingPitchRange as af, BoundingSphereState as nl, OpenStreetMapImageryProvider as of, SingleTileImageryProvider as lf, TileMapServiceImageryProvider as hf, Event as al, WebMapServiceImageryProvider as cf, WebMapTileServiceImageryProvider as uf, EntityCollection as df, CzmlDataSource as ff, Plane as ie, ClippingPlaneCollection as dr, ClippingPlane as fr, ConstantProperty as gf, Globe as mf, LinearSpline as pf, QuaternionSpline as yf, CoplanarPolygonGeometry as _f, IntersectionTests as vf } from "./cesium.7b7975.js";
6
6
  const Qi = Symbol("isMatcher"), Sf = Symbol("Integer"), wf = Symbol("NonEmptyString"), wo = /* @__PURE__ */ new Map();
7
7
  [
8
8
  [String, "string"],
@@ -5556,8 +5556,9 @@ class qe extends Xt {
5556
5556
  super(e);
5557
5557
  h(this, "_styleOptions");
5558
5558
  h(this, "_circleCache", /* @__PURE__ */ new Map());
5559
+ h(this, "_iconCache", /* @__PURE__ */ new Map());
5559
5560
  const s = e.declarativeStyle || {};
5560
- s.show = s.show != null ? s.show : !0, this.cesiumStyle = new xn(s), this._style = this._styleFunction.bind(this), s.strokeColor && Nl(this.cesiumStyle, "strokeColor", s), s.strokeWidth && Nl(this.cesiumStyle, "strokeWidth", s), this._styleOptions = s, this._circleCache = /* @__PURE__ */ new Map();
5561
+ s.show = s.show != null ? s.show : !0, this.cesiumStyle = new xn(s), this._style = this._styleFunction.bind(this), s.strokeColor && Nl(this.cesiumStyle, "strokeColor", s), s.strokeWidth && Nl(this.cesiumStyle, "strokeWidth", s), this._styleOptions = s, this._circleCache = /* @__PURE__ */ new Map(), this._iconCache = /* @__PURE__ */ new Map();
5561
5562
  }
5562
5563
  static get className() {
5563
5564
  return "DeclarativeStyleItem";
@@ -5654,7 +5655,9 @@ class qe extends Xt {
5654
5655
  const a = this.cesiumStyle.image.evaluate(e);
5655
5656
  if (a) {
5656
5657
  const o = { src: a };
5657
- Zt.contains(a) ? o.crossOrigin = "use-credentials" : Kt(a) || (o.crossOrigin = "anonymous"), s.setImage(new Ci(o));
5658
+ Zt.contains(a) ? o.crossOrigin = "use-credentials" : Kt(a) || (o.crossOrigin = "anonymous");
5659
+ const l = `${a}${o.crossOrigin}`;
5660
+ this._iconCache.has(l) || this._iconCache.set(l, new Ci(o)), s.setImage(this._iconCache.get(l));
5658
5661
  }
5659
5662
  } else {
5660
5663
  const a = ((r = this.cesiumStyle.color) == null ? void 0 : r.evaluate(e, Di)) ?? U.WHITE;
@@ -15581,7 +15584,8 @@ class hS extends la {
15581
15584
  h(this, "minLevel");
15582
15585
  h(this, "maxLevel");
15583
15586
  h(this, "extent");
15584
- this.tileProvider = s.tileProvider, this.tileSize = s.tileSize, this.minLevel = s.minLevel, this.maxLevel = s.maxLevel, this.extent = s.extent;
15587
+ h(this, "declutter");
15588
+ this.tileProvider = s.tileProvider, this.tileSize = s.tileSize, this.minLevel = s.minLevel, this.maxLevel = s.maxLevel, this.extent = s.extent, this.declutter = s.declutter;
15585
15589
  }
15586
15590
  static get className() {
15587
15591
  return "VectorTileOpenlayersImpl";
@@ -15607,7 +15611,7 @@ class hS extends la {
15607
15611
  source: this.source,
15608
15612
  renderBuffer: 200,
15609
15613
  renderMode: "hybrid",
15610
- declutter: !0,
15614
+ declutter: this.declutter,
15611
15615
  extent: e,
15612
15616
  minZoom: s,
15613
15617
  maxZoom: r
@@ -16081,6 +16085,7 @@ class Nr extends di {
16081
16085
  h(this, "tileProvider");
16082
16086
  h(this, "_maxLevel");
16083
16087
  h(this, "_minLevel");
16088
+ h(this, "_declutter");
16084
16089
  h(this, "_featureVisibilityListeners", []);
16085
16090
  // eslint-disable-next-line class-methods-use-this
16086
16091
  h(this, "_tileLoadEventListener", () => {
@@ -16097,7 +16102,7 @@ class Nr extends di {
16097
16102
  this.highlightStyle = void 0, e.highlightStyle && (this.highlightStyle = e.highlightStyle instanceof he ? e.highlightStyle : new he(e.highlightStyle)), this.vectorProperties = new Lt({
16098
16103
  allowPicking: this.allowPicking,
16099
16104
  ...e.vectorProperties
16100
- }), this.tileProvider = e.tileProvider instanceof St ? e.tileProvider : ni(Ls, e.tileProvider ?? { type: St.className }), this.tileProvider && (this.tileProvider.locale = this.locale), this._maxLevel = le(e.maxLevel, s.maxLevel), this._minLevel = le(e.minLevel, s.minLevel);
16105
+ }), this.tileProvider = e.tileProvider instanceof St ? e.tileProvider : ni(Ls, e.tileProvider ?? { type: St.className }), this.tileProvider && (this.tileProvider.locale = this.locale), this._maxLevel = le(e.maxLevel, s.maxLevel), this._minLevel = le(e.minLevel, s.minLevel), this._declutter = de(e.declutter, s.declutter);
16101
16106
  }
16102
16107
  static get className() {
16103
16108
  return "VectorTileLayer";
@@ -16111,7 +16116,8 @@ class Nr extends di {
16111
16116
  highlightStyle: void 0,
16112
16117
  vectorProperties: {},
16113
16118
  minLevel: void 0,
16114
- maxLevel: void 0
16119
+ maxLevel: void 0,
16120
+ declutter: !0
16115
16121
  };
16116
16122
  }
16117
16123
  /**
@@ -16202,7 +16208,8 @@ class Nr extends di {
16202
16208
  tileSize: this._tileSize,
16203
16209
  minLevel: this._minLevel,
16204
16210
  maxLevel: this._maxLevel,
16205
- extent: this.extent ?? new xe()
16211
+ extent: this.extent ?? new xe(),
16212
+ declutter: this._declutter
16206
16213
  };
16207
16214
  }
16208
16215
  createImplementationsForMap(e) {
@@ -16234,7 +16241,7 @@ class Nr extends di {
16234
16241
  const e = super.toJSON(), s = Nr.getDefaultOptions();
16235
16242
  this._maxLevel !== s.maxLevel && (e.maxLevel = this._maxLevel), this._minLevel !== s.minLevel && (e.minLevel = this._minLevel);
16236
16243
  const r = this.vectorProperties.getVcsMeta();
16237
- return Object.keys(r).length > 0 && (e.vectorProperties = r), this.tileProvider && (e.tileProvider = this.tileProvider.toJSON()), e;
16244
+ return Object.keys(r).length > 0 && (e.vectorProperties = r), this.tileProvider && (e.tileProvider = this.tileProvider.toJSON()), this._declutter !== s.declutter && (e.declutter = this._declutter), e;
16238
16245
  }
16239
16246
  }
16240
16247
  De.registerClass(Nr.className, Nr);
@@ -1 +1 @@
1
- export * from "./core.380ce3.js";
1
+ export * from "./core.2823d9.js";
@@ -0,0 +1 @@
1
+ import{initAppFromAppConfig as p}from"./ui.ce88d9.js";p("#app","app.config.json");
package/dist/assets/ol.js CHANGED
@@ -1 +1 @@
1
- export * from "./ol.d0972a.js";
1
+ export * from "./ol.f4bb15.js";