Skip to content

## [0.9.9] - 2026-04-02 - Drawing Setters, NAMESPACES_LIKE Subscripts & force_overlay Sync#178

Merged
alaa-eddine merged 5 commits intomainfrom
dev
Apr 2, 2026
Merged

## [0.9.9] - 2026-04-02 - Drawing Setters, NAMESPACES_LIKE Subscripts & force_overlay Sync#178
alaa-eddine merged 5 commits intomainfrom
dev

Conversation

@alaa-eddine
Copy link
Copy Markdown
Collaborator

[0.9.9] - 2026-04-02 - Drawing Setters, NAMESPACES_LIKE Subscripts & force_overlay Sync

Fixed

  • NAMESPACES_LIKE subscripts (transpiler): Subscripts on dual-use builtins (time[1], time_close[1], etc.) now emit $.get(name.__value, n) instead of name.__value[n], so lookback matches Pine Script / forward-array Series semantics.
  • Box / line coordinate setters: set_lefttop, set_rightbottom, set_xy1, set_xy2, set_left, set_right, and related setters on box and line helpers now call _resolve() so Series-derived coordinates unwrap the same way as new() constructors.
  • force_overlay on drawing objects: syncToPlot() in BoxHelper, LineHelper, and LabelHelper routes force_overlay=true objects into separate overlay plots so chart integrations can place them on the main price pane.

Added

  • Tests: box-setters-resolve, namespace subscript transpiler coverage, and gradient fill() cases.

…ight, etc. didn't call _resolve() to unwrap Series values, unlike the new() constructors which did.

Fix : PineTS Transpiler - NAMESPACES_LIKE[n] subscript produced name.__value[n] instead of $.get(name.__value, n)
Drawing setter _resolve() - Added _resolve() calls to all coordinate setters in BoxHelper and LineHelper so Series-derived values are properly unwrapped
force_overlay for drawing objects - syncToPlot() in BoxHelper, LineHelper, and LabelHelper now splits force_overlay=true objects into separate overlay plots that render on the main chart pane

Transpiler fix :
NAMESPACES_LIKE[n] subscript - Fixed transformOperand() so time[1] produces $.get(time.__value, 1) instead of time.__value[1]
@alaa-eddine alaa-eddine merged commit ae22fa1 into main Apr 2, 2026
1 check passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant