From 735de46552f235a2843c021e1342d898ac79c0e4 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Wed, 18 Nov 2026 17:54:18 -0800 Subject: [PATCH] Fill Area: tool.setOption accepts the Shape Builder options it shares main now checks every option tool.setOption gets against the tool before setting any, and a tool without its own check rejects every option. The Fill Area tool now checks its options with check_builder_options, as the Shape Builder does, so gapDetection, gapLength and openFilledAsClosed are accepted again and other keys or bad values are still errors. --- crates/tools/src/builder/fill_area.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/tools/src/builder/fill_area.rs b/crates/tools/src/builder/fill_area.rs index a3950fd997..f38c69b723 100644 --- a/crates/tools/src/builder/fill_area.rs +++ b/crates/tools/src/builder/fill_area.rs @@ -552,4 +552,7 @@ impl Tool for FillAreaTool { } self.hover = None; } + fn check_option(&self, key: &str, v: &Value) -> Result<(), String> { + check_builder_options(self.id(), &serde_json::Map::from_iter([(key.to_string(), v.clone())])) + } }