I try to follow the source code begin with “new BpmnModeler”,
when I saw Palette init function, I try to find where is the render function of the element in Pallete
what I confuesed is I just found the dom element created in the Palette.prototype._update function but never found the shape rendered like “hand tool”,“start event”
Palette.prototype._update = function() {
...
var html = entry.html || (
entry.separator ?
'<hr class="separator" />' :
'<div class="entry" draggable="true"></div>');
var control = domify(html);
container.appendChild(control);
if (!entry.separator) {
domAttr(control, 'data-action', id);// id: create.start-event
if (entry.title) {
domAttr(control, 'title', entry.title);
}
if (entry.className) {
addClasses(control, entry.className);
}
if (entry.imageUrl) {
control.appendChild(domify('<img src="' + entry.imageUrl + '">'));
}
}
}
And where I found the shape created is in the dragging event
so, anybody can tell me how the shape render of palette’element, thanks