chili3d 0.7.12 → 0.7.15
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 +38 -38
- package/index.d.ts +22 -25
- package/index.js +47 -17
- package/package.json +12 -9
package/index.css
CHANGED
|
@@ -286,44 +286,6 @@ dialog::backdrop {
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
.root {
|
|
290
|
-
display: flex;
|
|
291
|
-
flex-direction: column;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
.headerPanel {
|
|
295
|
-
display: flex;
|
|
296
|
-
flex-direction: row;
|
|
297
|
-
align-items: end;
|
|
298
|
-
flex: 0;
|
|
299
|
-
margin: 0px 12px;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
.itemsPanel {
|
|
303
|
-
display: flex;
|
|
304
|
-
flex: 1;
|
|
305
|
-
flex-direction: column;
|
|
306
|
-
overflow-y: auto;
|
|
307
|
-
border-top: 2px solid transparent;
|
|
308
|
-
border-bottom: 2px solid transparent;
|
|
309
|
-
background-color: var(--panel-background-color);
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.header {
|
|
313
|
-
display: flex;
|
|
314
|
-
flex-direction: row;
|
|
315
|
-
font-size: 1.15rem;
|
|
316
|
-
font-weight: bolder;
|
|
317
|
-
flex: 1;
|
|
318
|
-
margin: 2px 6px;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
@media (max-width: 680px) {
|
|
322
|
-
.root {
|
|
323
|
-
display: none;
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
|
|
327
289
|
.panel {
|
|
328
290
|
display: flex;
|
|
329
291
|
flex-direction: row;
|
|
@@ -426,6 +388,44 @@ dialog::backdrop {
|
|
|
426
388
|
background-color: var(--hover-background-color);
|
|
427
389
|
}
|
|
428
390
|
|
|
391
|
+
.root {
|
|
392
|
+
display: flex;
|
|
393
|
+
flex-direction: column;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.headerPanel {
|
|
397
|
+
display: flex;
|
|
398
|
+
flex-direction: row;
|
|
399
|
+
align-items: end;
|
|
400
|
+
flex: 0;
|
|
401
|
+
margin: 0px 12px;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.itemsPanel {
|
|
405
|
+
display: flex;
|
|
406
|
+
flex: 1;
|
|
407
|
+
flex-direction: column;
|
|
408
|
+
overflow-y: auto;
|
|
409
|
+
border-top: 2px solid transparent;
|
|
410
|
+
border-bottom: 2px solid transparent;
|
|
411
|
+
background-color: var(--panel-background-color);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.header {
|
|
415
|
+
display: flex;
|
|
416
|
+
flex-direction: row;
|
|
417
|
+
font-size: 1.15rem;
|
|
418
|
+
font-weight: bolder;
|
|
419
|
+
flex: 1;
|
|
420
|
+
margin: 2px 6px;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
@media (max-width: 680px) {
|
|
424
|
+
.root {
|
|
425
|
+
display: none;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
|
|
429
429
|
.panel {
|
|
430
430
|
display: flex;
|
|
431
431
|
flex-direction: row;
|
package/index.d.ts
CHANGED
|
@@ -1,38 +1,35 @@
|
|
|
1
1
|
// Type definitions for chili3d
|
|
2
|
-
// Project: https://github.com/chili3d/chili3d
|
|
3
|
-
// Definitions by: Chili3D Team
|
|
4
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
5
2
|
|
|
6
|
-
// 主命名空间
|
|
7
3
|
declare namespace chili3d {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export import Wasm = typeof import('./index').Wasm;
|
|
19
|
-
export import Web = typeof import('./index').Web;
|
|
20
|
-
export import Chili = typeof import('./index').Chili;
|
|
4
|
+
interface AppBuilderOptions {
|
|
5
|
+
container: HTMLElement;
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class AppBuilder {
|
|
11
|
+
constructor(options: AppBuilderOptions);
|
|
12
|
+
build(): Promise<void>;
|
|
13
|
+
}
|
|
21
14
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
15
|
+
interface IApplication {
|
|
16
|
+
// Application interface methods and properties
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
class Logger {
|
|
20
|
+
static info(message: string, ...args: any[]): void;
|
|
21
|
+
static warn(message: string, ...args: any[]): void;
|
|
22
|
+
static error(message: string, ...args: any[]): void;
|
|
23
|
+
static debug(message: string, ...args: any[]): void;
|
|
24
|
+
}
|
|
26
25
|
}
|
|
27
26
|
|
|
28
|
-
// UMD 导出
|
|
29
27
|
declare module 'chili3d' {
|
|
30
28
|
export = chili3d;
|
|
31
29
|
}
|
|
32
30
|
|
|
33
|
-
// 全局变量声明
|
|
34
31
|
declare global {
|
|
35
32
|
interface Window {
|
|
36
|
-
chili3d
|
|
33
|
+
chili3d: typeof chili3d;
|
|
37
34
|
}
|
|
38
|
-
}
|
|
35
|
+
}
|
package/index.js
CHANGED
|
@@ -61,7 +61,7 @@ module.exports = {};
|
|
|
61
61
|
|
|
62
62
|
}),
|
|
63
63
|
924: (function (module, __unused_webpack_exports, __webpack_require__) {
|
|
64
|
-
module.exports = {};
|
|
64
|
+
__webpack_require__.r(module.exports = {});
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
}),
|
|
@@ -71,7 +71,7 @@ module.exports = {};
|
|
|
71
71
|
|
|
72
72
|
}),
|
|
73
73
|
860: (function (module, __unused_webpack_exports, __webpack_require__) {
|
|
74
|
-
module.exports = {};
|
|
74
|
+
__webpack_require__.r(module.exports = {});
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
}),
|
|
@@ -84841,38 +84841,59 @@ class Dialog {
|
|
|
84841
84841
|
}
|
|
84842
84842
|
}
|
|
84843
84843
|
|
|
84844
|
-
// EXTERNAL MODULE: ./packages/chili-ui/src/okCancel.module.css
|
|
84845
|
-
var okCancel_module = __webpack_require__(924);
|
|
84846
84844
|
;// CONCATENATED MODULE: ./packages/chili-ui/src/okCancel.ts
|
|
84847
84845
|
// Part of the Chili3d Project, under the AGPL-3.0 License.
|
|
84848
84846
|
// See LICENSE file in the project root for full license information.
|
|
84849
84847
|
|
|
84850
84848
|
|
|
84851
|
-
|
|
84849
|
+
// 安全导入CSS模块,避免style为undefined时崩溃
|
|
84850
|
+
let okCancel_style;
|
|
84851
|
+
try {
|
|
84852
|
+
// 尝试导入CSS模块
|
|
84853
|
+
const importedStyle = __webpack_require__(924);
|
|
84854
|
+
// 确保所有属性都有值
|
|
84855
|
+
okCancel_style = {
|
|
84856
|
+
root: importedStyle.root || "",
|
|
84857
|
+
container: importedStyle.container || "",
|
|
84858
|
+
spacer: importedStyle.spacer || "",
|
|
84859
|
+
panel: importedStyle.panel || "",
|
|
84860
|
+
icon: importedStyle.icon || ""
|
|
84861
|
+
};
|
|
84862
|
+
} catch (error) {
|
|
84863
|
+
console.warn("Failed to load okCancel.module.css, using empty styles:", error);
|
|
84864
|
+
// 如果导入失败,使用空字符串作为默认值
|
|
84865
|
+
okCancel_style = {
|
|
84866
|
+
root: "",
|
|
84867
|
+
container: "",
|
|
84868
|
+
spacer: "",
|
|
84869
|
+
panel: "",
|
|
84870
|
+
icon: ""
|
|
84871
|
+
};
|
|
84872
|
+
}
|
|
84852
84873
|
class OKCancel extends HTMLElement {
|
|
84853
84874
|
control;
|
|
84854
84875
|
constructor(){
|
|
84855
84876
|
super();
|
|
84856
|
-
this.className =
|
|
84877
|
+
this.className = okCancel_style.root;
|
|
84857
84878
|
this.append(this.container());
|
|
84858
84879
|
}
|
|
84859
84880
|
container() {
|
|
84860
84881
|
return div({
|
|
84861
|
-
className:
|
|
84882
|
+
className: okCancel_style.container
|
|
84862
84883
|
}, span({
|
|
84863
84884
|
textContent: new Localize("ribbon.group.selection")
|
|
84864
84885
|
}), div({
|
|
84865
|
-
className:
|
|
84886
|
+
className: okCancel_style.spacer
|
|
84866
84887
|
}), this.buttons());
|
|
84867
84888
|
}
|
|
84868
84889
|
buttons() {
|
|
84869
84890
|
return div({
|
|
84870
|
-
className:
|
|
84891
|
+
className: okCancel_style.panel
|
|
84871
84892
|
}, this._createIcon("icon-confirm", "common.confirm", this._onConfirm), this._createIcon("icon-cancel", "common.cancel", this._onCancel));
|
|
84872
84893
|
}
|
|
84873
84894
|
_createIcon(icon, text, onClick) {
|
|
84874
84895
|
return div({
|
|
84875
|
-
className:
|
|
84896
|
+
className: okCancel_style.icon,
|
|
84876
84897
|
onclick: onClick
|
|
84877
84898
|
}, controls_svg({
|
|
84878
84899
|
icon
|
|
@@ -84892,8 +84913,6 @@ class OKCancel extends HTMLElement {
|
|
|
84892
84913
|
}
|
|
84893
84914
|
customElements.define("ok-cancel", OKCancel);
|
|
84894
84915
|
|
|
84895
|
-
// EXTERNAL MODULE: ./packages/chili-ui/src/project/projectView.module.css
|
|
84896
|
-
var projectView_module = __webpack_require__(860);
|
|
84897
84916
|
// EXTERNAL MODULE: ./packages/chili-ui/src/project/toolBar.module.css
|
|
84898
84917
|
var toolBar_module = __webpack_require__(151);
|
|
84899
84918
|
// EXTERNAL MODULE: ./packages/chili-ui/src/project/tree/treeItem.module.css
|
|
@@ -85376,7 +85395,18 @@ customElements.define("ui-tree", Tree);
|
|
|
85376
85395
|
|
|
85377
85396
|
|
|
85378
85397
|
|
|
85379
|
-
|
|
85398
|
+
let projectView_style = {
|
|
85399
|
+
root: "",
|
|
85400
|
+
itemsPanel: "",
|
|
85401
|
+
headerPanel: "",
|
|
85402
|
+
header: ""
|
|
85403
|
+
};
|
|
85404
|
+
try {
|
|
85405
|
+
const importedStyle = __webpack_require__(860);
|
|
85406
|
+
projectView_style = importedStyle.default || importedStyle;
|
|
85407
|
+
} catch (error) {
|
|
85408
|
+
console.warn("Failed to load projectView.module.css:", error);
|
|
85409
|
+
}
|
|
85380
85410
|
class ProjectView extends HTMLElement {
|
|
85381
85411
|
_documentTreeMap = new Map();
|
|
85382
85412
|
_activeDocument;
|
|
@@ -85386,9 +85416,9 @@ class ProjectView extends HTMLElement {
|
|
|
85386
85416
|
panel;
|
|
85387
85417
|
constructor(props){
|
|
85388
85418
|
super();
|
|
85389
|
-
this.classList.add(
|
|
85419
|
+
this.classList.add(projectView_style.root, props.className);
|
|
85390
85420
|
this.panel = div({
|
|
85391
|
-
className:
|
|
85421
|
+
className: projectView_style.itemsPanel
|
|
85392
85422
|
});
|
|
85393
85423
|
PubSub["default"].sub("activeViewChanged", this.handleActiveViewChanged);
|
|
85394
85424
|
PubSub["default"].sub("documentClosed", this.handleDocumentClosed);
|
|
@@ -85396,9 +85426,9 @@ class ProjectView extends HTMLElement {
|
|
|
85396
85426
|
}
|
|
85397
85427
|
render() {
|
|
85398
85428
|
this.append(div({
|
|
85399
|
-
className:
|
|
85429
|
+
className: projectView_style.headerPanel
|
|
85400
85430
|
}, span({
|
|
85401
|
-
className:
|
|
85431
|
+
className: projectView_style.header,
|
|
85402
85432
|
textContent: new Localize("items.header")
|
|
85403
85433
|
}), new ToolBar(this)), this.panel);
|
|
85404
85434
|
}
|
package/package.json
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chili3d",
|
|
3
|
-
"version": "0.7.
|
|
4
|
-
"description": "Chili3D - A 3D modeling and
|
|
3
|
+
"version": "0.7.15",
|
|
4
|
+
"description": "Chili3D - A 3D modeling and animation tool",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
-
},
|
|
10
7
|
"keywords": [
|
|
11
8
|
"3d",
|
|
12
9
|
"modeling",
|
|
13
|
-
"
|
|
10
|
+
"animation",
|
|
14
11
|
"webgl",
|
|
15
12
|
"threejs"
|
|
16
13
|
],
|
|
17
|
-
"author": "
|
|
14
|
+
"author": "Chili3D Team",
|
|
18
15
|
"license": "AGPL-3.0",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/chili3d/chili3d.git"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"three": "^0.160.0",
|
|
22
|
+
"lit": "^3.0.0",
|
|
23
|
+
"mobx": "^6.0.0"
|
|
21
24
|
}
|
|
22
25
|
}
|