@funnest/charts-ui 0.11.58 → 0.11.60

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.
Files changed (2) hide show
  1. package/dist/index.js +623 -377
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -2966,6 +2966,32 @@ var CSS = (
2966
2966
  .fnc-sheet .fnc-sheet-body .fnc-tool-fav { opacity: 1; }
2967
2967
  .fnc-sheet .fnc-sheet-body .fnc-tool-tiles { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
2968
2968
  .fnc-sheet .fnc-sheet-body .fnc-tool-tile { width: 100%; height: 44px; }
2969
+ /* A phone's drawing style sheet (drawing-toolbar StyleSheet): title and \uAE30\uBCF8\uAC12\uC73C\uB85C at the top, sections
2970
+ (\uC120 \xB7 \uD14D\uC2A4\uD2B8 \xB7 \uC635\uC158 \xB7 \uB808\uBCA8 \xB7 \uBA54\uBAA8 \xB7 \uC88C\uD45C \xB7 \uBCF4\uC774\uB294 \uC8FC\uAE30 \xB7 \uC21C\uC11C \xB7 \uD15C\uD50C\uB9BF) under it. */
2971
+ .fnc-sheet.fnc-style-sheet { max-height: min(82dvh, 720px); }
2972
+ .fnc-sheet .fnc-ss-head { position: relative; display: flex; align-items: center; justify-content: space-between; height: auto; padding: 20px 16px 6px; }
2973
+ .fnc-ss-head > span { position: absolute; top: 8px; left: 50%; margin-left: -20px; }
2974
+ .fnc-ss-head h2 { margin: 0; color: var(--fnc-text); font-size: 18px; font-weight: 700; }
2975
+ .fnc-ss-reset { padding: 6px 4px; border: 0; background: none; color: var(--fnc-text-2); font: inherit; font-size: 14px; cursor: pointer; }
2976
+ .fnc-ss-body { flex: 1; min-height: 0; padding: 0 16px 16px; overflow-y: auto; overscroll-behavior: contain; }
2977
+ .fnc-ss-section { padding: 8px 0; border-top: 1px solid var(--fnc-border); }
2978
+ .fnc-ss-section:first-child { border-top: 0; }
2979
+ .fnc-ss-section h3 { margin: 6px 0 6px; color: var(--fnc-text-2); font-size: 13px; font-weight: 600; }
2980
+ .fnc-ss-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; color: var(--fnc-text); font-size: 15px; }
2981
+ .fnc-sheet .fnc-ss-color { width: 32px; height: 32px; border-radius: 50%; }
2982
+ .fnc-ss-seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--fnc-surface); }
2983
+ .fnc-ss-seg button { display: grid; place-items: center; width: 46px; height: 32px; border-radius: 8px; color: var(--fnc-text-2); }
2984
+ .fnc-ss-seg button[aria-checked='true'] { background: var(--fnc-bg); color: var(--fnc-text); box-shadow: 0 0 0 1px var(--fnc-border); }
2985
+ .fnc-ss-step { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--fnc-surface); }
2986
+ .fnc-ss-step button { width: 38px; height: 32px; border-radius: 999px; color: var(--fnc-text); font-size: 18px; }
2987
+ .fnc-ss-step button:disabled { opacity: 0.35; }
2988
+ .fnc-ss-step b { min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; }
2989
+ .fnc-ss-text { box-sizing: border-box; width: 100%; height: 42px; font-size: 15px; }
2990
+ .fnc-ss-body .fnc-menu-item { min-height: 44px; font-size: 15px; }
2991
+ .fnc-ss-body .fnc-levels-list { max-height: none; }
2992
+ /* \u{1F58C}'s colors: one row of swatches over the bar. */
2993
+ .fnc-menu.fnc-brush-pop { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; }
2994
+ .fnc-brush-pop .fnc-swatch { width: 32px; height: 32px; }
2969
2995
  .fnc-tool-row .fnc-menu-item { flex: 1; padding-right: 36px; }
2970
2996
  .fnc-tool-fav { position: absolute; right: 6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; color: var(--fnc-text-2); opacity: 0; cursor: pointer; }
2971
2997
  .fnc-tool-row:hover .fnc-tool-fav, .fnc-tool-fav:focus-visible, .fnc-tool-fav[aria-pressed='true'] { opacity: 1; }
@@ -4525,8 +4551,23 @@ function SelectionBar({ ctx }) {
4525
4551
  const [offset, setOffset] = d2(() => readJson(POS_KEY, [0, 0]));
4526
4552
  const [recent, setRecent] = d2(() => recentColors().slice(0, 3));
4527
4553
  const [menu, setMenu] = d2(null);
4554
+ const [sheet, setSheet] = d2(false);
4528
4555
  const [templates, setTemplates] = d2(() => readJson(TEMPLATES_KEY, {}));
4529
4556
  const [naming, setNaming] = d2(null);
4557
+ const bar = T2(null);
4558
+ F2(() => {
4559
+ const pop = bar.current?.querySelector(".fnc-selbar-pop");
4560
+ if (!pop || !bar.current) return;
4561
+ pop.style.maxHeight = "";
4562
+ const host = ctx.root.getBoundingClientRect();
4563
+ const r3 = pop.getBoundingClientRect();
4564
+ const up = r3.bottom <= bar.current.getBoundingClientRect().top + 1;
4565
+ const room = up ? r3.bottom - Math.max(host.top, 0) - 8 : Math.min(host.bottom, innerHeight) - r3.top - 8;
4566
+ if (r3.height > room) {
4567
+ pop.style.maxHeight = `${Math.max(120, Math.floor(room))}px`;
4568
+ pop.style.overflowY = "auto";
4569
+ }
4570
+ }, [menu]);
4530
4571
  if (!d3 || s3.layout.plotWidth <= 0) return null;
4531
4572
  const def = ctx.chart.drawingDefinitions().find((x2) => x2.type === d3.type);
4532
4573
  const style = d3.style ?? {};
@@ -4599,7 +4640,281 @@ function SelectionBar({ ctx }) {
4599
4640
  document.addEventListener("pointermove", move);
4600
4641
  document.addEventListener("pointerup", up);
4601
4642
  };
4602
- return /* @__PURE__ */ a3("div", { class: "fnc-selbar", role: "toolbar", style: { left: `${s3.layout.plotWidth / 2 + offset[0]}px`, top: `${8 + offset[1]}px` }, children: [
4643
+ const phone = touchDevice();
4644
+ const widthIndex = Math.max(0, WIDTHS.indexOf(style.width ?? 2));
4645
+ const fontIndex = Math.max(0, FONT_SIZES.indexOf(style.fontSize ?? 14));
4646
+ const colorsBody = () => /* @__PURE__ */ a3($, { children: [
4647
+ slots.map((slot) => {
4648
+ const c3 = slotColor(slot.key, slot.color);
4649
+ return /* @__PURE__ */ a3("div", { class: "fnc-menu-item fnc-part", children: [
4650
+ /* @__PURE__ */ a3(ColorPicker, { class: "fnc-swatch", style: { background: c3 }, value: c3, label: `${slot.name[s3.locale]} ${t3.color}`, t: t3, onPick: (color) => setStyle({ colors: { ...style.colors, [slot.key]: color } }) }),
4651
+ /* @__PURE__ */ a3("span", { children: slot.name[s3.locale] })
4652
+ ] });
4653
+ }),
4654
+ /* @__PURE__ */ a3(
4655
+ "button",
4656
+ {
4657
+ class: "fnc-menu-item fnc-part-reset",
4658
+ role: "menuitem",
4659
+ onClick: () => {
4660
+ const { colors: _drop, ...rest } = style;
4661
+ ctx.chart.updateDrawing(d3.id, { style: rest });
4662
+ setMenu(null);
4663
+ },
4664
+ children: t3.resetColors
4665
+ }
4666
+ )
4667
+ ] });
4668
+ const optionsBody = () => /* @__PURE__ */ a3($, { children: [
4669
+ (def?.options ?? []).map((o4) => {
4670
+ const value = drawingOption(def, d3, o4.key);
4671
+ const set = (v3) => setStyle({ options: { ...style.options, [o4.key]: v3 } });
4672
+ if (o4.kind === "toggle")
4673
+ return /* @__PURE__ */ a3("label", { class: "fnc-menu-item fnc-option-row", children: [
4674
+ /* @__PURE__ */ a3("input", { type: "checkbox", checked: value === true, onChange: (e3) => set(e3.target.checked) }),
4675
+ /* @__PURE__ */ a3("span", { children: o4.label[s3.locale] })
4676
+ ] });
4677
+ if (o4.kind === "choice")
4678
+ return /* @__PURE__ */ a3("label", { class: "fnc-option-row fnc-option-field", children: [
4679
+ /* @__PURE__ */ a3("span", { children: o4.label[s3.locale] }),
4680
+ /* @__PURE__ */ a3("select", { class: "fnc-select", value: String(value), onChange: (e3) => set(e3.target.value), children: o4.choices?.map((c3) => /* @__PURE__ */ a3("option", { value: c3.value, children: c3.label[s3.locale] })) })
4681
+ ] });
4682
+ return /* @__PURE__ */ a3("label", { class: "fnc-option-row fnc-option-field", children: [
4683
+ /* @__PURE__ */ a3("span", { children: o4.label[s3.locale] }),
4684
+ /* @__PURE__ */ a3(
4685
+ "input",
4686
+ {
4687
+ class: "fnc-input fnc-option-number",
4688
+ type: "number",
4689
+ step: o4.step ?? "any",
4690
+ min: o4.min,
4691
+ max: o4.max,
4692
+ defaultValue: String(value),
4693
+ onChange: (e3) => {
4694
+ const v3 = Number(e3.target.value);
4695
+ if (Number.isFinite(v3)) set(v3);
4696
+ }
4697
+ }
4698
+ ),
4699
+ o4.unit && /* @__PURE__ */ a3("span", { class: "fnc-option-unit", children: o4.unit })
4700
+ ] }, `${o4.key}:${String(value)}`);
4701
+ }),
4702
+ /* @__PURE__ */ a3("div", { class: "fnc-menu-sep" }),
4703
+ /* @__PURE__ */ a3(
4704
+ "button",
4705
+ {
4706
+ class: "fnc-menu-item",
4707
+ role: "menuitem",
4708
+ onClick: () => {
4709
+ const { options: _drop, ...rest } = style;
4710
+ setStyleRaw(rest);
4711
+ },
4712
+ children: t3.resetOptions
4713
+ }
4714
+ )
4715
+ ] });
4716
+ const levelsBody = () => /* @__PURE__ */ a3($, { children: [
4717
+ /* @__PURE__ */ a3("div", { class: "fnc-levels-list fnc-scroll", children: levelRows.map((l3, i3) => /* @__PURE__ */ a3("div", { class: "fnc-level-row", children: [
4718
+ /* @__PURE__ */ a3(
4719
+ "input",
4720
+ {
4721
+ type: "checkbox",
4722
+ checked: l3.on !== false,
4723
+ "aria-label": `${t3.levelShown} ${l3.value}`,
4724
+ onChange: (e3) => setLevels(levelRows.map((x2, j2) => j2 === i3 ? { ...x2, on: e3.target.checked } : x2))
4725
+ }
4726
+ ),
4727
+ /* @__PURE__ */ a3(
4728
+ "input",
4729
+ {
4730
+ class: "fnc-input fnc-level-value",
4731
+ type: "number",
4732
+ step: "any",
4733
+ defaultValue: String(l3.value),
4734
+ "aria-label": t3.levelValue,
4735
+ onChange: (e3) => {
4736
+ const v3 = Number(e3.target.value);
4737
+ if (Number.isFinite(v3) && Math.abs(v3) <= 1e3) setLevels(levelRows.map((x2, j2) => j2 === i3 ? { ...x2, value: v3 } : x2));
4738
+ }
4739
+ }
4740
+ ),
4741
+ /* @__PURE__ */ a3(
4742
+ ColorPicker,
4743
+ {
4744
+ class: "fnc-swatch fnc-level-color",
4745
+ style: { background: l3.color ?? "#3182F6" },
4746
+ tip: t3.levelColor,
4747
+ value: l3.color ?? "",
4748
+ label: `${t3.levelColor} ${l3.value}`,
4749
+ t: t3,
4750
+ onPick: (color) => setLevels(levelRows.map((x2, j2) => j2 === i3 ? { ...x2, color } : x2))
4751
+ }
4752
+ ),
4753
+ /* @__PURE__ */ a3(
4754
+ "input",
4755
+ {
4756
+ class: "fnc-input fnc-level-text",
4757
+ type: "text",
4758
+ maxLength: 40,
4759
+ defaultValue: l3.text ?? "",
4760
+ placeholder: t3.levelText,
4761
+ "aria-label": `${l3.value} ${t3.levelText}`,
4762
+ onChange: (e3) => setLevels(levelRows.map((x2, j2) => j2 === i3 ? { ...x2, text: e3.target.value.trim() } : x2))
4763
+ }
4764
+ ),
4765
+ /* @__PURE__ */ a3("button", { class: "fnc-ind-btn", "data-tip": t3.removeLevel, "aria-label": `${l3.value} ${t3.removeLevel}`, onClick: () => setLevels(levelRows.filter((_3, j2) => j2 !== i3)), children: /* @__PURE__ */ a3(SmallCloseIcon, {}) })
4766
+ ] }, `${i3}:${l3.value}`)) }),
4767
+ /* @__PURE__ */ a3("div", { class: "fnc-menu-sep" }),
4768
+ /* @__PURE__ */ a3(
4769
+ "button",
4770
+ {
4771
+ class: "fnc-menu-item",
4772
+ role: "menuitem",
4773
+ onClick: () => {
4774
+ const values = levelRows.map((x2) => x2.value);
4775
+ const top = values.length ? Math.max(...values) : 0;
4776
+ const gap = values.length > 1 ? Math.abs(values[values.length - 1] - values[values.length - 2]) || 1 : 1;
4777
+ setLevels([...levelRows, { value: Number((top + gap).toFixed(4)), on: true, color: current }]);
4778
+ },
4779
+ children: [
4780
+ "+ ",
4781
+ t3.addLevel
4782
+ ]
4783
+ }
4784
+ ),
4785
+ /* @__PURE__ */ a3("button", { class: "fnc-menu-item", role: "menuitem", onClick: resetLevels, children: t3.resetLevels })
4786
+ ] });
4787
+ const templateBody = () => /* @__PURE__ */ a3($, { children: [
4788
+ mine.length === 0 && /* @__PURE__ */ a3("div", { class: "fnc-menu-note", children: t3.noTemplates }),
4789
+ mine.map((tpl) => /* @__PURE__ */ a3("div", { class: "fnc-template-row", children: [
4790
+ /* @__PURE__ */ a3("button", { class: "fnc-menu-item", role: "menuitem", onClick: () => applyTemplate(tpl), children: [
4791
+ /* @__PURE__ */ a3("span", { class: "fnc-swatch", style: { background: tpl.color ?? current } }),
4792
+ /* @__PURE__ */ a3("svg", { width: "28", height: "12", viewBox: "0 0 28 12", "aria-hidden": "true", children: /* @__PURE__ */ a3(
4793
+ "path",
4794
+ {
4795
+ d: "M2 6h24",
4796
+ stroke: tpl.color ?? current,
4797
+ "stroke-width": tpl.style.width ?? 2,
4798
+ "stroke-linecap": "round",
4799
+ "stroke-dasharray": tpl.style.dash === "dashed" ? "4 3" : tpl.style.dash === "dotted" ? "1 3" : void 0
4800
+ }
4801
+ ) }),
4802
+ /* @__PURE__ */ a3("span", { children: tpl.name })
4803
+ ] }),
4804
+ /* @__PURE__ */ a3(
4805
+ "button",
4806
+ {
4807
+ class: "fnc-ind-btn",
4808
+ "data-tip": t3.deleteTemplate,
4809
+ "aria-label": `${tpl.name} ${t3.deleteTemplate}`,
4810
+ onClick: () => keepTemplates(mine.filter((x2) => x2 !== tpl)),
4811
+ children: /* @__PURE__ */ a3(SmallCloseIcon, {})
4812
+ }
4813
+ )
4814
+ ] })),
4815
+ /* @__PURE__ */ a3("div", { class: "fnc-menu-sep" }),
4816
+ naming === null ? /* @__PURE__ */ a3($, { children: [
4817
+ /* @__PURE__ */ a3("button", { class: "fnc-menu-item", role: "menuitem", onClick: () => setNaming(""), children: t3.saveTemplate }),
4818
+ /* @__PURE__ */ a3("button", { class: "fnc-menu-item", role: "menuitem", onClick: resetLook, children: t3.resetDrawingLook })
4819
+ ] }) : /* @__PURE__ */ a3(
4820
+ "input",
4821
+ {
4822
+ class: "fnc-selbar-text fnc-template-name",
4823
+ value: naming,
4824
+ placeholder: t3.templateName,
4825
+ "aria-label": t3.templateName,
4826
+ maxLength: 30,
4827
+ autoFocus: true,
4828
+ onInput: (e3) => setNaming(e3.target.value),
4829
+ onKeyDown: (e3) => {
4830
+ e3.stopPropagation();
4831
+ if (e3.key === "Enter") saveTemplate();
4832
+ if (e3.key === "Escape") setNaming(null);
4833
+ }
4834
+ }
4835
+ )
4836
+ ] });
4837
+ const orderBody = () => /* @__PURE__ */ a3($, { children: [
4838
+ ["front", t3.bringToFront],
4839
+ ["forward", t3.bringForward],
4840
+ ["backward", t3.sendBackward],
4841
+ ["back", t3.sendToBack]
4842
+ ].map(([where, label]) => /* @__PURE__ */ a3("button", { class: "fnc-menu-item", role: "menuitem", disabled: !ctx.chart.canMoveDrawing(d3.id, where), onClick: () => ctx.chart.moveDrawing(d3.id, where), children: label })) });
4843
+ const noteBody = () => /* @__PURE__ */ a3($, { children: [
4844
+ /* @__PURE__ */ a3(
4845
+ "textarea",
4846
+ {
4847
+ defaultValue: style.text ?? "",
4848
+ placeholder: t3.noteText,
4849
+ "aria-label": t3.noteText,
4850
+ onInput: (e3) => {
4851
+ const text = e3.target.value;
4852
+ const { text: _drop, ...rest } = style;
4853
+ setStyleRaw(text.trim() ? { ...rest, text } : rest);
4854
+ }
4855
+ },
4856
+ d3.id
4857
+ ),
4858
+ /* @__PURE__ */ a3("div", { class: "fnc-note-row", children: [
4859
+ /* @__PURE__ */ a3(
4860
+ ColorPicker,
4861
+ {
4862
+ class: "fnc-color fnc-color-btn",
4863
+ style: { background: style.textColor ?? d3.color ?? "#3182F6" },
4864
+ value: style.textColor ?? d3.color ?? "",
4865
+ label: t3.textColor,
4866
+ t: t3,
4867
+ onPick: (textColor) => setStyle({ textColor })
4868
+ }
4869
+ ),
4870
+ /* @__PURE__ */ a3("select", { class: "fnc-select", "aria-label": t3.fontSize, value: String(style.fontSize ?? 14), onChange: (e3) => setStyle({ fontSize: Number(e3.target.value) }), children: [10, 11, 12, 14, 16, 20, 24, 28, 32, 40].map((n2) => /* @__PURE__ */ a3("option", { value: String(n2), children: [
4871
+ n2,
4872
+ "px"
4873
+ ] })) }),
4874
+ /* @__PURE__ */ a3("button", { type: "button", class: "fnc-note-toggle", "aria-pressed": !!style.bold, "aria-label": t3.bold, onClick: () => setStyle({ bold: !style.bold }), children: /* @__PURE__ */ a3("b", { children: "B" }) }),
4875
+ /* @__PURE__ */ a3("button", { type: "button", class: "fnc-note-toggle", "aria-pressed": !!style.italic, "aria-label": t3.italic, onClick: () => setStyle({ italic: !style.italic }), children: /* @__PURE__ */ a3("i", { children: "I" }) })
4876
+ ] }),
4877
+ /* @__PURE__ */ a3("div", { class: "fnc-note-row", children: [
4878
+ /* @__PURE__ */ a3("span", { children: t3.noteH }),
4879
+ /* @__PURE__ */ a3("select", { class: "fnc-select", "aria-label": t3.noteH, value: style.textH ?? "center", onChange: (e3) => setStyle({ textH: e3.target.value }), children: [
4880
+ /* @__PURE__ */ a3("option", { value: "left", children: t3.alignLeft }),
4881
+ /* @__PURE__ */ a3("option", { value: "center", children: t3.alignCenter }),
4882
+ /* @__PURE__ */ a3("option", { value: "right", children: t3.alignRight })
4883
+ ] }),
4884
+ /* @__PURE__ */ a3("span", { children: t3.noteV }),
4885
+ /* @__PURE__ */ a3(
4886
+ "select",
4887
+ {
4888
+ class: "fnc-select",
4889
+ "aria-label": t3.noteV,
4890
+ value: style.textV ?? (def?.note === "line" ? "top" : "middle"),
4891
+ onChange: (e3) => setStyle({ textV: e3.target.value }),
4892
+ children: [
4893
+ /* @__PURE__ */ a3("option", { value: "top", children: t3.alignTop }),
4894
+ /* @__PURE__ */ a3("option", { value: "middle", children: t3.alignMiddle }),
4895
+ /* @__PURE__ */ a3("option", { value: "bottom", children: t3.alignBottom })
4896
+ ]
4897
+ }
4898
+ )
4899
+ ] })
4900
+ ] });
4901
+ const coordsBody = () => /* @__PURE__ */ a3($, { children: /* @__PURE__ */ a3(DrawingCoords, { ctx, drawing: d3, t: t3 }) });
4902
+ const visibilityBody = () => /* @__PURE__ */ a3($, { children: [
4903
+ /* @__PURE__ */ a3("p", { class: "fnc-hint", children: t3.visibilityHint }),
4904
+ /* @__PURE__ */ a3(
4905
+ IntervalVisibilityEditor,
4906
+ {
4907
+ t: t3,
4908
+ value: style.intervals,
4909
+ onChange: (v3) => {
4910
+ const intervals = cleanIntervals(v3);
4911
+ const { intervals: _drop, ...rest } = style;
4912
+ setStyleRaw(intervals ? { ...rest, intervals } : rest);
4913
+ }
4914
+ }
4915
+ )
4916
+ ] });
4917
+ return /* @__PURE__ */ a3("div", { ref: bar, class: "fnc-selbar", role: "toolbar", style: { left: `${s3.layout.plotWidth / 2 + offset[0]}px`, top: `${8 + offset[1]}px` }, children: [
4603
4918
  /* @__PURE__ */ a3(
4604
4919
  "button",
4605
4920
  {
@@ -4614,302 +4929,150 @@ function SelectionBar({ ctx }) {
4614
4929
  children: /* @__PURE__ */ a3(GripIcon, {})
4615
4930
  }
4616
4931
  ),
4617
- !def?.levels && !def?.plain && [...SWATCHES, ...recent.filter((c3) => !SWATCHES.includes(c3))].map((color) => /* @__PURE__ */ a3("button", { class: "fnc-swatch", style: { background: color }, "data-tip": t3.color, "aria-label": `${t3.color} ${color}`, "aria-pressed": current === color, onClick: () => pickColor(color) })),
4618
- !def?.levels && !def?.plain && /* @__PURE__ */ a3(
4619
- ColorPicker,
4620
- {
4621
- class: "fnc-swatch fnc-swatch-add",
4622
- value: current,
4623
- label: t3.palette,
4624
- tip: t3.palette,
4625
- t: t3,
4626
- onPick: (color) => {
4627
- pickColor(color);
4628
- setRecent(recentColors().slice(0, 3));
4629
- },
4630
- children: /* @__PURE__ */ a3("svg", { width: "10", height: "10", viewBox: "0 0 10 10", "aria-hidden": "true", children: /* @__PURE__ */ a3("path", { d: "M5 1.5v7M1.5 5h7", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round" }) })
4631
- }
4632
- ),
4633
- slots.length > 0 && /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
4634
- /* @__PURE__ */ a3("button", { class: "fnc-btn", "data-tip": t3.partColors, "aria-label": t3.partColors, "aria-expanded": menu === "colors", onClick: () => setMenu(menu === "colors" ? null : "colors"), children: /* @__PURE__ */ a3(PaletteIcon, {}) }),
4635
- menu === "colors" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-part-menu", role: "menu", children: [
4636
- slots.map((slot) => {
4637
- const c3 = slotColor(slot.key, slot.color);
4638
- return /* @__PURE__ */ a3("div", { class: "fnc-menu-item fnc-part", children: [
4639
- /* @__PURE__ */ a3(ColorPicker, { class: "fnc-swatch", style: { background: c3 }, value: c3, label: `${slot.name[s3.locale]} ${t3.color}`, t: t3, onPick: (color) => setStyle({ colors: { ...style.colors, [slot.key]: color } }) }),
4640
- /* @__PURE__ */ a3("span", { children: slot.name[s3.locale] })
4641
- ] });
4642
- }),
4932
+ phone && !def?.levels && !def?.plain && /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
4933
+ /* @__PURE__ */ a3("button", { class: "fnc-btn fnc-selbar-brush", "aria-label": t3.color, "aria-expanded": menu === "brush", onClick: () => setMenu(menu === "brush" ? null : "brush"), children: /* @__PURE__ */ a3(BrushIcon, { color: current }) }),
4934
+ menu === "brush" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-brush-pop", role: "menu", children: [
4935
+ [...SWATCHES, ...recent.filter((c3) => !SWATCHES.includes(c3))].map((color) => /* @__PURE__ */ a3("button", { class: "fnc-swatch", style: { background: color }, "aria-label": `${t3.color} ${color}`, "aria-pressed": current === color, onClick: () => pickColor(color) })),
4643
4936
  /* @__PURE__ */ a3(
4644
- "button",
4645
- {
4646
- class: "fnc-menu-item fnc-part-reset",
4647
- role: "menuitem",
4648
- onClick: () => {
4649
- const { colors: _drop, ...rest } = style;
4650
- ctx.chart.updateDrawing(d3.id, { style: rest });
4651
- setMenu(null);
4652
- },
4653
- children: t3.resetColors
4654
- }
4655
- )
4656
- ] })
4657
- ] }),
4658
- def?.options && def.options.length > 0 && /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
4659
- /* @__PURE__ */ a3("button", { class: "fnc-btn", "data-tip": t3.drawingOptions, "aria-label": t3.drawingOptions, "aria-expanded": menu === "options", onClick: () => setMenu(menu === "options" ? null : "options"), children: /* @__PURE__ */ a3(SettingsIcon, {}) }),
4660
- menu === "options" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-options-menu", role: "menu", onKeyDown: (e3) => e3.key !== "Escape" && e3.stopPropagation(), children: [
4661
- def.options.map((o4) => {
4662
- const value = drawingOption(def, d3, o4.key);
4663
- const set = (v3) => setStyle({ options: { ...style.options, [o4.key]: v3 } });
4664
- if (o4.kind === "toggle")
4665
- return /* @__PURE__ */ a3("label", { class: "fnc-menu-item fnc-option-row", children: [
4666
- /* @__PURE__ */ a3("input", { type: "checkbox", checked: value === true, onChange: (e3) => set(e3.target.checked) }),
4667
- /* @__PURE__ */ a3("span", { children: o4.label[s3.locale] })
4668
- ] });
4669
- if (o4.kind === "choice")
4670
- return /* @__PURE__ */ a3("label", { class: "fnc-option-row fnc-option-field", children: [
4671
- /* @__PURE__ */ a3("span", { children: o4.label[s3.locale] }),
4672
- /* @__PURE__ */ a3("select", { class: "fnc-select", value: String(value), onChange: (e3) => set(e3.target.value), children: o4.choices?.map((c3) => /* @__PURE__ */ a3("option", { value: c3.value, children: c3.label[s3.locale] })) })
4673
- ] });
4674
- return /* @__PURE__ */ a3("label", { class: "fnc-option-row fnc-option-field", children: [
4675
- /* @__PURE__ */ a3("span", { children: o4.label[s3.locale] }),
4676
- /* @__PURE__ */ a3(
4677
- "input",
4678
- {
4679
- class: "fnc-input fnc-option-number",
4680
- type: "number",
4681
- step: o4.step ?? "any",
4682
- min: o4.min,
4683
- max: o4.max,
4684
- defaultValue: String(value),
4685
- onChange: (e3) => {
4686
- const v3 = Number(e3.target.value);
4687
- if (Number.isFinite(v3)) set(v3);
4688
- }
4689
- }
4690
- ),
4691
- o4.unit && /* @__PURE__ */ a3("span", { class: "fnc-option-unit", children: o4.unit })
4692
- ] }, `${o4.key}:${String(value)}`);
4693
- }),
4694
- /* @__PURE__ */ a3("div", { class: "fnc-menu-sep" }),
4695
- /* @__PURE__ */ a3(
4696
- "button",
4937
+ ColorPicker,
4697
4938
  {
4698
- class: "fnc-menu-item",
4699
- role: "menuitem",
4700
- onClick: () => {
4701
- const { options: _drop, ...rest } = style;
4702
- setStyleRaw(rest);
4939
+ class: "fnc-swatch fnc-swatch-add",
4940
+ value: current,
4941
+ label: t3.palette,
4942
+ t: t3,
4943
+ onPick: (color) => {
4944
+ pickColor(color);
4945
+ setRecent(recentColors().slice(0, 3));
4703
4946
  },
4704
- children: t3.resetOptions
4947
+ children: /* @__PURE__ */ a3("svg", { width: "10", height: "10", viewBox: "0 0 10 10", "aria-hidden": "true", children: /* @__PURE__ */ a3("path", { d: "M5 1.5v7M1.5 5h7", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round" }) })
4705
4948
  }
4706
4949
  )
4707
4950
  ] })
4708
4951
  ] }),
4709
- def?.levels && /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
4710
- /* @__PURE__ */ a3("button", { class: "fnc-btn", "data-tip": t3.levels, "aria-label": t3.levels, "aria-expanded": menu === "levels", onClick: () => setMenu(menu === "levels" ? null : "levels"), children: /* @__PURE__ */ a3(LevelsIcon, {}) }),
4711
- menu === "levels" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-levels-menu", role: "menu", onKeyDown: (e3) => e3.key !== "Escape" && e3.stopPropagation(), children: [
4712
- /* @__PURE__ */ a3("div", { class: "fnc-levels-list fnc-scroll", children: levelRows.map((l3, i3) => /* @__PURE__ */ a3("div", { class: "fnc-level-row", children: [
4713
- /* @__PURE__ */ a3(
4714
- "input",
4715
- {
4716
- type: "checkbox",
4717
- checked: l3.on !== false,
4718
- "aria-label": `${t3.levelShown} ${l3.value}`,
4719
- onChange: (e3) => setLevels(levelRows.map((x2, j2) => j2 === i3 ? { ...x2, on: e3.target.checked } : x2))
4720
- }
4721
- ),
4722
- /* @__PURE__ */ a3(
4723
- "input",
4724
- {
4725
- class: "fnc-input fnc-level-value",
4726
- type: "number",
4727
- step: "any",
4728
- defaultValue: String(l3.value),
4729
- "aria-label": t3.levelValue,
4730
- onChange: (e3) => {
4731
- const v3 = Number(e3.target.value);
4732
- if (Number.isFinite(v3) && Math.abs(v3) <= 1e3) setLevels(levelRows.map((x2, j2) => j2 === i3 ? { ...x2, value: v3 } : x2));
4733
- }
4734
- }
4735
- ),
4736
- /* @__PURE__ */ a3(
4737
- ColorPicker,
4738
- {
4739
- class: "fnc-swatch fnc-level-color",
4740
- style: { background: l3.color ?? "#3182F6" },
4741
- tip: t3.levelColor,
4742
- value: l3.color ?? "",
4743
- label: `${t3.levelColor} ${l3.value}`,
4744
- t: t3,
4745
- onPick: (color) => setLevels(levelRows.map((x2, j2) => j2 === i3 ? { ...x2, color } : x2))
4746
- }
4747
- ),
4748
- /* @__PURE__ */ a3(
4749
- "input",
4952
+ phone && /* @__PURE__ */ a3(
4953
+ "button",
4954
+ {
4955
+ class: "fnc-btn",
4956
+ "aria-label": t3.style,
4957
+ "aria-expanded": sheet,
4958
+ onClick: () => {
4959
+ setMenu(null);
4960
+ setSheet(true);
4961
+ },
4962
+ children: /* @__PURE__ */ a3(SettingsIcon, {})
4963
+ }
4964
+ ),
4965
+ !phone && /* @__PURE__ */ a3($, { children: [
4966
+ !def?.levels && !def?.plain && [...SWATCHES, ...recent.filter((c3) => !SWATCHES.includes(c3))].map((color) => /* @__PURE__ */ a3("button", { class: "fnc-swatch", style: { background: color }, "data-tip": t3.color, "aria-label": `${t3.color} ${color}`, "aria-pressed": current === color, onClick: () => pickColor(color) })),
4967
+ !def?.levels && !def?.plain && /* @__PURE__ */ a3(
4968
+ ColorPicker,
4969
+ {
4970
+ class: "fnc-swatch fnc-swatch-add",
4971
+ value: current,
4972
+ label: t3.palette,
4973
+ tip: t3.palette,
4974
+ t: t3,
4975
+ onPick: (color) => {
4976
+ pickColor(color);
4977
+ setRecent(recentColors().slice(0, 3));
4978
+ },
4979
+ children: /* @__PURE__ */ a3("svg", { width: "10", height: "10", viewBox: "0 0 10 10", "aria-hidden": "true", children: /* @__PURE__ */ a3("path", { d: "M5 1.5v7M1.5 5h7", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round" }) })
4980
+ }
4981
+ ),
4982
+ slots.length > 0 && /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
4983
+ /* @__PURE__ */ a3("button", { class: "fnc-btn", "data-tip": t3.partColors, "aria-label": t3.partColors, "aria-expanded": menu === "colors", onClick: () => setMenu(menu === "colors" ? null : "colors"), children: /* @__PURE__ */ a3(PaletteIcon, {}) }),
4984
+ menu === "colors" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-part-menu", role: "menu", children: colorsBody() })
4985
+ ] }),
4986
+ def?.options && def.options.length > 0 && /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
4987
+ /* @__PURE__ */ a3("button", { class: "fnc-btn", "data-tip": t3.drawingOptions, "aria-label": t3.drawingOptions, "aria-expanded": menu === "options", onClick: () => setMenu(menu === "options" ? null : "options"), children: /* @__PURE__ */ a3(SettingsIcon, {}) }),
4988
+ menu === "options" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-options-menu", role: "menu", onKeyDown: (e3) => e3.key !== "Escape" && e3.stopPropagation(), children: optionsBody() })
4989
+ ] }),
4990
+ def?.levels && /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
4991
+ /* @__PURE__ */ a3("button", { class: "fnc-btn", "data-tip": t3.levels, "aria-label": t3.levels, "aria-expanded": menu === "levels", onClick: () => setMenu(menu === "levels" ? null : "levels"), children: /* @__PURE__ */ a3(LevelsIcon, {}) }),
4992
+ menu === "levels" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-levels-menu", role: "menu", onKeyDown: (e3) => e3.key !== "Escape" && e3.stopPropagation(), children: levelsBody() })
4993
+ ] }),
4994
+ !def?.plain && /* @__PURE__ */ a3($, { children: [
4995
+ /* @__PURE__ */ a3("div", { class: "fnc-sep" }),
4996
+ /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
4997
+ /* @__PURE__ */ a3("button", { class: "fnc-btn fnc-selbar-width", "data-tip": t3.lineWidth, "aria-label": t3.lineWidth, "aria-expanded": menu === "width", onClick: () => setMenu(menu === "width" ? null : "width"), children: /* @__PURE__ */ a3("svg", { width: "20", height: "20", viewBox: "0 0 20 20", "aria-hidden": "true", children: /* @__PURE__ */ a3("path", { d: "M3 10h14", stroke: "currentColor", "stroke-width": style.width ?? 2, "stroke-linecap": "round" }) }) }),
4998
+ menu === "width" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop", role: "menu", children: WIDTHS.map((w3) => /* @__PURE__ */ a3(
4999
+ "button",
4750
5000
  {
4751
- class: "fnc-input fnc-level-text",
4752
- type: "text",
4753
- maxLength: 40,
4754
- defaultValue: l3.text ?? "",
4755
- placeholder: t3.levelText,
4756
- "aria-label": `${l3.value} ${t3.levelText}`,
4757
- onChange: (e3) => setLevels(levelRows.map((x2, j2) => j2 === i3 ? { ...x2, text: e3.target.value.trim() } : x2))
5001
+ class: "fnc-menu-item",
5002
+ role: "menuitemradio",
5003
+ "aria-checked": (style.width ?? 2) === w3,
5004
+ onClick: () => {
5005
+ setStyle({ width: w3 });
5006
+ setMenu(null);
5007
+ },
5008
+ children: [
5009
+ /* @__PURE__ */ a3("svg", { width: "40", height: "12", viewBox: "0 0 40 12", "aria-hidden": "true", children: /* @__PURE__ */ a3("path", { d: "M2 6h36", stroke: "currentColor", "stroke-width": w3, "stroke-linecap": "round" }) }),
5010
+ /* @__PURE__ */ a3("span", { children: [
5011
+ w3,
5012
+ "px"
5013
+ ] })
5014
+ ]
4758
5015
  }
4759
- ),
4760
- /* @__PURE__ */ a3("button", { class: "fnc-ind-btn", "data-tip": t3.removeLevel, "aria-label": `${l3.value} ${t3.removeLevel}`, onClick: () => setLevels(levelRows.filter((_3, j2) => j2 !== i3)), children: /* @__PURE__ */ a3(SmallCloseIcon, {}) })
4761
- ] }, `${i3}:${l3.value}`)) }),
4762
- /* @__PURE__ */ a3("div", { class: "fnc-menu-sep" }),
5016
+ )) })
5017
+ ] }),
4763
5018
  /* @__PURE__ */ a3(
4764
5019
  "button",
4765
5020
  {
4766
- class: "fnc-menu-item",
4767
- role: "menuitem",
4768
- onClick: () => {
4769
- const values = levelRows.map((x2) => x2.value);
4770
- const top = values.length ? Math.max(...values) : 0;
4771
- const gap = values.length > 1 ? Math.abs(values[values.length - 1] - values[values.length - 2]) || 1 : 1;
4772
- setLevels([...levelRows, { value: Number((top + gap).toFixed(4)), on: true, color: current }]);
4773
- },
4774
- children: [
4775
- "+ ",
4776
- t3.addLevel
4777
- ]
5021
+ class: "fnc-btn",
5022
+ "data-tip": `${t3.lineStyle}: ${dash === "solid" ? t3.lineSolid : dash === "dashed" ? t3.lineDashed : t3.lineDotted}`,
5023
+ "aria-label": t3.lineStyle,
5024
+ onClick: () => setStyle({ dash: DASH_ORDER[(DASH_ORDER.indexOf(dash) + 1) % DASH_ORDER.length] }),
5025
+ children: /* @__PURE__ */ a3(DashGlyph, { dash })
4778
5026
  }
4779
- ),
4780
- /* @__PURE__ */ a3("button", { class: "fnc-menu-item", role: "menuitem", onClick: resetLevels, children: t3.resetLevels })
4781
- ] })
4782
- ] }),
4783
- !def?.plain && /* @__PURE__ */ a3($, { children: [
4784
- /* @__PURE__ */ a3("div", { class: "fnc-sep" }),
4785
- /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
4786
- /* @__PURE__ */ a3("button", { class: "fnc-btn fnc-selbar-width", "data-tip": t3.lineWidth, "aria-label": t3.lineWidth, "aria-expanded": menu === "width", onClick: () => setMenu(menu === "width" ? null : "width"), children: /* @__PURE__ */ a3("svg", { width: "20", height: "20", viewBox: "0 0 20 20", "aria-hidden": "true", children: /* @__PURE__ */ a3("path", { d: "M3 10h14", stroke: "currentColor", "stroke-width": style.width ?? 2, "stroke-linecap": "round" }) }) }),
4787
- menu === "width" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop", role: "menu", children: WIDTHS.map((w3) => /* @__PURE__ */ a3(
5027
+ )
5028
+ ] }),
5029
+ def?.text && /* @__PURE__ */ a3(
5030
+ "input",
5031
+ {
5032
+ class: "fnc-selbar-text",
5033
+ value: style.text ?? "",
5034
+ placeholder: t3.textPlaceholder,
5035
+ "aria-label": t3.drawingText,
5036
+ maxLength: 200,
5037
+ onInput: (e3) => setStyle({ text: e3.target.value }),
5038
+ onKeyDown: (e3) => e3.stopPropagation()
5039
+ }
5040
+ ),
5041
+ def?.text && /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
5042
+ /* @__PURE__ */ a3("button", { class: "fnc-btn fnc-selbar-font", "data-tip": t3.fontSize, "aria-label": t3.fontSize, "aria-expanded": menu === "font", onClick: () => setMenu(menu === "font" ? null : "font"), children: style.fontSize ?? 14 }),
5043
+ menu === "font" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop", role: "menu", children: FONT_SIZES.map((size) => /* @__PURE__ */ a3(
4788
5044
  "button",
4789
5045
  {
4790
5046
  class: "fnc-menu-item",
4791
5047
  role: "menuitemradio",
4792
- "aria-checked": (style.width ?? 2) === w3,
5048
+ "aria-checked": (style.fontSize ?? 14) === size,
4793
5049
  onClick: () => {
4794
- setStyle({ width: w3 });
5050
+ setStyle({ fontSize: size });
4795
5051
  setMenu(null);
4796
5052
  },
4797
- children: [
4798
- /* @__PURE__ */ a3("svg", { width: "40", height: "12", viewBox: "0 0 40 12", "aria-hidden": "true", children: /* @__PURE__ */ a3("path", { d: "M2 6h36", stroke: "currentColor", "stroke-width": w3, "stroke-linecap": "round" }) }),
4799
- /* @__PURE__ */ a3("span", { children: [
4800
- w3,
4801
- "px"
4802
- ] })
4803
- ]
5053
+ children: /* @__PURE__ */ a3("span", { children: [
5054
+ size,
5055
+ "px"
5056
+ ] })
4804
5057
  }
4805
5058
  )) })
4806
5059
  ] }),
4807
- /* @__PURE__ */ a3(
4808
- "button",
4809
- {
4810
- class: "fnc-btn",
4811
- "data-tip": `${t3.lineStyle}: ${dash === "solid" ? t3.lineSolid : dash === "dashed" ? t3.lineDashed : t3.lineDotted}`,
4812
- "aria-label": t3.lineStyle,
4813
- onClick: () => setStyle({ dash: DASH_ORDER[(DASH_ORDER.indexOf(dash) + 1) % DASH_ORDER.length] }),
4814
- children: /* @__PURE__ */ a3(DashGlyph, { dash })
4815
- }
4816
- )
4817
- ] }),
4818
- def?.text && /* @__PURE__ */ a3(
4819
- "input",
4820
- {
4821
- class: "fnc-selbar-text",
4822
- value: style.text ?? "",
4823
- placeholder: t3.textPlaceholder,
4824
- "aria-label": t3.drawingText,
4825
- maxLength: 200,
4826
- onInput: (e3) => setStyle({ text: e3.target.value }),
4827
- onKeyDown: (e3) => e3.stopPropagation()
4828
- }
4829
- ),
4830
- def?.text && /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
4831
- /* @__PURE__ */ a3("button", { class: "fnc-btn fnc-selbar-font", "data-tip": t3.fontSize, "aria-label": t3.fontSize, "aria-expanded": menu === "font", onClick: () => setMenu(menu === "font" ? null : "font"), children: style.fontSize ?? 14 }),
4832
- menu === "font" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop", role: "menu", children: FONT_SIZES.map((size) => /* @__PURE__ */ a3(
4833
- "button",
4834
- {
4835
- class: "fnc-menu-item",
4836
- role: "menuitemradio",
4837
- "aria-checked": (style.fontSize ?? 14) === size,
4838
- onClick: () => {
4839
- setStyle({ fontSize: size });
4840
- setMenu(null);
4841
- },
4842
- children: /* @__PURE__ */ a3("span", { children: [
4843
- size,
4844
- "px"
4845
- ] })
4846
- }
4847
- )) })
4848
- ] }),
4849
- /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
4850
- /* @__PURE__ */ a3(
4851
- "button",
4852
- {
4853
- class: "fnc-btn",
4854
- "data-tip": t3.templates,
4855
- "aria-label": t3.templates,
4856
- "aria-expanded": menu === "template",
4857
- onClick: () => {
4858
- setNaming(null);
4859
- setMenu(menu === "template" ? null : "template");
4860
- },
4861
- children: /* @__PURE__ */ a3(TemplateIcon, {})
4862
- }
4863
- ),
4864
- menu === "template" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-template-menu", role: "menu", children: [
4865
- mine.length === 0 && /* @__PURE__ */ a3("div", { class: "fnc-menu-note", children: t3.noTemplates }),
4866
- mine.map((tpl) => /* @__PURE__ */ a3("div", { class: "fnc-template-row", children: [
4867
- /* @__PURE__ */ a3("button", { class: "fnc-menu-item", role: "menuitem", onClick: () => applyTemplate(tpl), children: [
4868
- /* @__PURE__ */ a3("span", { class: "fnc-swatch", style: { background: tpl.color ?? current } }),
4869
- /* @__PURE__ */ a3("svg", { width: "28", height: "12", viewBox: "0 0 28 12", "aria-hidden": "true", children: /* @__PURE__ */ a3(
4870
- "path",
4871
- {
4872
- d: "M2 6h24",
4873
- stroke: tpl.color ?? current,
4874
- "stroke-width": tpl.style.width ?? 2,
4875
- "stroke-linecap": "round",
4876
- "stroke-dasharray": tpl.style.dash === "dashed" ? "4 3" : tpl.style.dash === "dotted" ? "1 3" : void 0
4877
- }
4878
- ) }),
4879
- /* @__PURE__ */ a3("span", { children: tpl.name })
4880
- ] }),
4881
- /* @__PURE__ */ a3(
4882
- "button",
4883
- {
4884
- class: "fnc-ind-btn",
4885
- "data-tip": t3.deleteTemplate,
4886
- "aria-label": `${tpl.name} ${t3.deleteTemplate}`,
4887
- onClick: () => keepTemplates(mine.filter((x2) => x2 !== tpl)),
4888
- children: /* @__PURE__ */ a3(SmallCloseIcon, {})
4889
- }
4890
- )
4891
- ] })),
4892
- /* @__PURE__ */ a3("div", { class: "fnc-menu-sep" }),
4893
- naming === null ? /* @__PURE__ */ a3($, { children: [
4894
- /* @__PURE__ */ a3("button", { class: "fnc-menu-item", role: "menuitem", onClick: () => setNaming(""), children: t3.saveTemplate }),
4895
- /* @__PURE__ */ a3("button", { class: "fnc-menu-item", role: "menuitem", onClick: resetLook, children: t3.resetDrawingLook })
4896
- ] }) : /* @__PURE__ */ a3(
4897
- "input",
5060
+ /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
5061
+ /* @__PURE__ */ a3(
5062
+ "button",
4898
5063
  {
4899
- class: "fnc-selbar-text fnc-template-name",
4900
- value: naming,
4901
- placeholder: t3.templateName,
4902
- "aria-label": t3.templateName,
4903
- maxLength: 30,
4904
- autoFocus: true,
4905
- onInput: (e3) => setNaming(e3.target.value),
4906
- onKeyDown: (e3) => {
4907
- e3.stopPropagation();
4908
- if (e3.key === "Enter") saveTemplate();
4909
- if (e3.key === "Escape") setNaming(null);
4910
- }
5064
+ class: "fnc-btn",
5065
+ "data-tip": t3.templates,
5066
+ "aria-label": t3.templates,
5067
+ "aria-expanded": menu === "template",
5068
+ onClick: () => {
5069
+ setNaming(null);
5070
+ setMenu(menu === "template" ? null : "template");
5071
+ },
5072
+ children: /* @__PURE__ */ a3(TemplateIcon, {})
4911
5073
  }
4912
- )
5074
+ ),
5075
+ menu === "template" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-template-menu", role: "menu", children: templateBody() })
4913
5076
  ] })
4914
5077
  ] }),
4915
5078
  actions.length > 0 && /* @__PURE__ */ a3("div", { class: "fnc-sep" }),
@@ -4928,116 +5091,42 @@ function SelectionBar({ ctx }) {
4928
5091
  }
4929
5092
  )),
4930
5093
  /* @__PURE__ */ a3("div", { class: "fnc-sep" }),
4931
- /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
4932
- /* @__PURE__ */ a3("button", { class: "fnc-btn", "data-tip": t3.drawingOrder, "aria-label": t3.drawingOrder, "aria-expanded": menu === "order", onClick: () => setMenu(menu === "order" ? null : "order"), children: /* @__PURE__ */ a3(LayersIcon, {}) }),
4933
- menu === "order" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop", role: "menu", children: [
4934
- ["front", t3.bringToFront],
4935
- ["forward", t3.bringForward],
4936
- ["backward", t3.sendBackward],
4937
- ["back", t3.sendToBack]
4938
- ].map(([where, label]) => /* @__PURE__ */ a3("button", { class: "fnc-menu-item", role: "menuitem", disabled: !ctx.chart.canMoveDrawing(d3.id, where), onClick: () => ctx.chart.moveDrawing(d3.id, where), children: label })) })
4939
- ] }),
4940
- def && !def.text && /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
4941
- /* @__PURE__ */ a3(
4942
- "button",
4943
- {
4944
- class: style.text ? "fnc-btn fnc-btn-on" : "fnc-btn",
4945
- "data-tip": t3.note,
4946
- "aria-label": t3.note,
4947
- "aria-expanded": menu === "note",
4948
- onClick: () => setMenu(menu === "note" ? null : "note"),
4949
- children: /* @__PURE__ */ a3(TextIcon, {})
4950
- }
4951
- ),
4952
- menu === "note" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-note-menu", role: "menu", onKeyDown: (e3) => e3.key !== "Escape" && e3.stopPropagation(), children: [
5094
+ !phone && /* @__PURE__ */ a3($, { children: [
5095
+ /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
5096
+ /* @__PURE__ */ a3("button", { class: "fnc-btn", "data-tip": t3.drawingOrder, "aria-label": t3.drawingOrder, "aria-expanded": menu === "order", onClick: () => setMenu(menu === "order" ? null : "order"), children: /* @__PURE__ */ a3(LayersIcon, {}) }),
5097
+ menu === "order" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop", role: "menu", children: orderBody() })
5098
+ ] }),
5099
+ def && !def.text && /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
4953
5100
  /* @__PURE__ */ a3(
4954
- "textarea",
5101
+ "button",
4955
5102
  {
4956
- defaultValue: style.text ?? "",
4957
- placeholder: t3.noteText,
4958
- "aria-label": t3.noteText,
4959
- onInput: (e3) => {
4960
- const text = e3.target.value;
4961
- const { text: _drop, ...rest } = style;
4962
- setStyleRaw(text.trim() ? { ...rest, text } : rest);
4963
- }
4964
- },
4965
- d3.id
5103
+ class: style.text ? "fnc-btn fnc-btn-on" : "fnc-btn",
5104
+ "data-tip": t3.note,
5105
+ "aria-label": t3.note,
5106
+ "aria-expanded": menu === "note",
5107
+ onClick: () => setMenu(menu === "note" ? null : "note"),
5108
+ children: /* @__PURE__ */ a3(TextIcon, {})
5109
+ }
4966
5110
  ),
4967
- /* @__PURE__ */ a3("div", { class: "fnc-note-row", children: [
4968
- /* @__PURE__ */ a3(
4969
- ColorPicker,
4970
- {
4971
- class: "fnc-color fnc-color-btn",
4972
- style: { background: style.textColor ?? d3.color ?? "#3182F6" },
4973
- value: style.textColor ?? d3.color ?? "",
4974
- label: t3.textColor,
4975
- t: t3,
4976
- onPick: (textColor) => setStyle({ textColor })
4977
- }
4978
- ),
4979
- /* @__PURE__ */ a3("select", { class: "fnc-select", "aria-label": t3.fontSize, value: String(style.fontSize ?? 14), onChange: (e3) => setStyle({ fontSize: Number(e3.target.value) }), children: [10, 11, 12, 14, 16, 20, 24, 28, 32, 40].map((n2) => /* @__PURE__ */ a3("option", { value: String(n2), children: [
4980
- n2,
4981
- "px"
4982
- ] })) }),
4983
- /* @__PURE__ */ a3("button", { type: "button", class: "fnc-note-toggle", "aria-pressed": !!style.bold, "aria-label": t3.bold, onClick: () => setStyle({ bold: !style.bold }), children: /* @__PURE__ */ a3("b", { children: "B" }) }),
4984
- /* @__PURE__ */ a3("button", { type: "button", class: "fnc-note-toggle", "aria-pressed": !!style.italic, "aria-label": t3.italic, onClick: () => setStyle({ italic: !style.italic }), children: /* @__PURE__ */ a3("i", { children: "I" }) })
4985
- ] }),
4986
- /* @__PURE__ */ a3("div", { class: "fnc-note-row", children: [
4987
- /* @__PURE__ */ a3("span", { children: t3.noteH }),
4988
- /* @__PURE__ */ a3("select", { class: "fnc-select", "aria-label": t3.noteH, value: style.textH ?? "center", onChange: (e3) => setStyle({ textH: e3.target.value }), children: [
4989
- /* @__PURE__ */ a3("option", { value: "left", children: t3.alignLeft }),
4990
- /* @__PURE__ */ a3("option", { value: "center", children: t3.alignCenter }),
4991
- /* @__PURE__ */ a3("option", { value: "right", children: t3.alignRight })
4992
- ] }),
4993
- /* @__PURE__ */ a3("span", { children: t3.noteV }),
4994
- /* @__PURE__ */ a3(
4995
- "select",
4996
- {
4997
- class: "fnc-select",
4998
- "aria-label": t3.noteV,
4999
- value: style.textV ?? (def.note === "line" ? "top" : "middle"),
5000
- onChange: (e3) => setStyle({ textV: e3.target.value }),
5001
- children: [
5002
- /* @__PURE__ */ a3("option", { value: "top", children: t3.alignTop }),
5003
- /* @__PURE__ */ a3("option", { value: "middle", children: t3.alignMiddle }),
5004
- /* @__PURE__ */ a3("option", { value: "bottom", children: t3.alignBottom })
5005
- ]
5006
- }
5007
- )
5008
- ] })
5009
- ] })
5010
- ] }),
5011
- /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
5012
- /* @__PURE__ */ a3("button", { class: "fnc-btn", "data-tip": t3.coordinates, "aria-label": t3.coordinates, "aria-expanded": menu === "coords", onClick: () => setMenu(menu === "coords" ? null : "coords"), children: /* @__PURE__ */ a3(CrossCursorIcon, {}) }),
5013
- menu === "coords" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-coords-menu", role: "menu", onKeyDown: (e3) => e3.key !== "Escape" && e3.stopPropagation(), children: /* @__PURE__ */ a3(DrawingCoords, { ctx, drawing: d3, t: t3 }) })
5014
- ] }),
5015
- /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
5016
- /* @__PURE__ */ a3(
5017
- "button",
5018
- {
5019
- class: style.intervals ? "fnc-btn fnc-btn-on" : "fnc-btn",
5020
- "data-tip": t3.tabVisibility,
5021
- "aria-label": t3.tabVisibility,
5022
- "aria-expanded": menu === "visibility",
5023
- onClick: () => setMenu(menu === "visibility" ? null : "visibility"),
5024
- children: /* @__PURE__ */ a3(ClockIcon, {})
5025
- }
5026
- ),
5027
- menu === "visibility" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-visibility-menu", role: "menu", onKeyDown: (e3) => e3.key !== "Escape" && e3.stopPropagation(), children: [
5028
- /* @__PURE__ */ a3("p", { class: "fnc-hint", children: t3.visibilityHint }),
5111
+ menu === "note" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-note-menu", role: "menu", onKeyDown: (e3) => e3.key !== "Escape" && e3.stopPropagation(), children: noteBody() })
5112
+ ] }),
5113
+ /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
5114
+ /* @__PURE__ */ a3("button", { class: "fnc-btn", "data-tip": t3.coordinates, "aria-label": t3.coordinates, "aria-expanded": menu === "coords", onClick: () => setMenu(menu === "coords" ? null : "coords"), children: /* @__PURE__ */ a3(CrossCursorIcon, {}) }),
5115
+ menu === "coords" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-coords-menu", role: "menu", onKeyDown: (e3) => e3.key !== "Escape" && e3.stopPropagation(), children: coordsBody() })
5116
+ ] }),
5117
+ /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
5029
5118
  /* @__PURE__ */ a3(
5030
- IntervalVisibilityEditor,
5119
+ "button",
5031
5120
  {
5032
- t: t3,
5033
- value: style.intervals,
5034
- onChange: (v3) => {
5035
- const intervals = cleanIntervals(v3);
5036
- const { intervals: _drop, ...rest } = style;
5037
- setStyleRaw(intervals ? { ...rest, intervals } : rest);
5038
- }
5121
+ class: style.intervals ? "fnc-btn fnc-btn-on" : "fnc-btn",
5122
+ "data-tip": t3.tabVisibility,
5123
+ "aria-label": t3.tabVisibility,
5124
+ "aria-expanded": menu === "visibility",
5125
+ onClick: () => setMenu(menu === "visibility" ? null : "visibility"),
5126
+ children: /* @__PURE__ */ a3(ClockIcon, {})
5039
5127
  }
5040
- )
5128
+ ),
5129
+ menu === "visibility" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-visibility-menu", role: "menu", onKeyDown: (e3) => e3.key !== "Escape" && e3.stopPropagation(), children: visibilityBody() })
5041
5130
  ] })
5042
5131
  ] }),
5043
5132
  /* @__PURE__ */ a3("button", { class: "fnc-btn", "data-tip": locked ? t3.unlock : t3.lock, "aria-label": locked ? t3.unlock : t3.lock, "aria-pressed": locked, onClick: () => setStyle({ locked: !locked }), children: /* @__PURE__ */ a3(LockIcon, { open: !locked }) }),
@@ -5054,7 +5143,164 @@ function SelectionBar({ ctx }) {
5054
5143
  children: /* @__PURE__ */ a3(CopyIcon, {})
5055
5144
  }
5056
5145
  ),
5057
- /* @__PURE__ */ a3("button", { class: "fnc-btn", "data-tip": t3.remove, "aria-label": t3.remove, onClick: () => ctx.chart.removeDrawing(d3.id), children: /* @__PURE__ */ a3(TrashIcon, {}) })
5146
+ /* @__PURE__ */ a3("button", { class: "fnc-btn", "data-tip": t3.remove, "aria-label": t3.remove, onClick: () => ctx.chart.removeDrawing(d3.id), children: /* @__PURE__ */ a3(TrashIcon, {}) }),
5147
+ phone && sheet && /* @__PURE__ */ a3(StyleSheet, { ctx, title: t3.style, resetLabel: t3.resetDefaults, onReset: resetLook, onClose: () => setSheet(false), children: [
5148
+ !def?.plain && /* @__PURE__ */ a3("section", { class: "fnc-ss-section", children: [
5149
+ !def?.levels && /* @__PURE__ */ a3("div", { class: "fnc-ss-row", children: [
5150
+ /* @__PURE__ */ a3("span", { children: t3.color }),
5151
+ /* @__PURE__ */ a3(
5152
+ ColorPicker,
5153
+ {
5154
+ class: "fnc-swatch fnc-ss-color",
5155
+ style: { background: current },
5156
+ value: current,
5157
+ label: t3.color,
5158
+ t: t3,
5159
+ onPick: (color) => {
5160
+ pickColor(color);
5161
+ setRecent(recentColors().slice(0, 3));
5162
+ }
5163
+ }
5164
+ )
5165
+ ] }),
5166
+ /* @__PURE__ */ a3("div", { class: "fnc-ss-row", children: [
5167
+ /* @__PURE__ */ a3("span", { children: t3.lineStyle }),
5168
+ /* @__PURE__ */ a3("div", { class: "fnc-ss-seg", role: "radiogroup", "aria-label": t3.lineStyle, children: DASH_ORDER.map((k2) => /* @__PURE__ */ a3("button", { role: "radio", "aria-checked": dash === k2, "aria-label": k2 === "solid" ? t3.lineSolid : k2 === "dashed" ? t3.lineDashed : t3.lineDotted, onClick: () => setStyle({ dash: k2 }), children: /* @__PURE__ */ a3(DashGlyph, { dash: k2 }) })) })
5169
+ ] }),
5170
+ /* @__PURE__ */ a3("div", { class: "fnc-ss-row", children: [
5171
+ /* @__PURE__ */ a3("span", { children: t3.lineWidth }),
5172
+ /* @__PURE__ */ a3("div", { class: "fnc-ss-step", children: [
5173
+ /* @__PURE__ */ a3("button", { "aria-label": `${t3.lineWidth} \u2212`, disabled: widthIndex === 0, onClick: () => setStyle({ width: WIDTHS[widthIndex - 1] }), children: "\u2212" }),
5174
+ /* @__PURE__ */ a3("b", { children: style.width ?? 2 }),
5175
+ /* @__PURE__ */ a3("button", { "aria-label": `${t3.lineWidth} +`, disabled: widthIndex >= WIDTHS.length - 1, onClick: () => setStyle({ width: WIDTHS[widthIndex + 1] }), children: "+" })
5176
+ ] })
5177
+ ] })
5178
+ ] }),
5179
+ def?.text && /* @__PURE__ */ a3("section", { class: "fnc-ss-section", children: [
5180
+ /* @__PURE__ */ a3("h3", { children: t3.drawingText }),
5181
+ /* @__PURE__ */ a3(
5182
+ "input",
5183
+ {
5184
+ class: "fnc-input fnc-ss-text",
5185
+ value: style.text ?? "",
5186
+ placeholder: t3.textPlaceholder,
5187
+ "aria-label": t3.drawingText,
5188
+ maxLength: 200,
5189
+ onInput: (e3) => setStyle({ text: e3.target.value }),
5190
+ onKeyDown: (e3) => e3.stopPropagation()
5191
+ }
5192
+ ),
5193
+ /* @__PURE__ */ a3("div", { class: "fnc-ss-row", children: [
5194
+ /* @__PURE__ */ a3("span", { children: t3.fontSize }),
5195
+ /* @__PURE__ */ a3("div", { class: "fnc-ss-step", children: [
5196
+ /* @__PURE__ */ a3("button", { "aria-label": `${t3.fontSize} \u2212`, disabled: fontIndex === 0, onClick: () => setStyle({ fontSize: FONT_SIZES[fontIndex - 1] }), children: "\u2212" }),
5197
+ /* @__PURE__ */ a3("b", { children: style.fontSize ?? 14 }),
5198
+ /* @__PURE__ */ a3("button", { "aria-label": `${t3.fontSize} +`, disabled: fontIndex >= FONT_SIZES.length - 1, onClick: () => setStyle({ fontSize: FONT_SIZES[fontIndex + 1] }), children: "+" })
5199
+ ] })
5200
+ ] })
5201
+ ] }),
5202
+ slots.length > 0 && /* @__PURE__ */ a3("section", { class: "fnc-ss-section", children: [
5203
+ /* @__PURE__ */ a3("h3", { children: t3.partColors }),
5204
+ colorsBody()
5205
+ ] }),
5206
+ def?.options && def.options.length > 0 && /* @__PURE__ */ a3("section", { class: "fnc-ss-section", children: [
5207
+ /* @__PURE__ */ a3("h3", { children: t3.drawingOptions }),
5208
+ optionsBody()
5209
+ ] }),
5210
+ def?.levels && /* @__PURE__ */ a3("section", { class: "fnc-ss-section", children: [
5211
+ /* @__PURE__ */ a3("h3", { children: t3.levels }),
5212
+ levelsBody()
5213
+ ] }),
5214
+ def && !def.text && /* @__PURE__ */ a3("section", { class: "fnc-ss-section", children: [
5215
+ /* @__PURE__ */ a3("h3", { children: t3.note }),
5216
+ noteBody()
5217
+ ] }),
5218
+ /* @__PURE__ */ a3("section", { class: "fnc-ss-section", children: [
5219
+ /* @__PURE__ */ a3("h3", { children: t3.coordinates }),
5220
+ coordsBody()
5221
+ ] }),
5222
+ /* @__PURE__ */ a3("section", { class: "fnc-ss-section", children: [
5223
+ /* @__PURE__ */ a3("h3", { children: t3.tabVisibility }),
5224
+ visibilityBody()
5225
+ ] }),
5226
+ /* @__PURE__ */ a3("section", { class: "fnc-ss-section", children: [
5227
+ /* @__PURE__ */ a3("h3", { children: t3.drawingOrder }),
5228
+ orderBody()
5229
+ ] }),
5230
+ /* @__PURE__ */ a3("section", { class: "fnc-ss-section", children: [
5231
+ /* @__PURE__ */ a3("h3", { children: t3.templates }),
5232
+ templateBody()
5233
+ ] })
5234
+ ] })
5235
+ ] });
5236
+ }
5237
+ function BrushIcon({ color }) {
5238
+ return /* @__PURE__ */ a3("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true", children: [
5239
+ /* @__PURE__ */ a3("path", { d: "M13.5 3.5 16.5 6.5 9 14 6 11Z" }),
5240
+ /* @__PURE__ */ a3("path", { d: "M6 11 4.5 12.5c-.8.8-.9 2-1 3 1 0 2.2-.2 3-1L8 13" }),
5241
+ /* @__PURE__ */ a3("rect", { x: "3", y: "17", width: "14", height: "2.2", rx: "1.1", fill: color, stroke: "none" })
5242
+ ] });
5243
+ }
5244
+ function StyleSheet({ ctx, title, resetLabel, onReset, onClose, children }) {
5245
+ const anchor = T2(null);
5246
+ const layer = usePageLayer(anchor, ctx.chart.settings);
5247
+ const panel = T2(null);
5248
+ const drag = T2(null);
5249
+ const [dy, setDy] = d2(0);
5250
+ const [shown, setShown] = d2(false);
5251
+ const [leaving, setLeaving] = d2(false);
5252
+ A2(() => {
5253
+ const frame = requestAnimationFrame(() => setShown(true));
5254
+ const esc = (e3) => e3.key === "Escape" && close();
5255
+ document.addEventListener("keydown", esc);
5256
+ return () => {
5257
+ cancelAnimationFrame(frame);
5258
+ document.removeEventListener("keydown", esc);
5259
+ };
5260
+ }, []);
5261
+ const close = () => {
5262
+ setLeaving(true);
5263
+ setTimeout(onClose, 180);
5264
+ };
5265
+ const move = (e3) => {
5266
+ const d3 = drag.current;
5267
+ if (!d3 || d3.id !== e3.pointerId) return;
5268
+ d3.dy = Math.max(0, e3.clientY - d3.y0);
5269
+ if (d3.dy > 4 && !panel.current?.hasPointerCapture(e3.pointerId)) panel.current?.setPointerCapture(e3.pointerId);
5270
+ setDy(d3.dy);
5271
+ };
5272
+ const end = (e3) => {
5273
+ const d3 = drag.current;
5274
+ if (!d3 || d3.id !== e3.pointerId) return;
5275
+ drag.current = null;
5276
+ const speed = d3.dy / Math.max(1, performance.now() - d3.t0);
5277
+ if (d3.dy > 90 || d3.dy > 24 && speed > 0.5) close();
5278
+ else setDy(0);
5279
+ };
5280
+ const sheet = /* @__PURE__ */ a3("div", { class: `fnc-sheet-backdrop${shown && !leaving ? " is-shown" : ""}`, onPointerDown: (e3) => e3.target === e3.currentTarget && close(), children: /* @__PURE__ */ a3(
5281
+ "div",
5282
+ {
5283
+ ref: panel,
5284
+ class: "fnc-sheet fnc-style-sheet",
5285
+ role: "dialog",
5286
+ "aria-label": title,
5287
+ style: { transform: shown && !leaving ? `translateY(${dy}px)` : "translateY(100%)", transition: drag.current ? "none" : void 0 },
5288
+ onPointerMove: move,
5289
+ onPointerUp: end,
5290
+ onPointerCancel: end,
5291
+ children: [
5292
+ /* @__PURE__ */ a3("div", { class: "fnc-sheet-grip fnc-ss-head", onPointerDown: (e3) => drag.current = { id: e3.pointerId, y0: e3.clientY, t0: performance.now(), dy: 0 }, children: [
5293
+ /* @__PURE__ */ a3("span", {}),
5294
+ /* @__PURE__ */ a3("h2", { children: title }),
5295
+ /* @__PURE__ */ a3("button", { class: "fnc-ss-reset", onPointerDown: (e3) => e3.stopPropagation(), onClick: onReset, children: resetLabel })
5296
+ ] }),
5297
+ /* @__PURE__ */ a3("div", { class: "fnc-ss-body", onKeyDown: (e3) => e3.key !== "Escape" && e3.stopPropagation(), children })
5298
+ ]
5299
+ }
5300
+ ) });
5301
+ return /* @__PURE__ */ a3($, { children: [
5302
+ /* @__PURE__ */ a3("span", { ref: anchor, hidden: true }),
5303
+ layer && X(sheet, layer)
5058
5304
  ] });
5059
5305
  }
5060
5306
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnest/charts-ui",
3
- "version": "0.11.58",
3
+ "version": "0.11.60",
4
4
  "description": "Pro trading UI (toolbar, drawing tools, sheets) for Funnest Charts. Framework-agnostic.",
5
5
  "keywords": [
6
6
  "chart",
@@ -42,7 +42,7 @@
42
42
  "NOTICE"
43
43
  ],
44
44
  "dependencies": {
45
- "@funnest/charts": "0.11.58"
45
+ "@funnest/charts": "0.11.60"
46
46
  },
47
47
  "devDependencies": {
48
48
  "preact": "^11.2.0"