@tomorrowevening/hermes 0.1.41 → 0.1.42

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/dist/index.html CHANGED
@@ -8,7 +8,7 @@
8
8
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
9
9
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
10
10
  <link rel="manifest" href="/images/site.webmanifest">
11
- <script type="module" crossorigin src="/index-DZmiM5y-.js"></script>
11
+ <script type="module" crossorigin src="/index-XMQFdKEt.js"></script>
12
12
  <link rel="stylesheet" crossorigin href="/index-C92ji5gy.css">
13
13
  </head>
14
14
  <body>
package/dist/index.js CHANGED
@@ -1,125 +1,134 @@
1
1
  import { defaultTheatreCallback as t, noop as a } from "./core/types.js";
2
- import { capitalize as l, colorToHex as p, copyToClipboard as f, isColor as m, randomID as s } from "./editor/utils.js";
3
- import { detectMaxFrameRate as i, detectSettings as n } from "./utils/detectSettings.js";
4
- import { ImageSequenceCapturer as u } from "./utils/ImageSequenceCapturer.js";
5
- import { clamp as M, cubicBezier as b, damp as T, distance as h, getAngle as g, map as C, mix as O, normalize as j, rgbaToHex as I, roundTo as y } from "./utils/math.js";
6
- import { animateObjectMaterial as G, animateObjectTransform as B, applyObjectMaterial as D, customizeTheatreElements as P, getObjectMaterialObject as S, getObjectMaterialProps as H, useStudio as A } from "./utils/theatre.js";
7
- import { ExportTexture as R, anchorGeometry as U, anchorGeometryTL as k, createMask as v, dispose as w, disposeMaterial as z, disposeTexture as V, hierarchyUUID as L, orthoCamera as q, parseModelLite as F, renderToTexture as W, resetThreeObjects as J, setMaterialBlendAdd as K, setMaterialBlendMultiply as Q, setMaterialBlendNormal as X, setMaterialBlendScreen as Y, supportsOffscreenCanvas as Z, totalThreeObjects as _, triangle as $, updateCameraOrtho as ee, updateCameraOrtho16x9 as re, useMask as te } from "./utils/three.js";
8
- import { clearComposerGroups as oe, generateCubemap as le, inspectComposer as pe, inspectComposerPass as fe } from "./utils/post.js";
9
- import { ElementProxy as se, WebworkerEventHandlers as de } from "./webworkers/EventHandling.js";
10
- import { ElementProxyReceiver as ne, ProxyManager as xe } from "./webworkers/ProxyManager.js";
11
- import { default as ce } from "./core/Application.js";
12
- import { default as be } from "./core/remote/BaseRemote.js";
13
- import { default as he } from "./core/remote/RemoteTheatre.js";
14
- import { default as Ce } from "./core/remote/RemoteThree.js";
15
- import { default as je } from "./editor/components/NavButton.js";
16
- import { default as ye } from "./editor/components/DraggableItem.js";
17
- import { default as Ge } from "./editor/components/Draggable.js";
18
- import { default as De } from "./editor/components/DropdownItem.js";
19
- import { default as Se } from "./editor/components/Dropdown.js";
20
- import { default as Ae } from "./editor/sidePanel/SidePanel.js";
21
- import { default as Re } from "./editor/sidePanel/Accordion.js";
22
- import { default as ke } from "./editor/sidePanel/ChildObject.js";
23
- import { default as we } from "./editor/sidePanel/ContainerObject.js";
24
- import { default as Ve } from "./editor/sidePanel/inspector/Inspector.js";
25
- import { default as qe } from "./editor/multiView/MultiView.js";
26
- import { default as We } from "./editor/Editor.js";
27
- import { default as Ke } from "./editor/ThreeEditor.js";
28
- import { default as Xe } from "./editor/HermesApp.js";
29
- import { default as Ze } from "./editor/tools/Transform.js";
30
- import { default as $e } from "./editor/tools/splineEditor/Spline.js";
31
- import { default as rr } from "./editor/tools/splineEditor/index.js";
32
- import { default as ar } from "./editor/multiView/InfiniteGridMaterial.js";
33
- import { default as lr } from "./editor/multiView/InfiniteGridNodeMaterial.js";
34
- import { default as fr } from "./editor/multiView/InfiniteGridHelper.js";
35
- import { default as sr } from "./editor/multiView/InfiniteGridHelperGPU.js";
36
- import { default as ir } from "./editor/multiView/DepthNodeMaterial.js";
37
- import { default as xr } from "./editor/multiView/UVMaterial.js";
38
- import { default as cr } from "./editor/multiView/UVNodeMaterial.js";
2
+ import { EDITOR_UTILS as p, convertImageToBase64 as l, determineIcon as f, getSubItem as m, setItemProps as s, stripObject as d, stripScene as i, textureFromSrc as n } from "./editor/sidePanel/utils.js";
3
+ import { capitalize as u, colorToHex as c, copyToClipboard as M, isColor as T, randomID as b } from "./editor/utils.js";
4
+ import { detectMaxFrameRate as h, detectSettings as I } from "./utils/detectSettings.js";
5
+ import { ImageSequenceCapturer as C } from "./utils/ImageSequenceCapturer.js";
6
+ import { clamp as S, cubicBezier as y, damp as E, distance as B, getAngle as D, map as G, mix as P, normalize as H, rgbaToHex as R, roundTo as U } from "./utils/math.js";
7
+ import { animateObjectMaterial as A, animateObjectTransform as N, applyObjectMaterial as k, customizeTheatreElements as w, getObjectMaterialObject as z, getObjectMaterialProps as L, useStudio as V } from "./utils/theatre.js";
8
+ import { ExportTexture as q, anchorGeometry as W, anchorGeometryTL as _, createMask as J, dispose as K, disposeMaterial as Q, disposeTexture as X, hierarchyUUID as Y, orthoCamera as Z, parseModelLite as $, renderToTexture as ee, resetThreeObjects as re, setMaterialBlendAdd as te, setMaterialBlendMultiply as ae, setMaterialBlendNormal as oe, setMaterialBlendScreen as pe, supportsOffscreenCanvas as le, totalThreeObjects as fe, triangle as me, updateCameraOrtho as se, updateCameraOrtho16x9 as de, useMask as ie } from "./utils/three.js";
9
+ import { clearComposerGroups as xe, generateCubemap as ue, inspectComposer as ce, inspectComposerPass as Me } from "./utils/post.js";
10
+ import { ElementProxy as be, WebworkerEventHandlers as ge } from "./webworkers/EventHandling.js";
11
+ import { ElementProxyReceiver as Ie, ProxyManager as Oe } from "./webworkers/ProxyManager.js";
12
+ import { default as je } from "./core/Application.js";
13
+ import { default as ye } from "./core/remote/BaseRemote.js";
14
+ import { default as Be } from "./core/remote/RemoteTheatre.js";
15
+ import { default as Ge } from "./core/remote/RemoteThree.js";
16
+ import { default as He } from "./editor/components/NavButton.js";
17
+ import { default as Ue } from "./editor/components/DraggableItem.js";
18
+ import { default as Ae } from "./editor/components/Draggable.js";
19
+ import { default as ke } from "./editor/components/DropdownItem.js";
20
+ import { default as ze } from "./editor/components/Dropdown.js";
21
+ import { default as Ve } from "./editor/sidePanel/SidePanel.js";
22
+ import { default as qe } from "./editor/sidePanel/Accordion.js";
23
+ import { default as _e } from "./editor/sidePanel/ChildObject.js";
24
+ import { default as Ke } from "./editor/sidePanel/ContainerObject.js";
25
+ import { default as Xe } from "./editor/sidePanel/inspector/Inspector.js";
26
+ import { default as Ze } from "./editor/multiView/MultiView.js";
27
+ import { default as er } from "./editor/Editor.js";
28
+ import { default as tr } from "./editor/ThreeEditor.js";
29
+ import { default as or } from "./editor/HermesApp.js";
30
+ import { default as lr } from "./editor/tools/Transform.js";
31
+ import { default as mr } from "./editor/tools/splineEditor/Spline.js";
32
+ import { default as dr } from "./editor/tools/splineEditor/index.js";
33
+ import { default as nr } from "./editor/multiView/InfiniteGridMaterial.js";
34
+ import { default as ur } from "./editor/multiView/InfiniteGridNodeMaterial.js";
35
+ import { default as Mr } from "./editor/multiView/InfiniteGridHelper.js";
36
+ import { default as br } from "./editor/multiView/InfiniteGridHelperGPU.js";
37
+ import { default as hr } from "./editor/multiView/DepthNodeMaterial.js";
38
+ import { default as Or } from "./editor/multiView/UVMaterial.js";
39
+ import { default as jr } from "./editor/multiView/UVNodeMaterial.js";
39
40
  export {
40
- Re as Accordion,
41
- ce as Application,
42
- be as BaseRemote,
43
- ke as ChildObject,
44
- we as ContainerObject,
45
- ir as DepthNodeMaterial,
46
- Ge as Draggable,
47
- ye as DraggableItem,
48
- Se as Dropdown,
49
- De as DropdownItem,
50
- We as Editor,
51
- se as ElementProxy,
52
- ne as ElementProxyReceiver,
53
- R as ExportTexture,
54
- Xe as HermesApp,
55
- u as ImageSequenceCapturer,
56
- fr as InfiniteGridHelper,
57
- sr as InfiniteGridHelperGPU,
58
- ar as InfiniteGridMaterial,
59
- lr as InfiniteGridNodeMaterial,
60
- Ve as Inspector,
61
- qe as MultiView,
62
- je as NavButton,
63
- xe as ProxyManager,
64
- he as RemoteTheatre,
65
- Ce as RemoteThree,
66
- Ae as SidePanel,
67
- $e as Spline,
68
- rr as SplineEditor,
69
- Ke as ThreeEditor,
70
- Ze as Transform,
71
- xr as UVMaterial,
72
- cr as UVNodeMaterial,
73
- de as WebworkerEventHandlers,
74
- U as anchorGeometry,
75
- k as anchorGeometryTL,
76
- G as animateObjectMaterial,
77
- B as animateObjectTransform,
78
- D as applyObjectMaterial,
79
- l as capitalize,
80
- M as clamp,
81
- oe as clearComposerGroups,
82
- p as colorToHex,
83
- f as copyToClipboard,
84
- v as createMask,
85
- b as cubicBezier,
86
- P as customizeTheatreElements,
87
- T as damp,
41
+ qe as Accordion,
42
+ je as Application,
43
+ ye as BaseRemote,
44
+ _e as ChildObject,
45
+ Ke as ContainerObject,
46
+ hr as DepthNodeMaterial,
47
+ Ae as Draggable,
48
+ Ue as DraggableItem,
49
+ ze as Dropdown,
50
+ ke as DropdownItem,
51
+ p as EDITOR_UTILS,
52
+ er as Editor,
53
+ be as ElementProxy,
54
+ Ie as ElementProxyReceiver,
55
+ q as ExportTexture,
56
+ or as HermesApp,
57
+ C as ImageSequenceCapturer,
58
+ Mr as InfiniteGridHelper,
59
+ br as InfiniteGridHelperGPU,
60
+ nr as InfiniteGridMaterial,
61
+ ur as InfiniteGridNodeMaterial,
62
+ Xe as Inspector,
63
+ Ze as MultiView,
64
+ He as NavButton,
65
+ Oe as ProxyManager,
66
+ Be as RemoteTheatre,
67
+ Ge as RemoteThree,
68
+ Ve as SidePanel,
69
+ mr as Spline,
70
+ dr as SplineEditor,
71
+ tr as ThreeEditor,
72
+ lr as Transform,
73
+ Or as UVMaterial,
74
+ jr as UVNodeMaterial,
75
+ ge as WebworkerEventHandlers,
76
+ W as anchorGeometry,
77
+ _ as anchorGeometryTL,
78
+ A as animateObjectMaterial,
79
+ N as animateObjectTransform,
80
+ k as applyObjectMaterial,
81
+ u as capitalize,
82
+ S as clamp,
83
+ xe as clearComposerGroups,
84
+ c as colorToHex,
85
+ l as convertImageToBase64,
86
+ M as copyToClipboard,
87
+ J as createMask,
88
+ y as cubicBezier,
89
+ w as customizeTheatreElements,
90
+ E as damp,
88
91
  t as defaultTheatreCallback,
89
- i as detectMaxFrameRate,
90
- n as detectSettings,
91
- w as dispose,
92
- z as disposeMaterial,
93
- V as disposeTexture,
94
- h as distance,
95
- le as generateCubemap,
96
- g as getAngle,
97
- S as getObjectMaterialObject,
98
- H as getObjectMaterialProps,
99
- L as hierarchyUUID,
100
- pe as inspectComposer,
101
- fe as inspectComposerPass,
102
- m as isColor,
103
- C as map,
104
- O as mix,
92
+ h as detectMaxFrameRate,
93
+ I as detectSettings,
94
+ f as determineIcon,
95
+ K as dispose,
96
+ Q as disposeMaterial,
97
+ X as disposeTexture,
98
+ B as distance,
99
+ ue as generateCubemap,
100
+ D as getAngle,
101
+ z as getObjectMaterialObject,
102
+ L as getObjectMaterialProps,
103
+ m as getSubItem,
104
+ Y as hierarchyUUID,
105
+ ce as inspectComposer,
106
+ Me as inspectComposerPass,
107
+ T as isColor,
108
+ G as map,
109
+ P as mix,
105
110
  a as noop,
106
- j as normalize,
107
- q as orthoCamera,
108
- F as parseModelLite,
109
- s as randomID,
110
- W as renderToTexture,
111
- J as resetThreeObjects,
112
- I as rgbaToHex,
113
- y as roundTo,
114
- K as setMaterialBlendAdd,
115
- Q as setMaterialBlendMultiply,
116
- X as setMaterialBlendNormal,
117
- Y as setMaterialBlendScreen,
118
- Z as supportsOffscreenCanvas,
119
- _ as totalThreeObjects,
120
- $ as triangle,
121
- ee as updateCameraOrtho,
122
- re as updateCameraOrtho16x9,
123
- te as useMask,
124
- A as useStudio
111
+ H as normalize,
112
+ Z as orthoCamera,
113
+ $ as parseModelLite,
114
+ b as randomID,
115
+ ee as renderToTexture,
116
+ re as resetThreeObjects,
117
+ R as rgbaToHex,
118
+ U as roundTo,
119
+ s as setItemProps,
120
+ te as setMaterialBlendAdd,
121
+ ae as setMaterialBlendMultiply,
122
+ oe as setMaterialBlendNormal,
123
+ pe as setMaterialBlendScreen,
124
+ d as stripObject,
125
+ i as stripScene,
126
+ le as supportsOffscreenCanvas,
127
+ n as textureFromSrc,
128
+ fe as totalThreeObjects,
129
+ me as triangle,
130
+ se as updateCameraOrtho,
131
+ de as updateCameraOrtho16x9,
132
+ ie as useMask,
133
+ V as useStudio
125
134
  };
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "types": "./types/index.d.ts",
9
9
  "type": "module",
10
10
  "sideEffects": ["**/*.css"],
11
- "version": "0.1.41",
11
+ "version": "0.1.42",
12
12
  "homepage": "https://github.com/tomorrowevening/hermes#readme",
13
13
  "bugs": {
14
14
  "url": "https://github.com/tomorrowevening/hermes/issues"
@@ -7,3 +7,10 @@ export declare function stripObject(obj: Object3D): RemoteObject;
7
7
  export declare function getSubItem(child: any, key: string): any;
8
8
  export declare function setItemProps(child: any, key: string, value: any): void;
9
9
  export declare function textureFromSrc(imgSource: string): Promise<Texture>;
10
+ export declare const EDITOR_UTILS: {
11
+ stripObject: typeof stripObject;
12
+ stripScene: typeof stripScene;
13
+ getSubItem: typeof getSubItem;
14
+ setItemProps: typeof setItemProps;
15
+ textureFromSrc: typeof textureFromSrc;
16
+ };
package/types/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './core/types';
2
+ export * from './editor/sidePanel/utils';
2
3
  export * from './editor/utils';
3
4
  export * from './utils/detectSettings';
4
5
  export * from './utils/ImageSequenceCapturer';