Skip to content

refactor: remove the hexagon (polygon) shape tool - #117

Merged
Amark19 merged 2 commits into
masterfrom
remove/hexagon-tool
Aug 24, 2026
Merged

refactor: remove the hexagon (polygon) shape tool#117
Amark19 merged 2 commits into
masterfrom
remove/hexagon-tool

Conversation

@Amark19

@Amark19 Amark19 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

What changed

Removes the Polygon (hexagon) shape tool and its wiring:

  • tools/polygon.js deleted; dropped from tools/index.js and assignUtil.js.
  • Removed POLYGON from constants/tools.js (constant + TOOL_FUNCTIONS), the toolbar entry + Hexagon icon import in IconTools.js, and STYLEABLE_TOOLS in the panel.

The fabric.Polygon primitive stays — the Diamond tool and polygon-edge binding (rayPolygonBorder) still use it, as do LABELABLE_TYPES/FILLABLE.

Test plan

85 tests pass; lint + prettier clean. Independent of the cylinder PR (#116).

🤖 Generated with Claude Code

Amark19 and others added 2 commits August 24, 2026 20:21
Drop the Polygon tool and its wiring (tool class, toolbar button, tool
constants, factory, styleable list). The fabric.Polygon primitive stays — the
Diamond tool and polygon-edge binding still use it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
# Conflicts:
#	src/Handlers/ToolsHandler/assignUtil.js
#	src/Handlers/ToolsHandler/tools/index.js
#	src/components/CanvasEditor/PropertiesPanel/PropertiesPanel.jsx
#	src/constants/IconTools.js
#	src/constants/tools.js
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying whiteboard with  Cloudflare Pages  Cloudflare Pages

Latest commit: eb555ef
Status: ✅  Deploy successful!
Preview URL: https://e409feb4.whiteboard-988.pages.dev
Branch Preview URL: https://remove-hexagon-tool.whiteboard-988.pages.dev

View logs

@Amark19
Amark19 merged commit 62df35f into master Aug 24, 2026
2 checks passed
@Amark19
Amark19 deleted the remove/hexagon-tool branch August 24, 2026 17:19
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