chili3d 0.7.14 → 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.
Files changed (4) hide show
  1. package/index.css +38 -38
  2. package/index.d.ts +22 -25
  3. package/index.js +17 -8
  4. 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
- export import Builder = typeof import('./index').Builder;
10
- export import Controls = typeof import('./index').Controls;
11
- export import Core = typeof import('./index').Core;
12
- export import Geo = typeof import('./index').Geo;
13
- export import I18n = typeof import('./index').I18n;
14
- export import Storage = typeof import('./index').Storage;
15
- export import Three = typeof import('./index').Three;
16
- export import UI = typeof import('./index').UI;
17
- export import Vis = typeof import('./index').Vis;
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
- export import AppBuilder = typeof import('./index').AppBuilder;
24
- export import Logger = typeof import('./index').Logger;
25
- export import IApplication = typeof import('./index').IApplication;
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?: typeof chili3d;
33
+ chili3d: typeof chili3d;
37
34
  }
38
- }
35
+ }
package/index.js CHANGED
@@ -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
  }),
@@ -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/projectView.module.css
84917
- var projectView_module = __webpack_require__(860);
84918
84916
  // EXTERNAL MODULE: ./packages/chili-ui/src/project/toolBar.module.css
84919
84917
  var toolBar_module = __webpack_require__(151);
84920
84918
  // EXTERNAL MODULE: ./packages/chili-ui/src/project/tree/treeItem.module.css
@@ -85397,7 +85395,18 @@ customElements.define("ui-tree", Tree);
85397
85395
 
85398
85396
 
85399
85397
 
85400
-
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
+ }
85401
85410
  class ProjectView extends HTMLElement {
85402
85411
  _documentTreeMap = new Map();
85403
85412
  _activeDocument;
@@ -85407,9 +85416,9 @@ class ProjectView extends HTMLElement {
85407
85416
  panel;
85408
85417
  constructor(props){
85409
85418
  super();
85410
- this.classList.add(projectView_module/* ["default"].root */.A.root, props.className);
85419
+ this.classList.add(projectView_style.root, props.className);
85411
85420
  this.panel = div({
85412
- className: projectView_module/* ["default"].itemsPanel */.A.itemsPanel
85421
+ className: projectView_style.itemsPanel
85413
85422
  });
85414
85423
  PubSub["default"].sub("activeViewChanged", this.handleActiveViewChanged);
85415
85424
  PubSub["default"].sub("documentClosed", this.handleDocumentClosed);
@@ -85417,9 +85426,9 @@ class ProjectView extends HTMLElement {
85417
85426
  }
85418
85427
  render() {
85419
85428
  this.append(div({
85420
- className: projectView_module/* ["default"].headerPanel */.A.headerPanel
85429
+ className: projectView_style.headerPanel
85421
85430
  }, span({
85422
- className: projectView_module/* ["default"].header */.A.header,
85431
+ className: projectView_style.header,
85423
85432
  textContent: new Localize("items.header")
85424
85433
  }), new ToolBar(this)), this.panel);
85425
85434
  }
package/package.json CHANGED
@@ -1,22 +1,25 @@
1
1
  {
2
2
  "name": "chili3d",
3
- "version": "0.7.14",
4
- "description": "Chili3D - A 3D modeling and visualization framework",
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
- "visualization",
10
+ "animation",
14
11
  "webgl",
15
12
  "threejs"
16
13
  ],
17
- "author": "仙阁",
14
+ "author": "Chili3D Team",
18
15
  "license": "AGPL-3.0",
19
- "publishConfig": {
20
- "access": "public"
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
  }