深度画布bug
This commit is contained in:
@@ -3,13 +3,13 @@ import { reactive, readonly } from "vue";
|
||||
class texturePresetManager { }
|
||||
|
||||
export class BrushState {
|
||||
constructor(options) {
|
||||
constructor(options = {}) {
|
||||
this.state = reactive({
|
||||
// 笔刷基础属性
|
||||
size: 5, // 笔刷大小
|
||||
color: "#000000", // 笔刷颜色
|
||||
opacity: 1, // 笔刷透明度
|
||||
type: "pencil", // 当前笔刷类型
|
||||
size: options.size || 5, // 笔刷大小
|
||||
color: options.color || "#000000", // 笔刷颜色
|
||||
opacity: options.opacity || 1, // 笔刷透明度
|
||||
type: options.type || "pencil", // 当前笔刷类型
|
||||
|
||||
// 阴影相关属性
|
||||
shadowEnabled: false, // 是否启用阴影
|
||||
|
||||
Reference in New Issue
Block a user