diff --git a/packages/core/src/css_composer/index.ts b/packages/core/src/css_composer/index.ts index f7106d6f1..562b77bff 100644 --- a/packages/core/src/css_composer/index.ts +++ b/packages/core/src/css_composer/index.ts @@ -254,7 +254,7 @@ export default class CssComposer extends ItemManagerModule extends Model model: this, em: this.em!, dataVariable: dataVar, - updateValueFromDataVariable: (newValue: string) => this.updateStyleProp(styleProp, newValue), + updateValueFromDataVariable: () => this.updateView(), }); } } - /** - * Update a specific style property - */ - updateStyleProp(prop: string, value: string) { - const style = this.getStyle(); - style[prop] = value; - this.setStyle(style, { noEvent: true }); - this.trigger(`change:style:${prop}`); - this.updateView(); - } - getView(frame?: Frame) { let { views, em } = this; const frm = frame || em?.getCurrentFrameModel();