fix: 修复遮罩错误问题
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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">
|
||||||
<!-- 红绿图模式示例 -->
|
<!-- 红绿图模式示例 -->
|
||||||
|
|||||||
Reference in New Issue
Block a user