Skip to content

Add new pathsim blocks: Divider, logic, Atan2, Rescale, Alias#264

Open
milanofthe wants to merge 2 commits intomainfrom
feature/new-blocks
Open

Add new pathsim blocks: Divider, logic, Atan2, Rescale, Alias#264
milanofthe wants to merge 2 commits intomainfrom
feature/new-blocks

Conversation

@milanofthe
Copy link
Member

Summary

Integrates all new blocks from pathsim v0.18.0 into pathview.

New blocks added:

  • Algebraic: Divider, Atan2, Rescale, Alias
  • Logic (new category): GreaterThan, LessThan, Equal, LogicAnd, LogicOr, LogicNot

Changes:

  • blocks.json — added new blocks to Algebraic, new Logic category
  • uiConfig.tsDivider gets portLabelParams (same as Adder), Rescale/Alias added to syncPortBlocks
  • nodes.ts — added Logic to NodeCategory type
  • shapes/registry.ts — Logic category mapped to diamond shape
  • python.ts — added Logic to BLOCK_CATEGORY_ORDER
  • generated/blocks.ts — regenerated via npm run extract

Test plan

  • Build succeeds
  • Verify blocks appear in sidebar under correct categories
  • Verify Divider port labels update from operations param
  • Verify logic blocks have diamond shape and correct fixed ports

🤖 Generated with Claude Code

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