@node-projects/web-component-designer 0.1.39 → 0.1.41
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.
|
@@ -118,7 +118,7 @@ export class AbstractPropertiesService {
|
|
|
118
118
|
this._bindingsCacheClearTimer = setTimeout(() => AbstractPropertiesService._bindingsCache.clear(), 30);
|
|
119
119
|
}
|
|
120
120
|
if (property.propertyType == PropertyType.cssValue) {
|
|
121
|
-
if (bindings && bindings.find(x => x.target == BindingTarget.css && x.targetName == property.name))
|
|
121
|
+
if (bindings && bindings.find(x => (x.target == BindingTarget.css || x.target == BindingTarget.cssvar) && x.targetName == property.name))
|
|
122
122
|
return ValueType.bound;
|
|
123
123
|
}
|
|
124
124
|
else {
|
|
@@ -190,7 +190,7 @@ export class AbstractPropertiesService {
|
|
|
190
190
|
});
|
|
191
191
|
if (bindings != null) {
|
|
192
192
|
if (property.propertyType == PropertyType.cssValue) {
|
|
193
|
-
return bindings.find(x => (x.target == BindingTarget.css) && x.targetName == property.name);
|
|
193
|
+
return bindings.find(x => (x.target == BindingTarget.css || x.target == BindingTarget.cssvar) && x.targetName == property.name);
|
|
194
194
|
}
|
|
195
195
|
else {
|
|
196
196
|
return bindings.find(x => (x.target == BindingTarget.property || x.target == BindingTarget.attribute) && x.targetName == property.name);
|
|
@@ -33,6 +33,9 @@ export class CssCustomPropertiesService extends CommonPropertiesService {
|
|
|
33
33
|
super.clearValue(designItems, property, clearType);
|
|
34
34
|
}
|
|
35
35
|
getValue(designItems, property) {
|
|
36
|
+
let val = designItems[0].getStyle(property.name);
|
|
37
|
+
if (val)
|
|
38
|
+
return val;
|
|
36
39
|
return getComputedStyle(designItems[0].element).getPropertyValue(property.name);
|
|
37
40
|
}
|
|
38
41
|
getUnsetValue(designItems, property) {
|