feat: add background fill functionality for layers
- Implemented FillLayerBackgroundCommand to fill the background of layers with a specified color. - Introduced BackgroundFillManager to manage background fill operations. - Updated LayerManager to include fillLayerBackground method. - Enhanced LayersPanel with a color picker for filling layer backgrounds. - Modified RasterizeLayerCommand to reflect changes in terminology and functionality. - Adjusted LayerSort to ensure filled layers are rendered at the correct z-index. - Updated relevant utility functions and components to support new fill feature.
This commit is contained in:
1
src/assets/icons/CThemeColor.svg
Normal file
1
src/assets/icons/CThemeColor.svg
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1752460567249" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3540" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M876.8 176h-294.4l-67.2 134.4H137.6v128H16l121.6 409.6h806.4v-672z m-230.4 67.2h227.2v67.2h-259.2z m176 195.2H211.2v-60.8h665.6v243.2z" fill="#D8987C" p-id="3541"></path><path d="M873.6 540.192a250.464 250.464 0 0 1 50.4 45.408 149.312 149.312 0 0 1 5.44 194.784 165.856 165.856 0 0 1-101.184 56.48 298.464 298.464 0 0 1-108.192-2.336 352.416 352.416 0 0 0-51.488-5.632 28.8 28.8 0 0 0-33.568 23.648 30.24 30.24 0 0 0 5.76 23.744 339.616 339.616 0 0 0 27.136 35.456 69.728 69.728 0 0 1 16.928 31.68 25.184 25.184 0 0 1-15.712 30.272 203.776 203.776 0 0 1-100.448 17.664 479.36 479.36 0 0 1-247.552-81.76 218.816 218.816 0 0 1-93.696-141.312 187.904 187.904 0 0 1 32-145.408 325.76 325.76 0 0 1 138.176-115.2 481.728 481.728 0 0 1 373.44-19.2c1.344 0.64 100.256 53.664 102.56 51.712z" fill="#A86749" p-id="3542"></path><path d="M359.872 725.632a79.136 79.136 0 0 1 51.04 16.448 36.032 36.032 0 0 1 10.24 49.056 35.2 35.2 0 0 1-10.24 10.496 88.608 88.608 0 0 1-102.4 0 36.096 36.096 0 0 1-10.528-49.12 34.752 34.752 0 0 1 10.752-10.944 78.784 78.784 0 0 1 51.136-15.936z" fill="#3783FF" p-id="3543"></path><path d="M350.88 685.792a61.568 61.568 0 0 1-37.504-11.872 28.8 28.8 0 0 1-9.6-38.848 27.872 27.872 0 0 1 9.28-9.6 67.616 67.616 0 0 1 78.656 0.8 28.352 28.352 0 0 1 7.52 38.784 27.648 27.648 0 0 1-7.2 7.488 62.496 62.496 0 0 1-41.152 13.248z" fill="#4DE94C" p-id="3544"></path><path d="M451.488 591.68a46.88 46.88 0 0 1-34.304-12.32 23.072 23.072 0 0 1-2.784-32 26.048 26.048 0 0 1 2.784-2.848 52.992 52.992 0 0 1 67.968 0 23.072 23.072 0 0 1 2.784 32 21.696 21.696 0 0 1-4.096 3.936 47.552 47.552 0 0 1-32.352 11.232z" fill="#FFEE00" p-id="3545"></path><path d="M507.456 813.184a89.6 89.6 0 0 1 57.376 18.176 39.488 39.488 0 0 1 11.936 53.664 38.4 38.4 0 0 1-11.936 12.224 101.024 101.024 0 0 1-115.2 0 39.584 39.584 0 0 1-12.48-53.696 38.56 38.56 0 0 1 12.8-12.8 89.6 89.6 0 0 1 57.504-17.568z" fill="#4C1AC6" p-id="3546"></path><path d="M992 430.912a185.152 185.152 0 0 1-36.832 61.088 1493.056 1493.056 0 0 1-119.968 130.688 16.416 16.416 0 0 1-17.184 6.048 21.92 21.92 0 0 1-8.032-4.896q-13.728-13.088-27.008-26.656a15.2 15.2 0 0 1-2.432-20.896 17.824 17.824 0 0 1 1.664-1.824 21.248 21.248 0 0 1 1.632-1.76 1551.104 1551.104 0 0 1 131.456-118.4 272 272 0 0 1 45.472-30.272 81.824 81.824 0 0 1 16.224-6.048 11.296 11.296 0 0 1 14.912 6.208v0.224z" fill="#2A3E4F" p-id="3547"></path><path d="M640 734.816a2.56 2.56 0 0 1 0.96 0.192A72.288 72.288 0 0 0 736 720a49.248 49.248 0 0 0 13.184-38.72 37.536 37.536 0 0 0-32-32.192 32.8 32.8 0 0 0-29.536 13.056 49.504 49.504 0 0 0-9.088 21.024A82.368 82.368 0 0 1 640 734.016z" fill="#7E8C8D" p-id="3548"></path><path d="M805.12 633.344c-10.432-10.464-20.992-20.832-31.52-31.232a7.552 7.552 0 0 0-10.752-1.536 7.648 7.648 0 0 0-1.984 2.304q-13.408 17.408-26.592 34.944a7.008 7.008 0 0 0 0.256 9.6l0.352 0.32q11.808 11.712 23.648 23.296a7.104 7.104 0 0 0 10.144 0.8c12-8.864 24.032-17.728 35.84-26.848a25.6 25.6 0 0 0 4.352-6.4 37.28 37.28 0 0 0-3.744-5.248z" fill="#F89B36" p-id="3549"></path><path d="M571.648 547.872a36.64 36.64 0 0 1-27.488-10.272 19.744 19.744 0 0 1-1.536-27.392l1.536-1.6a41.184 41.184 0 0 1 54.4 0 19.744 19.744 0 0 1 1.536 27.424 18.656 18.656 0 0 1-2.56 2.464 37.28 37.28 0 0 1-25.888 9.376z" fill="#FF8C00" p-id="3550"></path><path d="M640 734.816s125.28-36.352 85.088-83.648c0 0-27.424-12.576-46.528 32.224A125.664 125.664 0 0 1 640 734.816z" fill="#8F9FA0" p-id="3551"></path><path d="M745.76 658.72l43.968-40.704-16-16a7.648 7.648 0 0 0-10.976-1.248 7.072 7.072 0 0 0-1.76 2.016c-6.4 8.288-36.896 34.24-26.016 45.024z" fill="#E9BB42" p-id="3552"></path><path d="M796.064 610.336L992 424.128s1.312-12.576-14.976-6.4-25.6-5.664-194.976 156.64c0 0-12.48 9.6 0.768 22.72z" fill="#32495D" p-id="3553"></path><path d="M695.072 557.12a36.832 36.832 0 0 1-27.488-10.272 19.744 19.744 0 0 1-1.536-27.424 17.76 17.76 0 0 1 1.536-1.568 41.184 41.184 0 0 1 54.4 0 19.744 19.744 0 0 1 1.536 27.36 17.568 17.568 0 0 1-2.624 2.496 36.992 36.992 0 0 1-25.824 9.408z" fill="#F60000" p-id="3554"></path></svg>
|
||||
|
After Width: | Height: | Size: 4.3 KiB |
Reference in New Issue
Block a user