er
          // now set the data.value for real
          e.diagram.model.commit((m) => {
            m.set(obj.part.data, 'value', val);
          }, 'dragged slider');
        },
        actionCancel: (e, obj) => {
          obj._dragging = false;
          e.diagram.model.commit((m) => {
            m.set(obj.part.data, 'value', obj._original);
          }, null); // null means skipsUndoManager
        }
      };
    }

    function applySliderBindings(object, alwaysVisible) {
      if (alwaysVisible) ob