@tradecanvas/commons 1.13.0 → 1.16.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.
package/dist/index.js CHANGED
@@ -42,6 +42,18 @@ var e = /* @__PURE__ */ function(e) {
42
42
  "sessionBreaks.style": "lineStyle",
43
43
  "sessionBreaks.width": "width",
44
44
  "highLow.color": "color",
45
+ "trading.buyColor": "color",
46
+ "trading.sellColor": "color",
47
+ "trading.profitColor": "color",
48
+ "trading.lossColor": "color",
49
+ "trading.entryColor": "color",
50
+ "markers.longColor": "color",
51
+ "markers.shortColor": "color",
52
+ "markers.neutralColor": "color",
53
+ "tradeZones.profitColor": "color",
54
+ "tradeZones.lossColor": "color",
55
+ "tradeZones.activeColor": "color",
56
+ "drawings.handleColor": "color",
45
57
  "series.candlestick.upColor": "color",
46
58
  "series.candlestick.downColor": "color",
47
59
  "series.candlestick.wickUpColor": "color",
@@ -1088,7 +1100,7 @@ function G(e, t, n) {
1088
1100
  };
1089
1101
  }
1090
1102
  function Kt(e, t, n) {
1091
- let { style: r, ...i } = e, a = n, o = (e) => a[e], s = Gt(i, o, t), c = o("background.color") ?? i.background, l = (e, t) => o(e) ?? t, u = {
1103
+ let { style: r, ...i } = e, a = n, o = (e) => a[e], s = Gt(i, o, t), c = o("background.color") ?? i.background, l = (e, t) => o(e) ?? t, u = (e) => o(e) ?? null, d = {
1092
1104
  panes: {
1093
1105
  background: l("panes.background", c),
1094
1106
  separator: l("panes.separatorColor", i.axisLine),
@@ -1152,7 +1164,25 @@ function Kt(e, t, n) {
1152
1164
  width: o("sessionBreaks.width") ?? null
1153
1165
  },
1154
1166
  highLow: { color: o("highLow.color") ?? null },
1155
- series: { lineWidth: s.lineWidth }
1167
+ series: { lineWidth: s.lineWidth },
1168
+ trading: {
1169
+ buy: u("trading.buyColor"),
1170
+ sell: u("trading.sellColor"),
1171
+ profit: u("trading.profitColor"),
1172
+ loss: u("trading.lossColor"),
1173
+ entry: u("trading.entryColor")
1174
+ },
1175
+ markers: {
1176
+ long: u("markers.longColor"),
1177
+ short: u("markers.shortColor"),
1178
+ neutral: u("markers.neutralColor")
1179
+ },
1180
+ tradeZones: {
1181
+ profit: u("tradeZones.profitColor"),
1182
+ loss: u("tradeZones.lossColor"),
1183
+ active: u("tradeZones.activeColor")
1184
+ },
1185
+ drawings: { handle: u("drawings.handleColor") }
1156
1186
  };
1157
1187
  return {
1158
1188
  ...i,
@@ -1166,7 +1196,7 @@ function Kt(e, t, n) {
1166
1196
  areaBottomColor: s.bottom,
1167
1197
  volumeUp: l("volume.upColor", i.volumeUp),
1168
1198
  volumeDown: l("volume.downColor", i.volumeDown),
1169
- style: u
1199
+ style: d
1170
1200
  };
1171
1201
  }
1172
1202
  var qt = {
@@ -1193,7 +1223,19 @@ var qt = {
1193
1223
  "sessionBreaks.color": (e, t) => t.sessionBreaks.color,
1194
1224
  "sessionBreaks.style": (e, t) => t.sessionBreaks.style,
1195
1225
  "sessionBreaks.width": (e, t) => t.sessionBreaks.width,
1196
- "highLow.color": (e, t) => t.highLow.color
1226
+ "highLow.color": (e, t) => t.highLow.color,
1227
+ "trading.buyColor": (e, t) => t.trading.buy,
1228
+ "trading.sellColor": (e, t) => t.trading.sell,
1229
+ "trading.profitColor": (e, t) => t.trading.profit,
1230
+ "trading.lossColor": (e, t) => t.trading.loss,
1231
+ "trading.entryColor": (e, t) => t.trading.entry,
1232
+ "markers.longColor": (e, t) => t.markers.long,
1233
+ "markers.shortColor": (e, t) => t.markers.short,
1234
+ "markers.neutralColor": (e, t) => t.markers.neutral,
1235
+ "tradeZones.profitColor": (e, t) => t.tradeZones.profit,
1236
+ "tradeZones.lossColor": (e, t) => t.tradeZones.loss,
1237
+ "tradeZones.activeColor": (e, t) => t.tradeZones.active,
1238
+ "drawings.handleColor": (e, t) => t.drawings.handle
1197
1239
  }, Jt = {
1198
1240
  visible: "visible",
1199
1241
  color: "color",