chili3d 1.0.1 → 1.0.3
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.css +37 -37
- package/index.js +29 -14
- package/package.json +1 -1
package/index.css
CHANGED
|
@@ -465,43 +465,6 @@ dialog::backdrop {
|
|
|
465
465
|
margin: 3px 0;
|
|
466
466
|
}
|
|
467
467
|
|
|
468
|
-
.root {
|
|
469
|
-
display: flex;
|
|
470
|
-
flex-direction: column;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
.header {
|
|
474
|
-
margin: 2px 18px;
|
|
475
|
-
font-size: 1.15rem;
|
|
476
|
-
font-weight: bold;
|
|
477
|
-
flex: 0;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
.panel {
|
|
481
|
-
flex: 1;
|
|
482
|
-
padding: 10px;
|
|
483
|
-
display: flex;
|
|
484
|
-
flex-direction: column;
|
|
485
|
-
gap: 6px;
|
|
486
|
-
overflow-y: auto;
|
|
487
|
-
border-top: 2px solid transparent;
|
|
488
|
-
border-bottom: 2px solid transparent;
|
|
489
|
-
background-color: var(--panel-background-color);
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
.properties {
|
|
493
|
-
display: flex;
|
|
494
|
-
flex-direction: column;
|
|
495
|
-
gap: 3px;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
.name {
|
|
499
|
-
display: grid;
|
|
500
|
-
grid-template-columns: auto 1fr;
|
|
501
|
-
grid-gap: 10px;
|
|
502
|
-
align-items: center;
|
|
503
|
-
}
|
|
504
|
-
|
|
505
468
|
.color {
|
|
506
469
|
width: 64px;
|
|
507
470
|
height: 32px;
|
|
@@ -587,6 +550,43 @@ dialog::backdrop {
|
|
|
587
550
|
}
|
|
588
551
|
}
|
|
589
552
|
|
|
553
|
+
.root {
|
|
554
|
+
display: flex;
|
|
555
|
+
flex-direction: column;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.header {
|
|
559
|
+
margin: 2px 18px;
|
|
560
|
+
font-size: 1.15rem;
|
|
561
|
+
font-weight: bold;
|
|
562
|
+
flex: 0;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.panel {
|
|
566
|
+
flex: 1;
|
|
567
|
+
padding: 10px;
|
|
568
|
+
display: flex;
|
|
569
|
+
flex-direction: column;
|
|
570
|
+
gap: 6px;
|
|
571
|
+
overflow-y: auto;
|
|
572
|
+
border-top: 2px solid transparent;
|
|
573
|
+
border-bottom: 2px solid transparent;
|
|
574
|
+
background-color: var(--panel-background-color);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.properties {
|
|
578
|
+
display: flex;
|
|
579
|
+
flex-direction: column;
|
|
580
|
+
gap: 3px;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
.name {
|
|
584
|
+
display: grid;
|
|
585
|
+
grid-template-columns: auto 1fr;
|
|
586
|
+
grid-gap: 10px;
|
|
587
|
+
align-items: center;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
590
|
.root {
|
|
591
591
|
display: flex;
|
|
592
592
|
flex-direction: column;
|
package/index.js
CHANGED
|
@@ -136,7 +136,7 @@ module.exports = {};
|
|
|
136
136
|
|
|
137
137
|
}),
|
|
138
138
|
588: (function (module, __unused_webpack_exports, __webpack_require__) {
|
|
139
|
-
module.exports = {};
|
|
139
|
+
__webpack_require__.r(module.exports = {});
|
|
140
140
|
|
|
141
141
|
|
|
142
142
|
}),
|
|
@@ -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");
|
|
@@ -85720,8 +85723,6 @@ class RotateConverter extends MatrixConverter {
|
|
|
85720
85723
|
}
|
|
85721
85724
|
}
|
|
85722
85725
|
|
|
85723
|
-
// EXTERNAL MODULE: ./packages/chili-ui/src/property/propertyView.module.css
|
|
85724
|
-
var propertyView_module = __webpack_require__(588);
|
|
85725
85726
|
;// CONCATENATED MODULE: ./packages/chili-ui/src/property/check.ts
|
|
85726
85727
|
// Part of the Chili3d Project, under the AGPL-3.0 License.
|
|
85727
85728
|
// See LICENSE file in the project root for full license information.
|
|
@@ -85971,16 +85972,30 @@ function canShowMaterialProperty(objs, prop) {
|
|
|
85971
85972
|
|
|
85972
85973
|
|
|
85973
85974
|
|
|
85974
|
-
|
|
85975
|
+
let propertyView_style = {
|
|
85976
|
+
root: "",
|
|
85977
|
+
panel: "",
|
|
85978
|
+
header: "",
|
|
85979
|
+
properties: ""
|
|
85980
|
+
};
|
|
85981
|
+
try {
|
|
85982
|
+
const importedStyle = __webpack_require__(588);
|
|
85983
|
+
propertyView_style = importedStyle.default || importedStyle;
|
|
85984
|
+
} catch (error) {
|
|
85985
|
+
console.warn("Failed to load propertyView.module.css:", error);
|
|
85986
|
+
}
|
|
85975
85987
|
class PropertyView extends HTMLElement {
|
|
85976
85988
|
panel = div({
|
|
85977
|
-
className:
|
|
85989
|
+
className: propertyView_style.panel || ""
|
|
85978
85990
|
});
|
|
85979
85991
|
constructor(props){
|
|
85980
85992
|
super();
|
|
85981
|
-
this.classList.add(props.className
|
|
85993
|
+
this.classList.add(props.className);
|
|
85994
|
+
if (propertyView_style.root) {
|
|
85995
|
+
this.classList.add(propertyView_style.root);
|
|
85996
|
+
}
|
|
85982
85997
|
this.append(controls_label({
|
|
85983
|
-
className:
|
|
85998
|
+
className: propertyView_style.header || "",
|
|
85984
85999
|
textContent: new Localize("properties.header")
|
|
85985
86000
|
}), this.panel);
|
|
85986
86001
|
PubSub["default"].sub("showProperties", this.handleShowProperties);
|
|
@@ -86012,7 +86027,7 @@ class PropertyView extends HTMLElement {
|
|
|
86012
86027
|
controls = property_Property.getOwnProperties(node_Node.prototype).map((x)=>findPropertyControl(document, nodes, x));
|
|
86013
86028
|
}
|
|
86014
86029
|
this.panel.append(div({
|
|
86015
|
-
className:
|
|
86030
|
+
className: propertyView_style.properties || ""
|
|
86016
86031
|
}, ...controls));
|
|
86017
86032
|
}
|
|
86018
86033
|
addGeometry(nodes, document) {
|
|
@@ -86024,7 +86039,7 @@ class PropertyView extends HTMLElement {
|
|
|
86024
86039
|
addTransform(document, geometries) {
|
|
86025
86040
|
const matrix = new Expander("common.matrix");
|
|
86026
86041
|
this.panel.append(matrix);
|
|
86027
|
-
matrix.contenxtPanel.append(new MatrixProperty(document, geometries,
|
|
86042
|
+
matrix.contenxtPanel.append(new MatrixProperty(document, geometries, propertyView_style.properties || ""));
|
|
86028
86043
|
}
|
|
86029
86044
|
addParameters(geometries, document) {
|
|
86030
86045
|
const entities = geometries.filter((x)=>x instanceof VisualNode);
|