hyperprop-charting-library 0.1.154 → 0.1.155
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.
|
@@ -3256,7 +3256,90 @@ var DRAWING_TOOL_ICONS = {
|
|
|
3256
3256
|
brush: [dot(5, 20), path("M6.9 18.4c2.6-6 5-.6 8.4-3.2 3-2.3 5.4-6 8.2-7.9")],
|
|
3257
3257
|
text: [path("M7 8.5V6h14v2.5"), path("M14 6v16M11 22h6")],
|
|
3258
3258
|
note: [path("M5.5 5h17v11.5l-6 6h-11V5Z"), path("M22.5 16.5h-6v6")],
|
|
3259
|
-
callout: [path("M4.5 6h19v11.5H13L8 22.5v-5H4.5V6Z")]
|
|
3259
|
+
callout: [path("M4.5 6h19v11.5H13L8 22.5v-5H4.5V6Z")],
|
|
3260
|
+
// --- Chart-UI utilities ----------------------------------------------------
|
|
3261
|
+
magnet: [
|
|
3262
|
+
path("M8.5 4.5h4v8.5a1.5 1.5 0 0 0 3 0V4.5h4V13a5.5 5.5 0 0 1-11 0V4.5Z"),
|
|
3263
|
+
path("M8.5 8.5h4M15.5 8.5h4")
|
|
3264
|
+
],
|
|
3265
|
+
trash: [
|
|
3266
|
+
path("M6.5 8h15"),
|
|
3267
|
+
path("M11 8V5.5h6V8"),
|
|
3268
|
+
path("M8.5 8l.9 14h9.2l.9-14"),
|
|
3269
|
+
path("M12 12v6.5M16 12v6.5")
|
|
3270
|
+
],
|
|
3271
|
+
pencil: [path("M5 23l.9-3.9L19 6a2.1 2.1 0 0 1 3 3L8.9 22.1 5 23Z"), path("M17.5 7.5l3 3")],
|
|
3272
|
+
"eye-off": [
|
|
3273
|
+
path("M4 14c2.6-4.6 6-6.9 10-6.9s7.4 2.3 10 6.9c-2.6 4.6-6 6.9-10 6.9S6.6 18.6 4 14Z"),
|
|
3274
|
+
{ kind: "circle", cx: 14, cy: 14, r: 3 },
|
|
3275
|
+
path("M6.5 22.5l15-17")
|
|
3276
|
+
],
|
|
3277
|
+
lock: [
|
|
3278
|
+
path("M10 12V8.8a4 4 0 0 1 8 0V12"),
|
|
3279
|
+
{ kind: "rect", x: 7, y: 12, width: 14, height: 10.5 },
|
|
3280
|
+
{ kind: "circle", cx: 14, cy: 17, r: 1.4 }
|
|
3281
|
+
],
|
|
3282
|
+
unlock: [
|
|
3283
|
+
path("M10 12V8.8a4 4 0 0 1 7.7-1.5"),
|
|
3284
|
+
{ kind: "rect", x: 7, y: 12, width: 14, height: 10.5 },
|
|
3285
|
+
{ kind: "circle", cx: 14, cy: 17, r: 1.4 }
|
|
3286
|
+
],
|
|
3287
|
+
clone: [
|
|
3288
|
+
{ kind: "rect", x: 10, y: 10, width: 12.5, height: 12.5 },
|
|
3289
|
+
path("M5.5 18V7a1.5 1.5 0 0 1 1.5-1.5h11")
|
|
3290
|
+
],
|
|
3291
|
+
// Sliders, drawn with the pack's anchor-dot knobs.
|
|
3292
|
+
settings: [
|
|
3293
|
+
path("M4 10h5.4"),
|
|
3294
|
+
dot(11.5, 10),
|
|
3295
|
+
path("M13.6 10H24"),
|
|
3296
|
+
path("M4 18h9.4"),
|
|
3297
|
+
dot(15.5, 18),
|
|
3298
|
+
path("M17.6 18H24")
|
|
3299
|
+
],
|
|
3300
|
+
"source-code": [path("M10.5 8 4.5 14l6 6"), path("M17.5 8l6 6-6 6")],
|
|
3301
|
+
"go-to-realtime": [path("M23.5 5.5v17"), path("M3.5 14h14.2"), path("M13.2 9.5 17.7 14l-4.5 4.5")],
|
|
3302
|
+
"fit-bars": [
|
|
3303
|
+
path("M4.5 5.5v17M23.5 5.5v17"),
|
|
3304
|
+
path("M8.5 14h11"),
|
|
3305
|
+
path("M12 10.5 8.5 14l3.5 3.5M16 10.5l3.5 3.5-3.5 3.5")
|
|
3306
|
+
],
|
|
3307
|
+
reset: [
|
|
3308
|
+
path("M3.5 14a10.5 10.5 0 1 0 10.5-10.5c-3 0-5.8 1.3-7.9 3.2L3.5 9.3"),
|
|
3309
|
+
path("M3.5 3.5v5.8h5.8")
|
|
3310
|
+
],
|
|
3311
|
+
"log-scale": [path("M5 4.5V23.5H24"), path("M7.5 21C13 19.5 19 13.5 21.5 6.5")],
|
|
3312
|
+
"percent-scale": [
|
|
3313
|
+
{ kind: "circle", cx: 9, cy: 9, r: 2.7 },
|
|
3314
|
+
{ kind: "circle", cx: 19, cy: 19, r: 2.7 },
|
|
3315
|
+
path("M6 22 22 6")
|
|
3316
|
+
],
|
|
3317
|
+
"invert-scale": [
|
|
3318
|
+
path("M9.5 22V6.5"),
|
|
3319
|
+
path("M5.5 10.5 9.5 6.5l4 4"),
|
|
3320
|
+
path("M18.5 6v15.5"),
|
|
3321
|
+
path("M14.5 17.5l4 4 4-4")
|
|
3322
|
+
],
|
|
3323
|
+
"arrow-up": [path("M14 22.5V6"), path("M7.5 12.5 14 6l6.5 6.5")],
|
|
3324
|
+
"arrow-down": [path("M14 5.5V22"), path("M7.5 15.5 14 22l6.5-6.5")],
|
|
3325
|
+
replay: [path("M4.5 5.5v17"), path("M9.3 14H24"), path("M13.8 9.5 9.3 14l4.5 4.5")],
|
|
3326
|
+
play: [path("M10 6.3v15.4L22.5 14 10 6.3Z")],
|
|
3327
|
+
pause: [path("M10.5 6.5v15M17.5 6.5v15")],
|
|
3328
|
+
"skip-back": [path("M7 6.5v15"), path("M21 6.9v14.2L10 14 21 6.9Z")],
|
|
3329
|
+
"skip-forward": [path("M21 6.5v15"), path("M7 6.9v14.2L18 14 7 6.9Z")],
|
|
3330
|
+
// Alarm clock — the alert metaphor traders know from other platforms.
|
|
3331
|
+
alert: [
|
|
3332
|
+
{ kind: "circle", cx: 14, cy: 15.5, r: 7.5 },
|
|
3333
|
+
path("M14 11.5v4l3 1.8"),
|
|
3334
|
+
path("M4.9 8.4 8 5.6M23.1 8.4 20 5.6")
|
|
3335
|
+
],
|
|
3336
|
+
anchor: [
|
|
3337
|
+
{ kind: "circle", cx: 14, cy: 5.8, r: 2.1 },
|
|
3338
|
+
path("M14 7.9V23.5"),
|
|
3339
|
+
path("M9.5 11.5h9"),
|
|
3340
|
+
path("M5 14.5a9 9 0 0 0 18 0")
|
|
3341
|
+
],
|
|
3342
|
+
indicators: [path("M4 19.5l5.5-6.5 4.5 4.5 9.5-11")]
|
|
3260
3343
|
};
|
|
3261
3344
|
|
|
3262
3345
|
// src/themes.ts
|
|
@@ -1475,7 +1475,7 @@ type DrawingIconShape = {
|
|
|
1475
1475
|
width: number;
|
|
1476
1476
|
height: number;
|
|
1477
1477
|
};
|
|
1478
|
-
type DrawingIconName = "cursor-cross" | "cursor-dot" | "cursor-arrow" | "trendline" | "horizontal-line" | "vertical-line" | "ray" | "arrow" | "parallel-channel" | "fib-retracement" | "fib-extension" | "long-position" | "short-position" | "price-range" | "fixed-range-volume-profile" | "measure" | "rectangle" | "ellipse" | "brush" | "text" | "note" | "callout";
|
|
1478
|
+
type DrawingIconName = "cursor-cross" | "cursor-dot" | "cursor-arrow" | "trendline" | "horizontal-line" | "vertical-line" | "ray" | "arrow" | "parallel-channel" | "fib-retracement" | "fib-extension" | "long-position" | "short-position" | "price-range" | "fixed-range-volume-profile" | "measure" | "rectangle" | "ellipse" | "brush" | "text" | "note" | "callout" | "magnet" | "trash" | "pencil" | "eye-off" | "lock" | "unlock" | "clone" | "settings" | "source-code" | "go-to-realtime" | "fit-bars" | "reset" | "log-scale" | "percent-scale" | "invert-scale" | "arrow-up" | "arrow-down" | "replay" | "play" | "pause" | "skip-back" | "skip-forward" | "alert" | "anchor" | "indicators";
|
|
1479
1479
|
declare const DRAWING_ICON_VIEWBOX = 28;
|
|
1480
1480
|
declare const DRAWING_ICON_STROKE_WIDTH = 1.6;
|
|
1481
1481
|
declare const DRAWING_TOOL_ICONS: Record<DrawingIconName, DrawingIconShape[]>;
|
|
@@ -3217,7 +3217,90 @@ var DRAWING_TOOL_ICONS = {
|
|
|
3217
3217
|
brush: [dot(5, 20), path("M6.9 18.4c2.6-6 5-.6 8.4-3.2 3-2.3 5.4-6 8.2-7.9")],
|
|
3218
3218
|
text: [path("M7 8.5V6h14v2.5"), path("M14 6v16M11 22h6")],
|
|
3219
3219
|
note: [path("M5.5 5h17v11.5l-6 6h-11V5Z"), path("M22.5 16.5h-6v6")],
|
|
3220
|
-
callout: [path("M4.5 6h19v11.5H13L8 22.5v-5H4.5V6Z")]
|
|
3220
|
+
callout: [path("M4.5 6h19v11.5H13L8 22.5v-5H4.5V6Z")],
|
|
3221
|
+
// --- Chart-UI utilities ----------------------------------------------------
|
|
3222
|
+
magnet: [
|
|
3223
|
+
path("M8.5 4.5h4v8.5a1.5 1.5 0 0 0 3 0V4.5h4V13a5.5 5.5 0 0 1-11 0V4.5Z"),
|
|
3224
|
+
path("M8.5 8.5h4M15.5 8.5h4")
|
|
3225
|
+
],
|
|
3226
|
+
trash: [
|
|
3227
|
+
path("M6.5 8h15"),
|
|
3228
|
+
path("M11 8V5.5h6V8"),
|
|
3229
|
+
path("M8.5 8l.9 14h9.2l.9-14"),
|
|
3230
|
+
path("M12 12v6.5M16 12v6.5")
|
|
3231
|
+
],
|
|
3232
|
+
pencil: [path("M5 23l.9-3.9L19 6a2.1 2.1 0 0 1 3 3L8.9 22.1 5 23Z"), path("M17.5 7.5l3 3")],
|
|
3233
|
+
"eye-off": [
|
|
3234
|
+
path("M4 14c2.6-4.6 6-6.9 10-6.9s7.4 2.3 10 6.9c-2.6 4.6-6 6.9-10 6.9S6.6 18.6 4 14Z"),
|
|
3235
|
+
{ kind: "circle", cx: 14, cy: 14, r: 3 },
|
|
3236
|
+
path("M6.5 22.5l15-17")
|
|
3237
|
+
],
|
|
3238
|
+
lock: [
|
|
3239
|
+
path("M10 12V8.8a4 4 0 0 1 8 0V12"),
|
|
3240
|
+
{ kind: "rect", x: 7, y: 12, width: 14, height: 10.5 },
|
|
3241
|
+
{ kind: "circle", cx: 14, cy: 17, r: 1.4 }
|
|
3242
|
+
],
|
|
3243
|
+
unlock: [
|
|
3244
|
+
path("M10 12V8.8a4 4 0 0 1 7.7-1.5"),
|
|
3245
|
+
{ kind: "rect", x: 7, y: 12, width: 14, height: 10.5 },
|
|
3246
|
+
{ kind: "circle", cx: 14, cy: 17, r: 1.4 }
|
|
3247
|
+
],
|
|
3248
|
+
clone: [
|
|
3249
|
+
{ kind: "rect", x: 10, y: 10, width: 12.5, height: 12.5 },
|
|
3250
|
+
path("M5.5 18V7a1.5 1.5 0 0 1 1.5-1.5h11")
|
|
3251
|
+
],
|
|
3252
|
+
// Sliders, drawn with the pack's anchor-dot knobs.
|
|
3253
|
+
settings: [
|
|
3254
|
+
path("M4 10h5.4"),
|
|
3255
|
+
dot(11.5, 10),
|
|
3256
|
+
path("M13.6 10H24"),
|
|
3257
|
+
path("M4 18h9.4"),
|
|
3258
|
+
dot(15.5, 18),
|
|
3259
|
+
path("M17.6 18H24")
|
|
3260
|
+
],
|
|
3261
|
+
"source-code": [path("M10.5 8 4.5 14l6 6"), path("M17.5 8l6 6-6 6")],
|
|
3262
|
+
"go-to-realtime": [path("M23.5 5.5v17"), path("M3.5 14h14.2"), path("M13.2 9.5 17.7 14l-4.5 4.5")],
|
|
3263
|
+
"fit-bars": [
|
|
3264
|
+
path("M4.5 5.5v17M23.5 5.5v17"),
|
|
3265
|
+
path("M8.5 14h11"),
|
|
3266
|
+
path("M12 10.5 8.5 14l3.5 3.5M16 10.5l3.5 3.5-3.5 3.5")
|
|
3267
|
+
],
|
|
3268
|
+
reset: [
|
|
3269
|
+
path("M3.5 14a10.5 10.5 0 1 0 10.5-10.5c-3 0-5.8 1.3-7.9 3.2L3.5 9.3"),
|
|
3270
|
+
path("M3.5 3.5v5.8h5.8")
|
|
3271
|
+
],
|
|
3272
|
+
"log-scale": [path("M5 4.5V23.5H24"), path("M7.5 21C13 19.5 19 13.5 21.5 6.5")],
|
|
3273
|
+
"percent-scale": [
|
|
3274
|
+
{ kind: "circle", cx: 9, cy: 9, r: 2.7 },
|
|
3275
|
+
{ kind: "circle", cx: 19, cy: 19, r: 2.7 },
|
|
3276
|
+
path("M6 22 22 6")
|
|
3277
|
+
],
|
|
3278
|
+
"invert-scale": [
|
|
3279
|
+
path("M9.5 22V6.5"),
|
|
3280
|
+
path("M5.5 10.5 9.5 6.5l4 4"),
|
|
3281
|
+
path("M18.5 6v15.5"),
|
|
3282
|
+
path("M14.5 17.5l4 4 4-4")
|
|
3283
|
+
],
|
|
3284
|
+
"arrow-up": [path("M14 22.5V6"), path("M7.5 12.5 14 6l6.5 6.5")],
|
|
3285
|
+
"arrow-down": [path("M14 5.5V22"), path("M7.5 15.5 14 22l6.5-6.5")],
|
|
3286
|
+
replay: [path("M4.5 5.5v17"), path("M9.3 14H24"), path("M13.8 9.5 9.3 14l4.5 4.5")],
|
|
3287
|
+
play: [path("M10 6.3v15.4L22.5 14 10 6.3Z")],
|
|
3288
|
+
pause: [path("M10.5 6.5v15M17.5 6.5v15")],
|
|
3289
|
+
"skip-back": [path("M7 6.5v15"), path("M21 6.9v14.2L10 14 21 6.9Z")],
|
|
3290
|
+
"skip-forward": [path("M21 6.5v15"), path("M7 6.9v14.2L18 14 7 6.9Z")],
|
|
3291
|
+
// Alarm clock — the alert metaphor traders know from other platforms.
|
|
3292
|
+
alert: [
|
|
3293
|
+
{ kind: "circle", cx: 14, cy: 15.5, r: 7.5 },
|
|
3294
|
+
path("M14 11.5v4l3 1.8"),
|
|
3295
|
+
path("M4.9 8.4 8 5.6M23.1 8.4 20 5.6")
|
|
3296
|
+
],
|
|
3297
|
+
anchor: [
|
|
3298
|
+
{ kind: "circle", cx: 14, cy: 5.8, r: 2.1 },
|
|
3299
|
+
path("M14 7.9V23.5"),
|
|
3300
|
+
path("M9.5 11.5h9"),
|
|
3301
|
+
path("M5 14.5a9 9 0 0 0 18 0")
|
|
3302
|
+
],
|
|
3303
|
+
indicators: [path("M4 19.5l5.5-6.5 4.5 4.5 9.5-11")]
|
|
3221
3304
|
};
|
|
3222
3305
|
|
|
3223
3306
|
// src/themes.ts
|
package/dist/index.cjs
CHANGED
|
@@ -3256,7 +3256,90 @@ var DRAWING_TOOL_ICONS = {
|
|
|
3256
3256
|
brush: [dot(5, 20), path("M6.9 18.4c2.6-6 5-.6 8.4-3.2 3-2.3 5.4-6 8.2-7.9")],
|
|
3257
3257
|
text: [path("M7 8.5V6h14v2.5"), path("M14 6v16M11 22h6")],
|
|
3258
3258
|
note: [path("M5.5 5h17v11.5l-6 6h-11V5Z"), path("M22.5 16.5h-6v6")],
|
|
3259
|
-
callout: [path("M4.5 6h19v11.5H13L8 22.5v-5H4.5V6Z")]
|
|
3259
|
+
callout: [path("M4.5 6h19v11.5H13L8 22.5v-5H4.5V6Z")],
|
|
3260
|
+
// --- Chart-UI utilities ----------------------------------------------------
|
|
3261
|
+
magnet: [
|
|
3262
|
+
path("M8.5 4.5h4v8.5a1.5 1.5 0 0 0 3 0V4.5h4V13a5.5 5.5 0 0 1-11 0V4.5Z"),
|
|
3263
|
+
path("M8.5 8.5h4M15.5 8.5h4")
|
|
3264
|
+
],
|
|
3265
|
+
trash: [
|
|
3266
|
+
path("M6.5 8h15"),
|
|
3267
|
+
path("M11 8V5.5h6V8"),
|
|
3268
|
+
path("M8.5 8l.9 14h9.2l.9-14"),
|
|
3269
|
+
path("M12 12v6.5M16 12v6.5")
|
|
3270
|
+
],
|
|
3271
|
+
pencil: [path("M5 23l.9-3.9L19 6a2.1 2.1 0 0 1 3 3L8.9 22.1 5 23Z"), path("M17.5 7.5l3 3")],
|
|
3272
|
+
"eye-off": [
|
|
3273
|
+
path("M4 14c2.6-4.6 6-6.9 10-6.9s7.4 2.3 10 6.9c-2.6 4.6-6 6.9-10 6.9S6.6 18.6 4 14Z"),
|
|
3274
|
+
{ kind: "circle", cx: 14, cy: 14, r: 3 },
|
|
3275
|
+
path("M6.5 22.5l15-17")
|
|
3276
|
+
],
|
|
3277
|
+
lock: [
|
|
3278
|
+
path("M10 12V8.8a4 4 0 0 1 8 0V12"),
|
|
3279
|
+
{ kind: "rect", x: 7, y: 12, width: 14, height: 10.5 },
|
|
3280
|
+
{ kind: "circle", cx: 14, cy: 17, r: 1.4 }
|
|
3281
|
+
],
|
|
3282
|
+
unlock: [
|
|
3283
|
+
path("M10 12V8.8a4 4 0 0 1 7.7-1.5"),
|
|
3284
|
+
{ kind: "rect", x: 7, y: 12, width: 14, height: 10.5 },
|
|
3285
|
+
{ kind: "circle", cx: 14, cy: 17, r: 1.4 }
|
|
3286
|
+
],
|
|
3287
|
+
clone: [
|
|
3288
|
+
{ kind: "rect", x: 10, y: 10, width: 12.5, height: 12.5 },
|
|
3289
|
+
path("M5.5 18V7a1.5 1.5 0 0 1 1.5-1.5h11")
|
|
3290
|
+
],
|
|
3291
|
+
// Sliders, drawn with the pack's anchor-dot knobs.
|
|
3292
|
+
settings: [
|
|
3293
|
+
path("M4 10h5.4"),
|
|
3294
|
+
dot(11.5, 10),
|
|
3295
|
+
path("M13.6 10H24"),
|
|
3296
|
+
path("M4 18h9.4"),
|
|
3297
|
+
dot(15.5, 18),
|
|
3298
|
+
path("M17.6 18H24")
|
|
3299
|
+
],
|
|
3300
|
+
"source-code": [path("M10.5 8 4.5 14l6 6"), path("M17.5 8l6 6-6 6")],
|
|
3301
|
+
"go-to-realtime": [path("M23.5 5.5v17"), path("M3.5 14h14.2"), path("M13.2 9.5 17.7 14l-4.5 4.5")],
|
|
3302
|
+
"fit-bars": [
|
|
3303
|
+
path("M4.5 5.5v17M23.5 5.5v17"),
|
|
3304
|
+
path("M8.5 14h11"),
|
|
3305
|
+
path("M12 10.5 8.5 14l3.5 3.5M16 10.5l3.5 3.5-3.5 3.5")
|
|
3306
|
+
],
|
|
3307
|
+
reset: [
|
|
3308
|
+
path("M3.5 14a10.5 10.5 0 1 0 10.5-10.5c-3 0-5.8 1.3-7.9 3.2L3.5 9.3"),
|
|
3309
|
+
path("M3.5 3.5v5.8h5.8")
|
|
3310
|
+
],
|
|
3311
|
+
"log-scale": [path("M5 4.5V23.5H24"), path("M7.5 21C13 19.5 19 13.5 21.5 6.5")],
|
|
3312
|
+
"percent-scale": [
|
|
3313
|
+
{ kind: "circle", cx: 9, cy: 9, r: 2.7 },
|
|
3314
|
+
{ kind: "circle", cx: 19, cy: 19, r: 2.7 },
|
|
3315
|
+
path("M6 22 22 6")
|
|
3316
|
+
],
|
|
3317
|
+
"invert-scale": [
|
|
3318
|
+
path("M9.5 22V6.5"),
|
|
3319
|
+
path("M5.5 10.5 9.5 6.5l4 4"),
|
|
3320
|
+
path("M18.5 6v15.5"),
|
|
3321
|
+
path("M14.5 17.5l4 4 4-4")
|
|
3322
|
+
],
|
|
3323
|
+
"arrow-up": [path("M14 22.5V6"), path("M7.5 12.5 14 6l6.5 6.5")],
|
|
3324
|
+
"arrow-down": [path("M14 5.5V22"), path("M7.5 15.5 14 22l6.5-6.5")],
|
|
3325
|
+
replay: [path("M4.5 5.5v17"), path("M9.3 14H24"), path("M13.8 9.5 9.3 14l4.5 4.5")],
|
|
3326
|
+
play: [path("M10 6.3v15.4L22.5 14 10 6.3Z")],
|
|
3327
|
+
pause: [path("M10.5 6.5v15M17.5 6.5v15")],
|
|
3328
|
+
"skip-back": [path("M7 6.5v15"), path("M21 6.9v14.2L10 14 21 6.9Z")],
|
|
3329
|
+
"skip-forward": [path("M21 6.5v15"), path("M7 6.9v14.2L18 14 7 6.9Z")],
|
|
3330
|
+
// Alarm clock — the alert metaphor traders know from other platforms.
|
|
3331
|
+
alert: [
|
|
3332
|
+
{ kind: "circle", cx: 14, cy: 15.5, r: 7.5 },
|
|
3333
|
+
path("M14 11.5v4l3 1.8"),
|
|
3334
|
+
path("M4.9 8.4 8 5.6M23.1 8.4 20 5.6")
|
|
3335
|
+
],
|
|
3336
|
+
anchor: [
|
|
3337
|
+
{ kind: "circle", cx: 14, cy: 5.8, r: 2.1 },
|
|
3338
|
+
path("M14 7.9V23.5"),
|
|
3339
|
+
path("M9.5 11.5h9"),
|
|
3340
|
+
path("M5 14.5a9 9 0 0 0 18 0")
|
|
3341
|
+
],
|
|
3342
|
+
indicators: [path("M4 19.5l5.5-6.5 4.5 4.5 9.5-11")]
|
|
3260
3343
|
};
|
|
3261
3344
|
|
|
3262
3345
|
// src/themes.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -1475,7 +1475,7 @@ type DrawingIconShape = {
|
|
|
1475
1475
|
width: number;
|
|
1476
1476
|
height: number;
|
|
1477
1477
|
};
|
|
1478
|
-
type DrawingIconName = "cursor-cross" | "cursor-dot" | "cursor-arrow" | "trendline" | "horizontal-line" | "vertical-line" | "ray" | "arrow" | "parallel-channel" | "fib-retracement" | "fib-extension" | "long-position" | "short-position" | "price-range" | "fixed-range-volume-profile" | "measure" | "rectangle" | "ellipse" | "brush" | "text" | "note" | "callout";
|
|
1478
|
+
type DrawingIconName = "cursor-cross" | "cursor-dot" | "cursor-arrow" | "trendline" | "horizontal-line" | "vertical-line" | "ray" | "arrow" | "parallel-channel" | "fib-retracement" | "fib-extension" | "long-position" | "short-position" | "price-range" | "fixed-range-volume-profile" | "measure" | "rectangle" | "ellipse" | "brush" | "text" | "note" | "callout" | "magnet" | "trash" | "pencil" | "eye-off" | "lock" | "unlock" | "clone" | "settings" | "source-code" | "go-to-realtime" | "fit-bars" | "reset" | "log-scale" | "percent-scale" | "invert-scale" | "arrow-up" | "arrow-down" | "replay" | "play" | "pause" | "skip-back" | "skip-forward" | "alert" | "anchor" | "indicators";
|
|
1479
1479
|
declare const DRAWING_ICON_VIEWBOX = 28;
|
|
1480
1480
|
declare const DRAWING_ICON_STROKE_WIDTH = 1.6;
|
|
1481
1481
|
declare const DRAWING_TOOL_ICONS: Record<DrawingIconName, DrawingIconShape[]>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1475,7 +1475,7 @@ type DrawingIconShape = {
|
|
|
1475
1475
|
width: number;
|
|
1476
1476
|
height: number;
|
|
1477
1477
|
};
|
|
1478
|
-
type DrawingIconName = "cursor-cross" | "cursor-dot" | "cursor-arrow" | "trendline" | "horizontal-line" | "vertical-line" | "ray" | "arrow" | "parallel-channel" | "fib-retracement" | "fib-extension" | "long-position" | "short-position" | "price-range" | "fixed-range-volume-profile" | "measure" | "rectangle" | "ellipse" | "brush" | "text" | "note" | "callout";
|
|
1478
|
+
type DrawingIconName = "cursor-cross" | "cursor-dot" | "cursor-arrow" | "trendline" | "horizontal-line" | "vertical-line" | "ray" | "arrow" | "parallel-channel" | "fib-retracement" | "fib-extension" | "long-position" | "short-position" | "price-range" | "fixed-range-volume-profile" | "measure" | "rectangle" | "ellipse" | "brush" | "text" | "note" | "callout" | "magnet" | "trash" | "pencil" | "eye-off" | "lock" | "unlock" | "clone" | "settings" | "source-code" | "go-to-realtime" | "fit-bars" | "reset" | "log-scale" | "percent-scale" | "invert-scale" | "arrow-up" | "arrow-down" | "replay" | "play" | "pause" | "skip-back" | "skip-forward" | "alert" | "anchor" | "indicators";
|
|
1479
1479
|
declare const DRAWING_ICON_VIEWBOX = 28;
|
|
1480
1480
|
declare const DRAWING_ICON_STROKE_WIDTH = 1.6;
|
|
1481
1481
|
declare const DRAWING_TOOL_ICONS: Record<DrawingIconName, DrawingIconShape[]>;
|
package/dist/index.js
CHANGED
|
@@ -3217,7 +3217,90 @@ var DRAWING_TOOL_ICONS = {
|
|
|
3217
3217
|
brush: [dot(5, 20), path("M6.9 18.4c2.6-6 5-.6 8.4-3.2 3-2.3 5.4-6 8.2-7.9")],
|
|
3218
3218
|
text: [path("M7 8.5V6h14v2.5"), path("M14 6v16M11 22h6")],
|
|
3219
3219
|
note: [path("M5.5 5h17v11.5l-6 6h-11V5Z"), path("M22.5 16.5h-6v6")],
|
|
3220
|
-
callout: [path("M4.5 6h19v11.5H13L8 22.5v-5H4.5V6Z")]
|
|
3220
|
+
callout: [path("M4.5 6h19v11.5H13L8 22.5v-5H4.5V6Z")],
|
|
3221
|
+
// --- Chart-UI utilities ----------------------------------------------------
|
|
3222
|
+
magnet: [
|
|
3223
|
+
path("M8.5 4.5h4v8.5a1.5 1.5 0 0 0 3 0V4.5h4V13a5.5 5.5 0 0 1-11 0V4.5Z"),
|
|
3224
|
+
path("M8.5 8.5h4M15.5 8.5h4")
|
|
3225
|
+
],
|
|
3226
|
+
trash: [
|
|
3227
|
+
path("M6.5 8h15"),
|
|
3228
|
+
path("M11 8V5.5h6V8"),
|
|
3229
|
+
path("M8.5 8l.9 14h9.2l.9-14"),
|
|
3230
|
+
path("M12 12v6.5M16 12v6.5")
|
|
3231
|
+
],
|
|
3232
|
+
pencil: [path("M5 23l.9-3.9L19 6a2.1 2.1 0 0 1 3 3L8.9 22.1 5 23Z"), path("M17.5 7.5l3 3")],
|
|
3233
|
+
"eye-off": [
|
|
3234
|
+
path("M4 14c2.6-4.6 6-6.9 10-6.9s7.4 2.3 10 6.9c-2.6 4.6-6 6.9-10 6.9S6.6 18.6 4 14Z"),
|
|
3235
|
+
{ kind: "circle", cx: 14, cy: 14, r: 3 },
|
|
3236
|
+
path("M6.5 22.5l15-17")
|
|
3237
|
+
],
|
|
3238
|
+
lock: [
|
|
3239
|
+
path("M10 12V8.8a4 4 0 0 1 8 0V12"),
|
|
3240
|
+
{ kind: "rect", x: 7, y: 12, width: 14, height: 10.5 },
|
|
3241
|
+
{ kind: "circle", cx: 14, cy: 17, r: 1.4 }
|
|
3242
|
+
],
|
|
3243
|
+
unlock: [
|
|
3244
|
+
path("M10 12V8.8a4 4 0 0 1 7.7-1.5"),
|
|
3245
|
+
{ kind: "rect", x: 7, y: 12, width: 14, height: 10.5 },
|
|
3246
|
+
{ kind: "circle", cx: 14, cy: 17, r: 1.4 }
|
|
3247
|
+
],
|
|
3248
|
+
clone: [
|
|
3249
|
+
{ kind: "rect", x: 10, y: 10, width: 12.5, height: 12.5 },
|
|
3250
|
+
path("M5.5 18V7a1.5 1.5 0 0 1 1.5-1.5h11")
|
|
3251
|
+
],
|
|
3252
|
+
// Sliders, drawn with the pack's anchor-dot knobs.
|
|
3253
|
+
settings: [
|
|
3254
|
+
path("M4 10h5.4"),
|
|
3255
|
+
dot(11.5, 10),
|
|
3256
|
+
path("M13.6 10H24"),
|
|
3257
|
+
path("M4 18h9.4"),
|
|
3258
|
+
dot(15.5, 18),
|
|
3259
|
+
path("M17.6 18H24")
|
|
3260
|
+
],
|
|
3261
|
+
"source-code": [path("M10.5 8 4.5 14l6 6"), path("M17.5 8l6 6-6 6")],
|
|
3262
|
+
"go-to-realtime": [path("M23.5 5.5v17"), path("M3.5 14h14.2"), path("M13.2 9.5 17.7 14l-4.5 4.5")],
|
|
3263
|
+
"fit-bars": [
|
|
3264
|
+
path("M4.5 5.5v17M23.5 5.5v17"),
|
|
3265
|
+
path("M8.5 14h11"),
|
|
3266
|
+
path("M12 10.5 8.5 14l3.5 3.5M16 10.5l3.5 3.5-3.5 3.5")
|
|
3267
|
+
],
|
|
3268
|
+
reset: [
|
|
3269
|
+
path("M3.5 14a10.5 10.5 0 1 0 10.5-10.5c-3 0-5.8 1.3-7.9 3.2L3.5 9.3"),
|
|
3270
|
+
path("M3.5 3.5v5.8h5.8")
|
|
3271
|
+
],
|
|
3272
|
+
"log-scale": [path("M5 4.5V23.5H24"), path("M7.5 21C13 19.5 19 13.5 21.5 6.5")],
|
|
3273
|
+
"percent-scale": [
|
|
3274
|
+
{ kind: "circle", cx: 9, cy: 9, r: 2.7 },
|
|
3275
|
+
{ kind: "circle", cx: 19, cy: 19, r: 2.7 },
|
|
3276
|
+
path("M6 22 22 6")
|
|
3277
|
+
],
|
|
3278
|
+
"invert-scale": [
|
|
3279
|
+
path("M9.5 22V6.5"),
|
|
3280
|
+
path("M5.5 10.5 9.5 6.5l4 4"),
|
|
3281
|
+
path("M18.5 6v15.5"),
|
|
3282
|
+
path("M14.5 17.5l4 4 4-4")
|
|
3283
|
+
],
|
|
3284
|
+
"arrow-up": [path("M14 22.5V6"), path("M7.5 12.5 14 6l6.5 6.5")],
|
|
3285
|
+
"arrow-down": [path("M14 5.5V22"), path("M7.5 15.5 14 22l6.5-6.5")],
|
|
3286
|
+
replay: [path("M4.5 5.5v17"), path("M9.3 14H24"), path("M13.8 9.5 9.3 14l4.5 4.5")],
|
|
3287
|
+
play: [path("M10 6.3v15.4L22.5 14 10 6.3Z")],
|
|
3288
|
+
pause: [path("M10.5 6.5v15M17.5 6.5v15")],
|
|
3289
|
+
"skip-back": [path("M7 6.5v15"), path("M21 6.9v14.2L10 14 21 6.9Z")],
|
|
3290
|
+
"skip-forward": [path("M21 6.5v15"), path("M7 6.9v14.2L18 14 7 6.9Z")],
|
|
3291
|
+
// Alarm clock — the alert metaphor traders know from other platforms.
|
|
3292
|
+
alert: [
|
|
3293
|
+
{ kind: "circle", cx: 14, cy: 15.5, r: 7.5 },
|
|
3294
|
+
path("M14 11.5v4l3 1.8"),
|
|
3295
|
+
path("M4.9 8.4 8 5.6M23.1 8.4 20 5.6")
|
|
3296
|
+
],
|
|
3297
|
+
anchor: [
|
|
3298
|
+
{ kind: "circle", cx: 14, cy: 5.8, r: 2.1 },
|
|
3299
|
+
path("M14 7.9V23.5"),
|
|
3300
|
+
path("M9.5 11.5h9"),
|
|
3301
|
+
path("M5 14.5a9 9 0 0 0 18 0")
|
|
3302
|
+
],
|
|
3303
|
+
indicators: [path("M4 19.5l5.5-6.5 4.5 4.5 9.5-11")]
|
|
3221
3304
|
};
|
|
3222
3305
|
|
|
3223
3306
|
// src/themes.ts
|