Skip to content

fix(figure): register rectText figure and fix bounding box selection#1

Open
Princelion33 wants to merge 3 commits into
evotrader:mainfrom
Princelion33:main
Open

fix(figure): register rectText figure and fix bounding box selection#1
Princelion33 wants to merge 3 commits into
evotrader:mainfrom
Princelion33:main

Conversation

@Princelion33

Copy link
Copy Markdown

Description

This PR resolves the issue where the text annotation overlay disappeared/failed to render and could not be selected or dragged due to the missing registration of the custom rectText figure in TradingChest.

Changes

  • Added @types/react in devDependencies to fix TypeScript compilation errors.
  • Created src/extension/rectText.ts containing the figure template (drawing and event check logic).
  • Implemented checkEventOn for rectText to calculate the text bounding box so mouse events (drag/select/right-click) work correctly.
  • Registered the rectText figure in src/index.ts via registerFigure(rectText).

Verification

Successfully compiled and verified that text annotations render correctly and can be dragged/selected.

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