openalgo-charts 1.4.0 → 1.5.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/README.md CHANGED
@@ -269,7 +269,7 @@ npm run verify # typecheck + test + build + size
269
269
 
270
270
  ## Status & limitations
271
271
 
272
- Version **1.4.0**. All engine build phases are implemented with 1727 unit tests across 91 files.
272
+ Version **1.5.0**. All engine build phases are implemented with 1734 unit tests across 91 files.
273
273
 
274
274
  Known gaps, stated plainly:
275
275
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /** Library version string. Matches package.json (published npm release). */
2
- declare const VERSION = "1.4.0";
2
+ declare const VERSION = "1.5.0";
3
3
  /** Returns the current library version. */
4
4
  declare function version(): string;
5
5
 
@@ -530,6 +530,8 @@ interface SeriesStyle {
530
530
  wickDownColor?: string;
531
531
  borderVisible?: boolean;
532
532
  wickVisible?: boolean;
533
+ /** Paint candle bodies. Off leaves outline and wick. Default true. */
534
+ bodyVisible?: boolean;
533
535
  hollow?: boolean;
534
536
  /**
535
537
  * Color bars by close-versus-previous-close instead of close-versus-own-open,
@@ -3637,6 +3639,17 @@ interface CandleStyle {
3637
3639
  wickDownColor: string;
3638
3640
  borderVisible: boolean;
3639
3641
  wickVisible: boolean;
3642
+ /**
3643
+ * Paint the body at all. Off leaves the candle as its outline and wick, which
3644
+ * is what a settings dialog's "Body" switch means.
3645
+ *
3646
+ * Distinct from `hollow`, which empties only the UP candles and is the
3647
+ * hollow-candle chart type. This empties both, and it is the one switch here
3648
+ * that can legitimately leave nothing drawn: with borders off as well, a
3649
+ * candle is reduced to its wick. That is two deliberate switches rather than
3650
+ * an accident, so it is honoured rather than second-guessed.
3651
+ */
3652
+ bodyVisible?: boolean;
3640
3653
  /** Draw up-candle bodies as outlines only (hollow candles). */
3641
3654
  hollow?: boolean;
3642
3655
  /**