Skip to content

v0.7.0#19

Merged
alaa-eddine merged 9 commits intomainfrom
dev
Mar 4, 2026
Merged

v0.7.0#19
alaa-eddine merged 9 commits intomainfrom
dev

Conversation

@alaa-eddine
Copy link
Contributor

[0.7.0] - 2026-02-27 - Box, Polyline & Table Renderers, Render Clipping

Added

  • Box Renderer (BoxRenderer): New renderer for Pine Script box.* drawing objects. Renders filled rectangles defined by two corners (left, top)(right, bottom) with configurable fill color, border color/width/style, optional text, and extend mode. Supports 8-digit hex colors (#RRGGBBAA) by converting them to rgba() for ECharts canvas compatibility.
  • Polyline Renderer (PolylineRenderer): New renderer for Pine Script polyline.* drawing objects. Renders multi-point connected paths from an array of chart.point objects, with support for straight or curved segments, optional closed shapes, and fill color.
  • Table Renderer (TableOverlayRenderer): New HTML-based renderer for Pine Script table.* drawing objects. Tables are positioned as DOM overlays anchored to fixed positions (top_left, bottom_center, etc.) rather than data coordinates. Supports cell text, background/text/border colors, full opacity control, and Pine Script's "last table at each position wins" behavior.

Fixed

  • Render Clipping: Fixed custom series rendering for drawing objects (lines, linefills, boxes, polylines) to properly clip to the chart grid area, preventing overflow outside the plot bounds. Updated LayoutManager to expose the grid rect for clipping and rewrote clipping logic across all affected renderers.
  • Constants Compliance: Aligned string constants for label styles, line styles, shape types, and size presets across renderers (LabelRenderer, ShapeRenderer, ShapeUtils, DrawingLineRenderer, LinefillRenderer) to match PineTS constant names. This ensures PineTS output renders correctly without manual constant conversion.

@alaa-eddine alaa-eddine merged commit 8ffcd3c into main Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant