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.
Files changed (2) hide show
  1. package/index.js +8 -5
  2. 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
- this.append(controls_a({
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");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chili3d",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Chili3D - A 3D modeling and animation tool",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",