chili3d 0.7.16 → 1.0.1

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 (3) hide show
  1. package/index.css +17 -17
  2. package/index.js +18 -7
  3. package/package.json +1 -1
package/index.css CHANGED
@@ -286,23 +286,6 @@ dialog::backdrop {
286
286
  }
287
287
  }
288
288
 
289
- .panel {
290
- display: flex;
291
- flex-direction: row;
292
- flex: 0;
293
- }
294
-
295
- .svg {
296
- width: 16px;
297
- height: 16px;
298
- margin-left: 12px;
299
- padding: 6px;
300
- }
301
-
302
- .svg:hover {
303
- background-color: var(--hover-background-color);
304
- }
305
-
306
289
  .name {
307
290
  flex: 1 1 auto;
308
291
  font-size: 12px;
@@ -359,6 +342,23 @@ dialog::backdrop {
359
342
  align-items: center;
360
343
  }
361
344
 
345
+ .panel {
346
+ display: flex;
347
+ flex-direction: row;
348
+ flex: 0;
349
+ }
350
+
351
+ .svg {
352
+ width: 16px;
353
+ height: 16px;
354
+ margin-left: 12px;
355
+ padding: 6px;
356
+ }
357
+
358
+ .svg:hover {
359
+ background-color: var(--hover-background-color);
360
+ }
361
+
362
362
  .panel {
363
363
  margin: 4px;
364
364
  }
package/index.js CHANGED
@@ -76,7 +76,7 @@ __webpack_require__.r(module.exports = {});
76
76
 
77
77
  }),
78
78
  151: (function (module, __unused_webpack_exports, __webpack_require__) {
79
- module.exports = {};
79
+ __webpack_require__.r(module.exports = {});
80
80
 
81
81
 
82
82
  }),
@@ -84913,8 +84913,6 @@ class OKCancel extends HTMLElement {
84913
84913
  }
84914
84914
  customElements.define("ok-cancel", OKCancel);
84915
84915
 
84916
- // EXTERNAL MODULE: ./packages/chili-ui/src/project/toolBar.module.css
84917
- var toolBar_module = __webpack_require__(151);
84918
84916
  // EXTERNAL MODULE: ./packages/chili-ui/src/project/tree/treeItem.module.css
84919
84917
  var treeItem_module = __webpack_require__(890);
84920
84918
  ;// CONCATENATED MODULE: ./packages/chili-ui/src/project/tree/treeItem.ts
@@ -85071,12 +85069,23 @@ customElements.define("tree-group", TreeGroup);
85071
85069
 
85072
85070
 
85073
85071
 
85074
-
85072
+ let toolBar_style = {
85073
+ panel: "",
85074
+ svg: ""
85075
+ };
85076
+ try {
85077
+ const importedStyle = __webpack_require__(151);
85078
+ toolBar_style = importedStyle.default || importedStyle;
85079
+ } catch (error) {
85080
+ console.warn("Failed to load toolBar.module.css:", error);
85081
+ }
85075
85082
  class ToolBar extends HTMLElement {
85076
85083
  projectView;
85077
85084
  constructor(projectView){
85078
85085
  super(), this.projectView = projectView;
85079
- this.className = toolBar_module/* ["default"].panel */.A.panel;
85086
+ if (toolBar_style.panel) {
85087
+ this.className = toolBar_style.panel;
85088
+ }
85080
85089
  this.render();
85081
85090
  }
85082
85091
  render() {
@@ -85104,7 +85113,7 @@ class ToolBar extends HTMLElement {
85104
85113
  title: i18n_I18n.translate(tip)
85105
85114
  }, controls_svg({
85106
85115
  icon,
85107
- className: toolBar_module/* ["default"].svg */.A.svg,
85116
+ className: toolBar_style.svg || "",
85108
85117
  onclick: command
85109
85118
  })));
85110
85119
  }
@@ -85419,7 +85428,9 @@ class ProjectView extends HTMLElement {
85419
85428
  if (projectView_style.root) {
85420
85429
  this.classList.add(projectView_style.root);
85421
85430
  }
85422
- this.classList.add(props.className);
85431
+ if (props.className) {
85432
+ this.classList.add(props.className);
85433
+ }
85423
85434
  this.panel = div({
85424
85435
  className: projectView_style.itemsPanel || ""
85425
85436
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chili3d",
3
- "version": "0.7.16",
3
+ "version": "1.0.1",
4
4
  "description": "Chili3D - A 3D modeling and animation tool",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",