@tradecanvas/chart 1.65.0 → 1.66.0

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 (63) hide show
  1. package/README.md +2 -2
  2. package/dist/Chart.d.ts.map +1 -1
  3. package/dist/{LayoutSession-D3-26EZU.js → LayoutSession-BQVAQhdo.js} +417 -417
  4. package/dist/LayoutSession-BQVAQhdo.js.map +1 -0
  5. package/dist/{LayoutSession-DV6i7ZxO.cjs → LayoutSession-Bgd4YHx7.cjs} +2 -2
  6. package/dist/LayoutSession-Bgd4YHx7.cjs.map +1 -0
  7. package/dist/i18n-BsstZ9md.cjs +2 -0
  8. package/dist/i18n-BsstZ9md.cjs.map +1 -0
  9. package/dist/{i18n-BMypRqyL.js → i18n-DUmd4Z_r.js} +9 -1
  10. package/dist/i18n-DUmd4Z_r.js.map +1 -0
  11. package/dist/index.cjs +1 -1
  12. package/dist/index.js +1 -1
  13. package/dist/widget/ChartWidget.d.ts.map +1 -1
  14. package/dist/widget/WidgetDrawingSettings.d.ts +2 -0
  15. package/dist/widget/WidgetDrawingSettings.d.ts.map +1 -1
  16. package/dist/widget/WidgetObjectTree.d.ts.map +1 -1
  17. package/dist/widget/drawingSettingsTabs.d.ts.map +1 -1
  18. package/dist/widget/index.cjs +3 -3
  19. package/dist/widget/index.cjs.map +1 -1
  20. package/dist/widget/index.js +49 -4
  21. package/dist/widget/index.js.map +1 -1
  22. package/dist/widget/locales/ar.d.ts.map +1 -1
  23. package/dist/widget/locales/cs.d.ts.map +1 -1
  24. package/dist/widget/locales/da.d.ts.map +1 -1
  25. package/dist/widget/locales/de.d.ts.map +1 -1
  26. package/dist/widget/locales/el.d.ts.map +1 -1
  27. package/dist/widget/locales/en.d.ts +4 -0
  28. package/dist/widget/locales/en.d.ts.map +1 -1
  29. package/dist/widget/locales/es.d.ts.map +1 -1
  30. package/dist/widget/locales/et.d.ts.map +1 -1
  31. package/dist/widget/locales/fa.d.ts.map +1 -1
  32. package/dist/widget/locales/fr.d.ts.map +1 -1
  33. package/dist/widget/locales/he.d.ts.map +1 -1
  34. package/dist/widget/locales/hu.d.ts.map +1 -1
  35. package/dist/widget/locales/id.d.ts.map +1 -1
  36. package/dist/widget/locales/index.cjs +1 -1
  37. package/dist/widget/locales/index.cjs.map +1 -1
  38. package/dist/widget/locales/index.js +113 -1
  39. package/dist/widget/locales/index.js.map +1 -1
  40. package/dist/widget/locales/it.d.ts.map +1 -1
  41. package/dist/widget/locales/ja.d.ts.map +1 -1
  42. package/dist/widget/locales/ko.d.ts.map +1 -1
  43. package/dist/widget/locales/ms.d.ts.map +1 -1
  44. package/dist/widget/locales/nb.d.ts.map +1 -1
  45. package/dist/widget/locales/nl.d.ts.map +1 -1
  46. package/dist/widget/locales/pl.d.ts.map +1 -1
  47. package/dist/widget/locales/pt.d.ts.map +1 -1
  48. package/dist/widget/locales/ro.d.ts.map +1 -1
  49. package/dist/widget/locales/ru.d.ts.map +1 -1
  50. package/dist/widget/locales/sk.d.ts.map +1 -1
  51. package/dist/widget/locales/sv.d.ts.map +1 -1
  52. package/dist/widget/locales/th.d.ts.map +1 -1
  53. package/dist/widget/locales/tr.d.ts.map +1 -1
  54. package/dist/widget/locales/vi.d.ts.map +1 -1
  55. package/dist/widget/locales/zh.d.ts.map +1 -1
  56. package/dist/widget/locales/zhHant.d.ts.map +1 -1
  57. package/dist/widget/widgetConfig.d.ts.map +1 -1
  58. package/package.json +3 -3
  59. package/dist/LayoutSession-D3-26EZU.js.map +0 -1
  60. package/dist/LayoutSession-DV6i7ZxO.cjs.map +0 -1
  61. package/dist/i18n-BMypRqyL.js.map +0 -1
  62. package/dist/i18n-Gg731RKU.cjs +0 -2
  63. package/dist/i18n-Gg731RKU.cjs.map +0 -1
@@ -1,5 +1,5 @@
1
- import { O as e, a as t, c as n, d as r, f as i, i as a, n as o, o as s, r as c, t as l } from "../LayoutSession-D3-26EZU.js";
2
- import { a as u, c as d, i as f, n as p, o as m, r as h, s as ee, t as g } from "../i18n-BMypRqyL.js";
1
+ import { O as e, a as t, c as n, d as r, f as i, i as a, n as o, o as s, r as c, t as l } from "../LayoutSession-BQVAQhdo.js";
2
+ import { a as u, c as d, i as f, n as p, o as m, r as h, s as ee, t as g } from "../i18n-DUmd4Z_r.js";
3
3
  import { CHART_STYLE_KEYS as _, CHART_TYPE_ICONS as v, DARK_THEME as y, DEFAULT_SIGNAL_STYLE as b, DEFAULT_TRADE_ZONE_STYLE as x, DEFAULT_TRADING_CONFIG as S, DRAWING_TOOL_ICONS as te, LIGHT_THEME as ne, PHI as re, PRICE_SOURCES as ie, SANS_FONT_FAMILY as ae, UI_ICONS as oe, barTimeUnit as se, formatPrice as ce, formatVolumeLoc as le, iconSvg as ue, indicatorSource as de, isTimeFrame as fe, isValidTimeZone as pe, marketStatus as me, offsetAt as he, parseIndicatorSource as ge, phiStep as _e, readChartStyleOverrides as ve, readChartTypeOptions as ye, readIndicatorPlotStyles as be, readNews as xe, readQuote as Se, resampleBars as Ce, sanitizeDrawingOptions as we, sanitizeDrawingStyle as Te, stepDecimals as Ee, symbolTimeZone as De, tickBarCount as Oe, timeParts as ke, timeframeFollowsDays as Ae, timeframeToMs as C, tzLabel as je, wallToUtc as Me, zoneOffsetMinutes as Ne, zonedDateFormatter as Pe } from "@tradecanvas/commons";
4
4
  import { ChartStateManager as Fe, INDICATOR_CATEGORIES as Ie, INTERVAL_LIMITS as Le, INTERVAL_UNITS as Re, MAX_ALERT_BARS as ze, MIN_ALERT_BARS as Be, RANGE_PRESETS as Ve, ResamplingAdapter as He, SYMBOL_INDICATOR_IDS as Ue, indicatorCategory as We, indicatorValuePrecision as Ge, isSeriesPalette as Ke, plotColor as qe, plotShown as Je, rangePresetStart as Ye, servesTimeframe as Xe, sourceParam as Ze, withResampling as Qe } from "@tradecanvas/core";
5
5
  //#region src/io/resampleOHLCV.ts
@@ -1039,6 +1039,22 @@ var At = [
1039
1039
  {
1040
1040
  label: "Icon",
1041
1041
  value: "icon"
1042
+ },
1043
+ {
1044
+ label: "Signpost",
1045
+ value: "signpost"
1046
+ },
1047
+ {
1048
+ label: "Balloon",
1049
+ value: "balloon"
1050
+ },
1051
+ {
1052
+ label: "Anchored Text",
1053
+ value: "anchoredText"
1054
+ },
1055
+ {
1056
+ label: "Anchored Note",
1057
+ value: "anchoredNote"
1042
1058
  }
1043
1059
  ]
1044
1060
  }
@@ -6734,7 +6750,11 @@ var Io = class {
6734
6750
  textAnnotation: "Text",
6735
6751
  anchoredVWAP: "Anchored VWAP",
6736
6752
  volumeProfileRange: "Volume Profile",
6737
- riskReward: "Long/Short Position"
6753
+ riskReward: "Long/Short Position",
6754
+ signpost: "Signpost",
6755
+ balloon: "Balloon",
6756
+ anchoredText: "Anchored Text",
6757
+ anchoredNote: "Anchored Note"
6738
6758
  };
6739
6759
  function zo(e, t) {
6740
6760
  let n = `tool.${e}`, r = t?.(n);
@@ -8265,6 +8285,30 @@ var Ac = {
8265
8285
  border: !0,
8266
8286
  wrap: 240,
8267
8287
  fontSize: 13
8288
+ },
8289
+ signpost: {
8290
+ box: !0,
8291
+ border: !0,
8292
+ wrap: 200,
8293
+ fontSize: 13
8294
+ },
8295
+ balloon: {
8296
+ box: !0,
8297
+ border: !0,
8298
+ wrap: 200,
8299
+ fontSize: 13
8300
+ },
8301
+ anchoredText: {
8302
+ box: !1,
8303
+ border: !1,
8304
+ wrap: 0,
8305
+ fontSize: 14
8306
+ },
8307
+ anchoredNote: {
8308
+ box: !0,
8309
+ border: !0,
8310
+ wrap: 240,
8311
+ fontSize: 13
8268
8312
  }
8269
8313
  }, jc = new Set([
8270
8314
  "trendLine",
@@ -8429,7 +8473,7 @@ var Gc = 12, Kc = "t:", qc = 1, Jc = class {
8429
8473
  return e ? [
8430
8474
  "style",
8431
8475
  ...e.text ? ["text"] : [],
8432
- ...e.anchors.length <= Gc ? ["coordinates"] : [],
8476
+ ...e.coordinates !== !1 && e.anchors.length <= Gc ? ["coordinates"] : [],
8433
8477
  "visibility"
8434
8478
  ] : [];
8435
8479
  }
@@ -12848,6 +12892,7 @@ var Xd = 4, Zd = 1, Qd = 7, $d = 17, ef = 3, tf = 150, nf = 5e3, rf = 8, af = 6e
12848
12892
  textLayout: Ac[n.type],
12849
12893
  textColor: Mc[n.type],
12850
12894
  textPlace: jc.has(n.type),
12895
+ coordinates: r.anchoring !== "screen",
12851
12896
  intervals: n.intervals ?? null
12852
12897
  }, t);
12853
12898
  }