viainti-chart 1.0.5 → 1.1.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
@@ -87,6 +87,28 @@ export function InlineCard() {
87
87
 
88
88
  `showStats={false}` elimina las tarjetas de “Trading range / Avg volume / Volatility” y `showHeaderStats={false}` oculta la banda superior (símbolo + O/H/L/C/V) y el footer “Feed Binance Composite”. Para verlo en vivo ejecuta `npm run dev` y abre `http://localhost:5173?mode=simple`; cambia a `?mode=advanced` para volver al layout completo.
89
89
 
90
+ ### Modo simple (sin toolbar de dibujo)
91
+
92
+ ```tsx
93
+ import { TradingViewChart, OHLCData } from 'viainti-chart';
94
+
95
+ const cached: OHLCData[] = [...];
96
+
97
+ export function SimpleMode() {
98
+ return (
99
+ <TradingViewChart
100
+ data={cached}
101
+ symbol="BTC/USDT"
102
+ showStats={false}
103
+ showHeaderStats={false}
104
+ showDrawingToolbar={false}
105
+ />
106
+ );
107
+ }
108
+ ```
109
+
110
+ `showDrawingToolbar={false}` replica el comportamiento del parámetro `?mode=simple` del demo (`ModeToggle` en `example/App.tsx`) y es la forma recomendada de embebir el chart compacto en producción.
111
+
90
112
  ## API
91
113
 
92
114
  ### `<TradingViewChart />`
@@ -124,6 +146,14 @@ interface OHLCData {
124
146
  - ⚙️ **Config popover** – switch languages or color schemes without leaving the canvas.
125
147
  - 🎨 **Theme support** – Dark, blue, and light themes with custom options.
126
148
 
149
+ ## Release 1.1.0
150
+
151
+ - **Crosshair pro** con snap al candle, labels en ambos ejes y tooltip OHLC+Volumen.
152
+ - **AutoScale Y robusto** (rango podado + padding 6‑10 %) y línea de último precio con badge de variación.
153
+ - **Grid mayor/menor + ticks adaptativos** que evitan colisiones según el zoom.
154
+ - **Pane de volumen dedicado** (colores up/down), highlight al hover y watermark integrado al snapshot PNG.
155
+ - **Render fraccionado** (canvas base + overlay) listo para `npm publish` vía Rollup (`dist/index.{cjs,mjs,d.ts}`).
156
+
127
157
  ## Building the library
128
158
 
129
159
  ```bash