mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
color picker behavior update
This commit is contained in:
parent
fedc3ea5a3
commit
22e43bd988
3 changed files with 11 additions and 8 deletions
|
|
@ -331,6 +331,7 @@ function createPicker(hatching) {
|
|||
const closePicker = () => container.remove();
|
||||
|
||||
const container = d3.select("body").append("svg").attr("id", "pickerContainer").attr("width", "100%").attr("height", "100%");
|
||||
container.append("rect").attr("width", "100%").attr("height", "100%").attr("opacity", 0).on("mousemove", cl).on("click", closePicker);
|
||||
const picker = container.append("g").attr("id", "picker").call(d3.drag().filter(() => event.target.tagName !== "INPUT").on("start", dragPicker));
|
||||
|
||||
const controls = picker.append("g").attr("id", "pickerControls");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue