chili3d 1.0.1 → 1.0.2
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.
- package/index.js +8 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -85109,13 +85109,16 @@ class ToolBar extends HTMLElement {
|
|
|
85109
85109
|
buttons.forEach(({ icon, tip, command })=>this.button(icon, tip, command));
|
|
85110
85110
|
}
|
|
85111
85111
|
button(icon, tip, command) {
|
|
85112
|
-
|
|
85113
|
-
title: i18n_I18n.translate(tip)
|
|
85114
|
-
}, controls_svg({
|
|
85112
|
+
const svgOptions = {
|
|
85115
85113
|
icon,
|
|
85116
|
-
className: toolBar_style.svg || "",
|
|
85117
85114
|
onclick: command
|
|
85118
|
-
}
|
|
85115
|
+
};
|
|
85116
|
+
if (toolBar_style.svg) {
|
|
85117
|
+
svgOptions.className = toolBar_style.svg;
|
|
85118
|
+
}
|
|
85119
|
+
this.append(controls_a({
|
|
85120
|
+
title: i18n_I18n.translate(tip)
|
|
85121
|
+
}, controls_svg(svgOptions)));
|
|
85119
85122
|
}
|
|
85120
85123
|
newGroup = ()=>{
|
|
85121
85124
|
PubSub["default"].pub("executeCommand", "create.folder");
|