@funnest/charts-ui 0.9.4 → 0.9.6
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.
- package/dist/i18n.d.ts +10 -0
- package/dist/icons.d.ts +2 -0
- package/dist/index.js +23 -0
- package/package.json +2 -2
package/dist/i18n.d.ts
CHANGED
|
@@ -107,6 +107,11 @@ export declare const STRINGS: {
|
|
|
107
107
|
resetColors: string;
|
|
108
108
|
templates: string;
|
|
109
109
|
levels: string;
|
|
110
|
+
drawingOrder: string;
|
|
111
|
+
bringToFront: string;
|
|
112
|
+
bringForward: string;
|
|
113
|
+
sendBackward: string;
|
|
114
|
+
sendToBack: string;
|
|
110
115
|
drawingOptions: string;
|
|
111
116
|
resetOptions: string;
|
|
112
117
|
levelShown: string;
|
|
@@ -329,6 +334,11 @@ export declare const STRINGS: {
|
|
|
329
334
|
resetColors: string;
|
|
330
335
|
templates: string;
|
|
331
336
|
levels: string;
|
|
337
|
+
drawingOrder: string;
|
|
338
|
+
bringToFront: string;
|
|
339
|
+
bringForward: string;
|
|
340
|
+
sendBackward: string;
|
|
341
|
+
sendToBack: string;
|
|
332
342
|
drawingOptions: string;
|
|
333
343
|
resetOptions: string;
|
|
334
344
|
levelShown: string;
|
package/dist/icons.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ export declare const LineBreakIcon: () => import("preact").JSX.Element;
|
|
|
34
34
|
export declare const PointFigureIcon: () => import("preact").JSX.Element;
|
|
35
35
|
export declare const IndicatorIcon: () => import("preact").JSX.Element;
|
|
36
36
|
export declare const GearIcon: () => import("preact").JSX.Element;
|
|
37
|
+
/** 순서 (layers): two stacked sheets, the top one filled. */
|
|
38
|
+
export declare const LayersIcon: () => import("preact").JSX.Element;
|
|
37
39
|
/** 레벨 설정: lines at different heights with a value tick. */
|
|
38
40
|
export declare const LevelsIcon: () => import("preact").JSX.Element;
|
|
39
41
|
/** 그리기 템플릿: stacked cards. */
|
package/dist/index.js
CHANGED
|
@@ -536,6 +536,11 @@ var STRINGS = {
|
|
|
536
536
|
resetColors: "\uAE30\uBCF8 \uC0C9\uC73C\uB85C",
|
|
537
537
|
templates: "\uD15C\uD50C\uB9BF",
|
|
538
538
|
levels: "\uB808\uBCA8 \uC124\uC815",
|
|
539
|
+
drawingOrder: "\uC21C\uC11C",
|
|
540
|
+
bringToFront: "\uB9E8 \uC55E\uC73C\uB85C",
|
|
541
|
+
bringForward: "\uC55E\uC73C\uB85C",
|
|
542
|
+
sendBackward: "\uB4A4\uB85C",
|
|
543
|
+
sendToBack: "\uB9E8 \uB4A4\uB85C",
|
|
539
544
|
drawingOptions: "\uB3C4\uAD6C \uC124\uC815",
|
|
540
545
|
resetOptions: "\uAE30\uBCF8 \uC124\uC815\uC73C\uB85C",
|
|
541
546
|
levelShown: "\uB808\uBCA8 \uBCF4\uC774\uAE30",
|
|
@@ -760,6 +765,11 @@ var STRINGS = {
|
|
|
760
765
|
resetColors: "Reset colors",
|
|
761
766
|
templates: "Templates",
|
|
762
767
|
levels: "Levels",
|
|
768
|
+
drawingOrder: "Order",
|
|
769
|
+
bringToFront: "Bring to front",
|
|
770
|
+
bringForward: "Bring forward",
|
|
771
|
+
sendBackward: "Send backward",
|
|
772
|
+
sendToBack: "Send to back",
|
|
763
773
|
drawingOptions: "Settings",
|
|
764
774
|
resetOptions: "Default settings",
|
|
765
775
|
levelShown: "Show level",
|
|
@@ -1018,6 +1028,10 @@ var GearIcon = () => /* @__PURE__ */ a3(Icon, { size: 14, children: [
|
|
|
1018
1028
|
/* @__PURE__ */ a3("circle", { cx: "10", cy: "10", r: "2.4" }),
|
|
1019
1029
|
/* @__PURE__ */ a3("path", { d: "M10 3v2M10 15v2M3 10h2M15 10h2M5 5l1.4 1.4M13.6 13.6L15 15M5 15l1.4-1.4M13.6 6.4L15 5" })
|
|
1020
1030
|
] });
|
|
1031
|
+
var LayersIcon = () => /* @__PURE__ */ a3(Icon, { children: [
|
|
1032
|
+
/* @__PURE__ */ a3("path", { d: "M10 4 3 7.5 10 11l7-3.5z", fill: "currentColor", "fill-opacity": "0.25" }),
|
|
1033
|
+
/* @__PURE__ */ a3("path", { d: "M3 11l7 3.5 7-3.5" })
|
|
1034
|
+
] });
|
|
1021
1035
|
var LevelsIcon = () => /* @__PURE__ */ a3(Icon, { children: [
|
|
1022
1036
|
/* @__PURE__ */ a3("path", { d: "M3 5h9M3 10h14M3 15h11" }),
|
|
1023
1037
|
/* @__PURE__ */ a3("circle", { cx: "15", cy: "5", r: "1.4" }),
|
|
@@ -1876,6 +1890,15 @@ function SelectionBar({ ctx }) {
|
|
|
1876
1890
|
}
|
|
1877
1891
|
)),
|
|
1878
1892
|
/* @__PURE__ */ a3("div", { class: "fnc-sep" }),
|
|
1893
|
+
/* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
|
|
1894
|
+
/* @__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, {}) }),
|
|
1895
|
+
menu === "order" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop", role: "menu", children: [
|
|
1896
|
+
["front", t3.bringToFront],
|
|
1897
|
+
["forward", t3.bringForward],
|
|
1898
|
+
["backward", t3.sendBackward],
|
|
1899
|
+
["back", t3.sendToBack]
|
|
1900
|
+
].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 })) })
|
|
1901
|
+
] }),
|
|
1879
1902
|
/* @__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 }) }),
|
|
1880
1903
|
/* @__PURE__ */ a3(
|
|
1881
1904
|
"button",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funnest/charts-ui",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
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.9.
|
|
45
|
+
"@funnest/charts": "0.9.6"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"preact": "^11.2.0"
|