@idmwx/idmui-gl4 3.7.2 → 3.7.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,4 +1,4 @@
1
- import { l as b } from "./index-d48114b4.js";
1
+ import { l as b } from "./index-d012ce2f.js";
2
2
  function M(e) {
3
3
  return typeof e == "string" && /^data:image\/svg\+xml/i.test(e);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { W as a } from "./chunk-3VYIPD3A-8b7fb7e1.js";
1
+ import { W as a } from "./chunk-3VYIPD3A-ba07f99a.js";
2
2
  async function o(r, t) {
3
3
  let i = await a(r, t), e = new Image();
4
4
  return e.src = i.toDataURL(`image/${t.format}`, t.quality), await e.decode(), e.style.width = `${i.width / t.dpr}px`, e.style.height = `${i.height / t.dpr}px`, e;
@@ -1,4 +1,4 @@
1
- import { W as m } from "./chunk-3VYIPD3A-8b7fb7e1.js";
1
+ import { W as m } from "./chunk-3VYIPD3A-ba07f99a.js";
2
2
  async function a(n, e) {
3
3
  let o = e.type;
4
4
  if (o === "svg") {
@@ -1,6 +1,6 @@
1
- import { m as d } from "./chunk-T4JIPPZO-935ef1d2.js";
2
- import { W as f } from "./chunk-3VYIPD3A-8b7fb7e1.js";
3
- import "./index-d48114b4.js";
1
+ import { m as d } from "./chunk-T4JIPPZO-9ee77c7f.js";
2
+ import { W as f } from "./chunk-3VYIPD3A-ba07f99a.js";
3
+ import "./index-d012ce2f.js";
4
4
  import "axios";
5
5
  import "vuetify";
6
6
  import "vue";
@@ -4738,10 +4738,11 @@ const Pc = {
4738
4738
  animation: void 0,
4739
4739
  particleContext: void 0,
4740
4740
  particleTexture: void 0,
4741
+ particleCount: this.simple ? 3e3 : 9e3,
4741
4742
  particleOptions: {
4742
4743
  fadeOpacity: 0.95,
4743
4744
  // how fast the particle trails fade on each frame
4744
- speedFactor: 0.2,
4745
+ speedFactor: this.simple ? 0.1 : 0.2,
4745
4746
  // how fast the particles move
4746
4747
  dropRate: 3e-3,
4747
4748
  // how often the particles move to a random place
@@ -4837,7 +4838,11 @@ const Pc = {
4837
4838
  [0, "rgb(183,224,224)"],
4838
4839
  [1, "rgb(217,220,220)"]
4839
4840
  ];
4840
- this.wrapper = this.webgl.bindParticle(this.particleContext, ...sa.getSources(this.webgl.isWebGL2(this.particleContext))), this.wrapper.color = this.webgl.setup(this.particleContext, t, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
4841
+ this.wrapper = this.webgl.bindParticle(this.particleContext, ...sa.getSources(this.webgl.isWebGL2(this.particleContext))), this.wrapper.color = this.webgl.setup(this.particleContext, t, !0, 16, 16), this.wrapper = {
4842
+ ...this.wrapper,
4843
+ ...this.webgl.setupParticle(this.particleContext, this.particleCount),
4844
+ ...this.webgl.resize(this.viewport, this.particleContext)
4845
+ }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
4841
4846
  }
4842
4847
  },
4843
4848
  async handleDraw() {
@@ -5078,10 +5083,11 @@ const Ec = {
5078
5083
  animation: void 0,
5079
5084
  particleContext: void 0,
5080
5085
  particleTexture: void 0,
5086
+ particleCount: this.simple ? 6e3 : 13e3,
5081
5087
  particleOptions: {
5082
5088
  fadeOpacity: 0.99,
5083
5089
  // how fast the particle trails fade on each frame
5084
- speedFactor: 2,
5090
+ speedFactor: this.simple ? 1.2 : 2,
5085
5091
  // how fast the particles move
5086
5092
  dropRate: 5e-3,
5087
5093
  // how often the particles move to a random place
@@ -5172,7 +5178,7 @@ const Ec = {
5172
5178
  ];
5173
5179
  this.wrapper = this.webgl.bindParticle(this.particleContext, ...sa.getSources(this.webgl.isWebGL2(this.particleContext))), this.wrapper.color = this.webgl.setup(this.particleContext, t, !0, 16, 16), this.wrapper = {
5174
5180
  ...this.wrapper,
5175
- ...this.webgl.setupParticle(this.particleContext, 13e3),
5181
+ ...this.webgl.setupParticle(this.particleContext, this.particleCount),
5176
5182
  ...this.webgl.resize(this.viewport, this.particleContext)
5177
5183
  }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
5178
5184
  }
@@ -5276,14 +5282,14 @@ const jc = {
5276
5282
  lastParticleFrameTime: void 0,
5277
5283
  particleContext: void 0,
5278
5284
  particleTexture: void 0,
5279
- particleCount: 9e3,
5285
+ particleCount: this.simple ? 3e3 : 9e3,
5280
5286
  particleOptions: {
5281
5287
  // Redraw complete strokes each frame without retaining fading trails.
5282
5288
  fadeOpacity: 0,
5283
5289
  // how fast the particle trails fade on each frame
5284
5290
  lineLength: 6,
5285
5291
  lineOpacity: 0.9,
5286
- speedFactor: 0.2,
5292
+ speedFactor: this.simple ? 0.1 : 0.2,
5287
5293
  // how fast the particles move
5288
5294
  // 波浪粒子按 B 通道周期重生,不再使用通用的随机重生概率。
5289
5295
  dropRate: 0,
@@ -5450,7 +5456,7 @@ function Wc(t, e, a, i, o, r) {
5450
5456
  ]), 4)
5451
5457
  ])) : I("", !0);
5452
5458
  }
5453
- const Zc = /* @__PURE__ */ le(jc, [["render", Wc], ["__scopeId", "data-v-e060232b"]]), Vc = {
5459
+ const Zc = /* @__PURE__ */ le(jc, [["render", Wc], ["__scopeId", "data-v-0e362094"]]), Vc = {
5454
5460
  name: "IdmSigWaveHeight",
5455
5461
  props: {
5456
5462
  map: {
@@ -5619,13 +5625,13 @@ const Hc = {
5619
5625
  lastParticleFrameTime: void 0,
5620
5626
  particleContext: void 0,
5621
5627
  particleTexture: void 0,
5622
- particleCount: 9e3,
5628
+ particleCount: this.simple ? 3e3 : 9e3,
5623
5629
  particleOptions: {
5624
5630
  fadeOpacity: 0,
5625
5631
  // 每帧重画完整线段,不保留拖尾。
5626
5632
  lineLength: 6,
5627
5633
  lineOpacity: 0.9,
5628
- speedFactor: 0.2,
5634
+ speedFactor: this.simple ? 0.1 : 0.2,
5629
5635
  // 按 B 通道周期重生,不使用随机重生概率。
5630
5636
  dropRate: 0,
5631
5637
  dropRateBump: 0,
@@ -5786,7 +5792,7 @@ function Uc(t, e, a, i, o, r) {
5786
5792
  ]), 4)
5787
5793
  ])) : I("", !0);
5788
5794
  }
5789
- const Jc = /* @__PURE__ */ le(Hc, [["render", Uc], ["__scopeId", "data-v-8d2f0799"]]), Kc = {
5795
+ const Jc = /* @__PURE__ */ le(Hc, [["render", Uc], ["__scopeId", "data-v-c0342437"]]), Kc = {
5790
5796
  name: "IdmSwellDirection",
5791
5797
  props: {
5792
5798
  map: {
@@ -17753,52 +17759,52 @@ Te.capture = async (t, e, a) => {
17753
17759
  if (a !== tl)
17754
17760
  throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
17755
17761
  let i = await el(t, e), o = { img: async (u, h) => {
17756
- let { toImg: f } = await import("./toImg-0d8625a2.js");
17762
+ let { toImg: f } = await import("./toImg-aef7dadf.js");
17757
17763
  return f(i, { ...u, ...h || {} });
17758
17764
  }, svg: async (u, h) => {
17759
- let { toSvg: f } = await import("./toImg-0d8625a2.js");
17765
+ let { toSvg: f } = await import("./toImg-aef7dadf.js");
17760
17766
  return f(i, { ...u, ...h || {} });
17761
17767
  }, canvas: async (u, h) => {
17762
- let { toCanvas: f } = await import("./toCanvas-ca3e959a.js");
17768
+ let { toCanvas: f } = await import("./toCanvas-34c3b14a.js");
17763
17769
  return f(i, { ...u, ...h || {} });
17764
17770
  }, blob: async (u, h) => {
17765
- let { toBlob: f } = await import("./toBlob-c597e114.js");
17771
+ let { toBlob: f } = await import("./toBlob-e5c4ef1b.js");
17766
17772
  return f(i, { ...u, ...h || {} });
17767
17773
  }, png: async (u, h) => {
17768
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-3fc453b5.js");
17774
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-33e84f41.js");
17769
17775
  return f(i, { ...u, ...h || {}, format: "png" });
17770
17776
  }, jpeg: async (u, h) => {
17771
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-3fc453b5.js");
17777
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-33e84f41.js");
17772
17778
  return f(i, { ...u, ...h || {}, format: "jpeg" });
17773
17779
  }, webp: async (u, h) => {
17774
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-3fc453b5.js");
17780
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-33e84f41.js");
17775
17781
  return f(i, { ...u, ...h || {}, format: "webp" });
17776
17782
  }, download: async (u, h) => {
17777
- let { download: f } = await import("./download-2a15d785.js");
17783
+ let { download: f } = await import("./download-d7703d3d.js");
17778
17784
  return f(i, { ...u, ...h || {} });
17779
17785
  } }, r = { ...e, export: { url: i }, exports: { svg: async (u) => {
17780
- let { toSvg: h } = await import("./toImg-0d8625a2.js");
17786
+ let { toSvg: h } = await import("./toImg-aef7dadf.js");
17781
17787
  return h(i, { ...e, ...u || {}, [da]: !0 });
17782
17788
  }, canvas: async (u) => {
17783
- let { toCanvas: h } = await import("./toCanvas-ca3e959a.js");
17789
+ let { toCanvas: h } = await import("./toCanvas-34c3b14a.js");
17784
17790
  return h(i, { ...e, ...u || {}, [da]: !0 });
17785
17791
  }, png: async (u) => {
17786
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-3fc453b5.js");
17792
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-33e84f41.js");
17787
17793
  return h(i, { ...e, ...u || {}, format: "png", [da]: !0 });
17788
17794
  }, jpeg: async (u) => {
17789
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-3fc453b5.js");
17795
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-33e84f41.js");
17790
17796
  return h(i, { ...e, ...u || {}, format: "jpeg", [da]: !0 });
17791
17797
  }, jpg: async (u) => {
17792
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-3fc453b5.js");
17798
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-33e84f41.js");
17793
17799
  return h(i, { ...e, ...u || {}, format: "jpeg", [da]: !0 });
17794
17800
  }, webp: async (u) => {
17795
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-3fc453b5.js");
17801
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-33e84f41.js");
17796
17802
  return h(i, { ...e, ...u || {}, format: "webp", [da]: !0 });
17797
17803
  }, blob: async (u) => {
17798
- let { toBlob: h } = await import("./toBlob-c597e114.js");
17804
+ let { toBlob: h } = await import("./toBlob-e5c4ef1b.js");
17799
17805
  return h(i, { ...e, ...u || {}, [da]: !0 });
17800
17806
  }, img: async (u) => {
17801
- let { toImg: h } = await import("./toImg-0d8625a2.js");
17807
+ let { toImg: h } = await import("./toImg-aef7dadf.js");
17802
17808
  return h(i, { ...e, ...u || {}, [da]: !0 });
17803
17809
  } } }, l = await qf("defineExports", r), c = Object.assign({}, ...l.filter((u) => u && typeof u == "object")), s = { ...o, ...c };
17804
17810
  s.jpeg && !s.jpg && (s.jpg = (u, h) => s.jpeg(u, h));
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as g, c as n, D as x, L as D, a as T, b as W, M as h, f, e as k, P as y, S as B, T as V, V as d, W as u, d as v } from "./index-d48114b4.js";
1
+ import { B as g, c as n, D as x, L as D, a as T, b as W, M as h, f, e as k, P as y, S as B, T as V, V as d, W as u, d as v } from "./index-d012ce2f.js";
2
2
  import "axios";
3
3
  import "vuetify";
4
4
  import "vue";