@lancom/shared 0.0.330 → 0.0.331
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="EditorWorkspaceSide__wrapper"
|
|
4
|
-
:style="
|
|
5
|
-
'background-color': backgroundColor
|
|
6
|
-
}"
|
|
4
|
+
:style="backgroundColor"
|
|
7
5
|
:class="{
|
|
8
6
|
'EditorWorkspaceSide__wrapper--zoom-in': isZoomed
|
|
9
7
|
}"
|
|
@@ -86,6 +84,7 @@ import { COLORS_IMAGES_TYPES } from '@lancom/shared/assets/js/constants/colors';
|
|
|
86
84
|
import FabricHelper from '@lancom/shared/assets/js/utils/fabric-helper';
|
|
87
85
|
import { findParentByPredicate } from '@lancom/shared/assets/js/utils/dom';
|
|
88
86
|
import Breakpoints from '@lancom/shared/assets/js/utils/breakpoints';
|
|
87
|
+
import { getColorBackgroundStyle } from '@lancom/shared/assets/js/utils/colors';
|
|
89
88
|
|
|
90
89
|
export default {
|
|
91
90
|
name: 'EditorWorkspaceSide',
|
|
@@ -182,7 +181,7 @@ export default {
|
|
|
182
181
|
return code === 'rect10';
|
|
183
182
|
},
|
|
184
183
|
backgroundColor() {
|
|
185
|
-
return this.backgroundImageLoaded && this.editableColor
|
|
184
|
+
return this.backgroundImageLoaded && getColorBackgroundStyle(this.editableColor);
|
|
186
185
|
},
|
|
187
186
|
isZoomed() {
|
|
188
187
|
return !!this.zoomSize;
|