chili3d 1.0.5 → 1.0.6
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 +52 -27
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -86654,19 +86654,29 @@ class Ribbon extends HTMLElement {
|
|
|
86654
86654
|
}, div({
|
|
86655
86655
|
className: ribbon_style.appIcon || "",
|
|
86656
86656
|
onclick: ()=>PubSub["default"].pub("displayHome", true)
|
|
86657
|
-
},
|
|
86658
|
-
|
|
86659
|
-
|
|
86660
|
-
|
|
86657
|
+
}, (()=>{
|
|
86658
|
+
const svgOptions = {
|
|
86659
|
+
icon: "icon-chili"
|
|
86660
|
+
};
|
|
86661
|
+
if (ribbon_style.icon) {
|
|
86662
|
+
svgOptions.className = ribbon_style.icon;
|
|
86663
|
+
}
|
|
86664
|
+
return controls_svg(svgOptions);
|
|
86665
|
+
})(), span({
|
|
86661
86666
|
id: "appName",
|
|
86662
86667
|
textContent: `Chili3D - v${"0.6.1"}`
|
|
86663
86668
|
})), div({
|
|
86664
86669
|
className: ribbon_style.ribbonTitlePanel || ""
|
|
86665
|
-
},
|
|
86666
|
-
|
|
86667
|
-
|
|
86668
|
-
|
|
86669
|
-
|
|
86670
|
+
}, (()=>{
|
|
86671
|
+
const svgOptions = {
|
|
86672
|
+
icon: "icon-home",
|
|
86673
|
+
onclick: ()=>PubSub["default"].pub("displayHome", true)
|
|
86674
|
+
};
|
|
86675
|
+
if (ribbon_style.home) {
|
|
86676
|
+
svgOptions.className = ribbon_style.home;
|
|
86677
|
+
}
|
|
86678
|
+
return controls_svg(svgOptions);
|
|
86679
|
+
})(), collection({
|
|
86670
86680
|
className: ribbon_style.quickCommands || "",
|
|
86671
86681
|
sources: this.dataContent.quickCommands,
|
|
86672
86682
|
template: (command)=>QuickButton(command)
|
|
@@ -86696,12 +86706,17 @@ class Ribbon extends HTMLElement {
|
|
|
86696
86706
|
className: ribbon_style.views || "",
|
|
86697
86707
|
sources: this.dataContent.app.views,
|
|
86698
86708
|
template: (view)=>this.createViewItem(view)
|
|
86699
|
-
}),
|
|
86700
|
-
|
|
86701
|
-
|
|
86702
|
-
|
|
86703
|
-
|
|
86704
|
-
|
|
86709
|
+
}), (()=>{
|
|
86710
|
+
const svgOptions = {
|
|
86711
|
+
icon: "icon-plus",
|
|
86712
|
+
title: i18n_I18n.translate("command.doc.new"),
|
|
86713
|
+
onclick: ()=>PubSub["default"].pub("executeCommand", "doc.new")
|
|
86714
|
+
};
|
|
86715
|
+
if (ribbon_style.new) {
|
|
86716
|
+
svgOptions.className = ribbon_style.new;
|
|
86717
|
+
}
|
|
86718
|
+
return controls_svg(svgOptions);
|
|
86719
|
+
})());
|
|
86705
86720
|
}
|
|
86706
86721
|
createViewItem(view) {
|
|
86707
86722
|
return div({
|
|
@@ -86713,14 +86728,19 @@ class Ribbon extends HTMLElement {
|
|
|
86713
86728
|
className: ribbon_style.name || ""
|
|
86714
86729
|
}, span({
|
|
86715
86730
|
textContent: new Binding(view.document, "name")
|
|
86716
|
-
})),
|
|
86717
|
-
|
|
86718
|
-
|
|
86719
|
-
|
|
86720
|
-
|
|
86721
|
-
|
|
86731
|
+
})), (()=>{
|
|
86732
|
+
const svgOptions = {
|
|
86733
|
+
icon: "icon-times",
|
|
86734
|
+
onclick: (e)=>{
|
|
86735
|
+
e.stopPropagation();
|
|
86736
|
+
view.close();
|
|
86737
|
+
}
|
|
86738
|
+
};
|
|
86739
|
+
if (ribbon_style.close) {
|
|
86740
|
+
svgOptions.className = ribbon_style.close;
|
|
86722
86741
|
}
|
|
86723
|
-
|
|
86742
|
+
return controls_svg(svgOptions);
|
|
86743
|
+
})());
|
|
86724
86744
|
}
|
|
86725
86745
|
rightPanel() {
|
|
86726
86746
|
return div({
|
|
@@ -86728,11 +86748,16 @@ class Ribbon extends HTMLElement {
|
|
|
86728
86748
|
}, controls_a({
|
|
86729
86749
|
href: "https://github.com/xiangechen/chili3d",
|
|
86730
86750
|
target: "_blank"
|
|
86731
|
-
},
|
|
86732
|
-
|
|
86733
|
-
|
|
86734
|
-
|
|
86735
|
-
|
|
86751
|
+
}, (()=>{
|
|
86752
|
+
const svgOptions = {
|
|
86753
|
+
title: "Github",
|
|
86754
|
+
icon: "icon-github"
|
|
86755
|
+
};
|
|
86756
|
+
if (ribbon_style.icon) {
|
|
86757
|
+
svgOptions.className = ribbon_style.icon;
|
|
86758
|
+
}
|
|
86759
|
+
return controls_svg(svgOptions);
|
|
86760
|
+
})()));
|
|
86736
86761
|
}
|
|
86737
86762
|
ribbonTabs() {
|
|
86738
86763
|
return collection({
|