Attribute: Füllungs-Transparenz (nur Fläche), Schraffur-Auswahl ohne doppeltes 'Ohne', Platzierung nur bei sichtbarer Schraffur
This commit is contained in:
1 parent
73183cc307
commit
4b2e02b37a
8 files changed
+131
-4
No files matched your search
@@ -470,6 +470,17 @@ export function usePanelHostBase(opts: {
|
||||
if (selection?.kind === "drawing2d")
|
||||
setElementFillColor(selection.id, color);
|
||||
},
|
||||
onSetSelectionFillOpacity: (opacity) => {
|
||||
if (selection?.kind === "drawing2d")
|
||||
setProject((p) => ({
|
||||
...p,
|
||||
drawings2d: p.drawings2d.map((d) => {
|
||||
if (d.id !== selection.id) return d;
|
||||
const { fillOpacity: _old, ...rest } = d;
|
||||
return opacity >= 1 ? rest : { ...rest, fillOpacity: Math.max(0, opacity) };
|
||||
}),
|
||||
}));
|
||||
},
|
||||
onSetSelectionOpacity: (opacity) => {
|
||||
// Deckkraft eines 2D-Elements. Bei BILDERN bleibt es die Deckkraft der
|
||||
// Bildgeometrie (bestehendes Verhalten, eigenes Feld); bei allen
|
||||
|
||||
Reference in new issue
Block a user