fix: 修复遮罩错误问题

This commit is contained in:
bighuixiang
2025-08-24 17:11:04 +08:00
parent 594bf5ce0a
commit cfe449f094
2 changed files with 7 additions and 4 deletions

View File

@@ -175,8 +175,11 @@ export class TransformCommand extends Command {
clippingMaskFabricObject.dirty = true; clippingMaskFabricObject.dirty = true;
clippingMaskFabricObject.setCoords(); clippingMaskFabricObject.setCoords();
const clippingMask = this.parent.clippingMask; // const clippingMask = this.parent.clippingMask;
object.clipPath = clippingMask; // object.clipPath = clippingMask;
object.clipPath = clippingMaskFabricObject;
object.dirty = true;
} }
} }

View File

@@ -182,13 +182,13 @@ const isShowLeft = ref(true);
<template> <template>
<div class="app-container-example"> <div class="app-container-example">
<!-- 模拟左侧导航栏 --> <!-- 模拟左侧导航栏 -->
<div <!-- <div
class="app-wrapper-btns" class="app-wrapper-btns"
:class="{ hide: !isShowLeft }" :class="{ hide: !isShowLeft }"
@click="isShowLeft = !isShowLeft" @click="isShowLeft = !isShowLeft"
> >
<div class="app-btn">收起/展开</div> <div class="app-btn">收起/展开</div>
</div> </div> -->
<!-- 内容区域 --> <!-- 内容区域 -->
<div class="app-content"> <div class="app-content">
<!-- 红绿图模式示例 --> <!-- 红绿图模式示例 -->