Skip to content

v0.11.0-alpha.10

Changes since v0.11.0-alpha.9

Features

  • Complete workbench delivery (breaking): Ships @363045841yyt/klinechart as the only published package with KlineWorkbench as the single UI entry, bundling internal runtime code, types, and page assets while keeping Vue an external peer; the full product includes AGPL script modules under AGPL-3.0-or-later while internal Apache modules keep their license.
  • Registered market data sources (breaking): Hosts register data sources through createMarketDataHost and inject marketDataContext; controllers no longer accept bar arrays or requesters, history, incremental, trade, and cross-symbol requests share one repository, and market sessions are scoped by symbol and period.
  • Indicator script engine: Adds QuickJS-based TypeScript indicator scripts with defineIndicator, defineLibrary, a unified Plot/Fill API (Line, Box, Label, chars, arrows, hline, bands, OHLC), request.security cross-period data, ta.direction helpers, and the Timeframe enum, while trusted scripts bypass QuickJS and run directly.
  • Builtin indicators as scripts (breaking): Migrates MACD, SuperTrend, moving averages, channels, Fib/FRAMA, AO/CCI/HMA/KST/DMA, SMC, and all maxsum indicators to script definitions with display metadata shipped alongside, dropping the duplicate core implementations.
  • Script libraries and multi-tab workspace: The script workspace supports user libraries, multiple tabs, folders, search, save, and run, and libraries can be imported by indicator scripts with trust validation.
  • Detached editor page and language service: The editor page builds on demand with self-contained JS/CSS and shares a single CodeMirror instance with the host; the language service adds completion, hover docs, navigation, and rename, with detached windows syncing cloneable data only.
  • Theme-aware script colors: Script colors resolve through theme tokens, so editor panels, syntax highlighting, and chart drawing follow the effective theme.
  • Design Token v2 and interaction primitives: Rebuilds design tokens and the keyboard-shortcut system, unifies interaction primitives and shared control styling, and refreshes light mode and chart chrome.
  • Footprint rebuild (breaking): Turns FootPrint into a standalone candle display mode backed by Binance aggregated trades, with adaptive row sizing, traded-amount cells, volume-based imbalance, and legend title and loading state.
  • Unified legend (breaking): Consolidates legend CRUD, projection, and actions into the core LegendManager, renders titles, params, and values through DOM, and adds hide/show plus indicator settings.
  • Layout and settings persistence (breaking): Persists chart settings, toolbar management, viewport position, and user drawings through layout documents, with layout naming in a dialog and a stable list order.
  • Visible GPU surface and draw targets: The main band can present a visible GPU surface through createSurface, draw-list layers no longer carry ctx, and each target composites once.
  • Agent panel docking: The Agent panel docks on either side, the provider settings dialog is reworked, and locked sessions are retryable.
  • UI details: Shows price and change in the document title, adds a command-palette button, renders footer dropdown triggers as text actions, prefixes crosshair time labels with the weekday, and supports drawing label offsets with a 2000-drawing cap.

Fixes

  • Editor opened before the script service is ready: Hides the editor entry until the asynchronous script service has initialised, so no template-less, unrunnable draft can be created.
  • Self-contained script worker: Inlines the editor page chunks and worker, fixing user scripts that failed on their first run in the published package.
  • Single editor instance: Externalises CodeMirror so the dialog and the detached window no longer load separate copies.
  • Indicator identity and main-chart script drawing: Unifies indicator instance identity, fixes main-chart script drawing, parameter save targets, and legend action anchoring.
  • Backends and paint order: Restores segment rendering on every backend and fixes sub-pane crosshair labels, time-axis sizing, fill colors, and data-space batching.
  • Market data and subscriptions: Fixes live-bar capability and stream identity, runtime connector request capabilities, offline source search, and subscriber error isolation.
  • UI regressions: Fixes pane separator stacking, legend insets, chart brand anchoring, screenshot borders and axis-control exclusion, shrinking toolbar buttons, duplicated menu headings, and checkmark padding.
  • Devices and theme: Desktop-UA tablets no longer start the language-service worker, and dark-preset crosshair tags stay dark.

Architecture & Refactoring

  • Delivery split (breaking): Separates the Web Component and editor page from the product package, delivers the product only through Vue, and decouples internal package versions from the product.
  • Script service and editor units: Splits the script service into document reads, executor, persistence, and folder operations, and the editor into session and window units so running and saving stay independent.
  • Core module relocation: Extracts chart and pane modules, relocates comparison, scale, labels, frame, and market modules, and removes dead exports, duplicate fallbacks, and unintegrated rendering paths.
  • Vue semantic folders and aliases: Groups components and composables into semantic folders and routes cross-directory imports through the @vue-src and @/ aliases.
  • License boundary: Physically isolates AGPL script packages from Apache packages and ships module licenses and third-party notices with the product.

Performance

  • Render batching: Composites once per target, replays text batches once on Canvas, reuses bar buffers and culls invisible rects, and replaces target-level MSAA with analytic anti-aliasing.
  • Indicators and drawings: Loads indicator implementations on demand, indexes plot bounds by block for visible ranges, avoids frame-array cloning during timeline projection, and culls off-range drawings before projection.
  • Layouts and dev experience: Stops rearming the autosave timer on every viewport change and caps the dev-server rolldown worker pool to cut memory.

Engineering

  • Product release pipeline: Chains build:product, pack:product, and test:product, uploads only the tarball that passed isolated consumer acceptance (public types, production build, source-vs-packed screenshots, real script execution), and publishes only with a matching verified.json.
  • CI gates: Runs type checks, package tests, and attw on both Node lines, bounds package-test concurrency, and temporarily demotes the UI token gate to a warning.
  • Benchmarks: Adds resolution presets with 1080p/2k charts and a report pipeline that renders benchmark charts.
  • Dependencies and hygiene: Bumps typebox, happy-dom, @types/node, and style-dictionary, removes Playwright and one-off scripts, and adds a PR template.

Documentation

  • Product and data-source docs: Documents the Vue product delivery and the data-source API, and rewrites the README install, usage, and script sections.
  • Design docs: Syncs the rendering pipeline, CSS cascade, pane layout data flow, market-loading lifecycle, and removed-legacy-layer records.

On this page