I’m trying to implement a function which centers on a selected element(s). I’m using the pre-packaged bpmn-js-seed at https://github.com/bpmn-io/bpmn-js-seed which offers the bpmn-modeler.js at https://github.com/bpmn-io/bpmn-js-seed/blob/master/bower_components/bpmn-js/dist/bpmn-modeler.js since I am rather new to the whole webtech/bower/require stuff.
I’ve had a look at the SearchPad feature and would like to just use the implementation of the function SearchPad.prototype._centerViewbox, which uses the function getBoundingBox like this var box = getBoundingBox(element); to define the box around the element(s). The function is included from Elements.js at https://github.com/bpmn-io/diagram-js/blob/b23c89c1ffa8867e8dcb35a621aaafdb1aeb95bf/lib/util/Elements.js
I cannot seem to access the required function from the pre-packaged bpmn-modeler.js. Where could I find it or how could I access it / the Element.js parts? I have looked at the offered functions of an initialised modeler as well as its canvas for example, but cannot seem to find it.