feat: enhance layer mask handling and opacity management
- Introduced `getLayerMask` utility to streamline layer mask retrieval. - Updated layer rendering logic to incorporate layer masks and opacity adjustments. - Added functionality to prevent dropping a group into its descendants. - Enhanced image texture rendering to support opacity parameters across various rendering functions. - Implemented group layer bounds application for better scaling and positioning. - Added tests to ensure correct behavior when handling layer masks and group layers. - Created new types for asset generation provenance to track generated assets more effectively.
This commit is contained in:
@@ -41,6 +41,10 @@ describe("layers panel input", () => {
|
||||
});
|
||||
});
|
||||
|
||||
test("does not resolve dropping a group into one of its descendants", () => {
|
||||
expect(resolveLayerDrop({ document, sourceLayerId: "g", target: { artboardId: "a1", layer: group("c") }, verticalRatio: 0.5 })).toBeUndefined();
|
||||
});
|
||||
|
||||
test("dispatches delete commands for selected layers", () => {
|
||||
const dispatched: unknown[] = [];
|
||||
const consumed = handleDeleteSelectionKey({
|
||||
|
||||
Reference in New Issue
Block a user