11
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, inject, computed } from 'vue'
|
||||
import { exportCanvasToImage } from '../tools/exportMethod'
|
||||
import { OperationType } from '../tools/layerHelper'
|
||||
import { OperationType, BlendMode } from '../tools/layerHelper'
|
||||
const props = defineProps({
|
||||
zoom: { default: 1, type: Number },
|
||||
step: { default: 0.1, type: Number }
|
||||
@@ -87,7 +87,9 @@
|
||||
}
|
||||
const onImageClick = async () => {
|
||||
const layer = await importLocalImage(false)
|
||||
objectManager.setFillRepeat(layer?.info?.id)
|
||||
const id = layer?.info?.id
|
||||
objectManager.setBlendMode(id, BlendMode.MULTIPLY)
|
||||
objectManager.setFillRepeat(id)
|
||||
}
|
||||
const onWorkbench = async () => {
|
||||
exportCanvasToImage(canvasManager.canvas).then((url) => {
|
||||
|
||||
Reference in New Issue
Block a user