Feat:如果没有注册Painter插件,那么节点实例不保存effectiveStyles数据
This commit is contained in:
parent
8414d39c4c
commit
a55afdd252
@ -112,6 +112,8 @@ class Style {
|
|||||||
|
|
||||||
// 更新当前节点生效的样式数据
|
// 更新当前节点生效的样式数据
|
||||||
addToEffectiveStyles(styles) {
|
addToEffectiveStyles(styles) {
|
||||||
|
// effectiveStyles目前只提供给格式刷插件使用,所以如果没有注册该插件,那么不需要保存该数据
|
||||||
|
if (!this.ctx.mindMap.painter) return
|
||||||
this.ctx.effectiveStyles = {
|
this.ctx.effectiveStyles = {
|
||||||
...this.ctx.effectiveStyles,
|
...this.ctx.effectiveStyles,
|
||||||
...styles
|
...styles
|
||||||
|
|||||||
@ -1,8 +1,7 @@
|
|||||||
import {
|
import {
|
||||||
isWhite,
|
isWhite,
|
||||||
isTransparent,
|
isTransparent,
|
||||||
getVisibleColorFromTheme,
|
getVisibleColorFromTheme
|
||||||
readBlob
|
|
||||||
} from '../utils/index'
|
} from '../utils/index'
|
||||||
|
|
||||||
// 小地图插件
|
// 小地图插件
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user