@tomorrowevening/hermes 0.1.25 → 0.1.26
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/hermes.cjs.js +93 -81
- package/dist/hermes.es.js +33825 -30283
- package/dist/index-CH1qpLcF.js +8907 -0
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/types/editor/multiView/DepthNodeMaterial.d.ts +4 -0
- package/types/editor/multiView/InfiniteGridHelper.d.ts +0 -1
- package/types/editor/multiView/InfiniteGridHelperGPU.d.ts +7 -0
- package/types/editor/multiView/InfiniteGridNodeMaterial.d.ts +11 -0
- package/types/editor/multiView/MultiView.d.ts +4 -5
- package/types/editor/multiView/UVNodeMaterial.d.ts +4 -0
- package/types/editor/tools/Transform.d.ts +1 -1
- package/types/index.d.ts +4 -0
- package/dist/index-KZEZy9vJ.js +0 -8899
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-
|
|
11
|
+
<script type="module" crossorigin src="/index-CH1qpLcF.js"></script>
|
|
12
12
|
<link rel="stylesheet" crossorigin href="/index-EMVSCFBo.css">
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"module": "./dist/hermes.esm.js",
|
|
8
8
|
"types": "./types/index.d.ts",
|
|
9
9
|
"type": "module",
|
|
10
|
-
"version": "0.1.
|
|
10
|
+
"version": "0.1.26",
|
|
11
11
|
"homepage": "https://github.com/tomorrowevening/hermes#readme",
|
|
12
12
|
"bugs": {
|
|
13
13
|
"url": "https://github.com/tomorrowevening/hermes/issues"
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Mesh } from 'three';
|
|
2
|
+
import InfiniteGridNodeMaterial from './InfiniteGridNodeMaterial';
|
|
3
|
+
import type { InfiniteGridProps } from './InfiniteGridMaterial';
|
|
4
|
+
export default class InfiniteGridHelperGPU extends Mesh {
|
|
5
|
+
gridMaterial: InfiniteGridNodeMaterial;
|
|
6
|
+
constructor(props?: InfiniteGridProps);
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NodeMaterial } from 'three/webgpu';
|
|
2
|
+
import type { InfiniteGridProps } from './InfiniteGridMaterial';
|
|
3
|
+
export default class InfiniteGridNodeMaterial extends NodeMaterial {
|
|
4
|
+
readonly uScale: any;
|
|
5
|
+
readonly uDivisions: any;
|
|
6
|
+
readonly uColor: any;
|
|
7
|
+
readonly uDistance: any;
|
|
8
|
+
readonly uSubgridOpacity: any;
|
|
9
|
+
readonly uGridOpacity: any;
|
|
10
|
+
constructor(props?: InfiniteGridProps);
|
|
11
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Component, ReactNode } from 'react';
|
|
2
|
-
import { Camera, Group, Object3D, OrthographicCamera, PerspectiveCamera, Scene, WebGLRenderer } from 'three';
|
|
3
|
-
import WebGPURenderer from 'three/
|
|
4
|
-
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';
|
|
2
|
+
import { Camera, Group, Mesh, Object3D, OrthographicCamera, PerspectiveCamera, Scene, WebGLRenderer } from 'three';
|
|
3
|
+
import { WebGPURenderer } from 'three/webgpu';
|
|
4
|
+
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
|
|
5
5
|
import RemoteThree from '../../core/remote/RemoteThree';
|
|
6
|
-
import InfiniteGridHelper from './InfiniteGridHelper';
|
|
7
6
|
import { InteractionMode, MultiViewMode } from './MultiViewData';
|
|
8
7
|
import './MultiView.scss';
|
|
9
8
|
type MultiViewProps = {
|
|
@@ -32,7 +31,7 @@ export default class MultiView extends Component<MultiViewProps, MultiViewState>
|
|
|
32
31
|
currentCamera: PerspectiveCamera | OrthographicCamera;
|
|
33
32
|
currentWindow: any;
|
|
34
33
|
helpersContainer: Group<import("three").Object3DEventMap>;
|
|
35
|
-
grid
|
|
34
|
+
grid?: Mesh;
|
|
36
35
|
private cameraHelpers;
|
|
37
36
|
private lightHelpers;
|
|
38
37
|
private interactionHelper;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Camera, EventDispatcher } from 'three';
|
|
2
|
-
import { TransformControls } from 'three/examples/jsm/controls/TransformControls';
|
|
2
|
+
import { TransformControls } from 'three/examples/jsm/controls/TransformControls.js';
|
|
3
3
|
import RemoteThree from '../../core/remote/RemoteThree';
|
|
4
4
|
export default class Transform extends EventDispatcher {
|
|
5
5
|
static DRAG_START: string;
|
package/types/index.d.ts
CHANGED
|
@@ -29,5 +29,9 @@ export { default as Transform } from './editor/tools/Transform';
|
|
|
29
29
|
export { default as Spline } from './editor/tools/splineEditor/Spline';
|
|
30
30
|
export { default as SplineEditor } from './editor/tools/splineEditor';
|
|
31
31
|
export { default as InfiniteGridMaterial } from './editor/multiView/InfiniteGridMaterial';
|
|
32
|
+
export { default as InfiniteGridNodeMaterial } from './editor/multiView/InfiniteGridNodeMaterial';
|
|
32
33
|
export { default as InfiniteGridHelper } from './editor/multiView/InfiniteGridHelper';
|
|
34
|
+
export { default as InfiniteGridHelperGPU } from './editor/multiView/InfiniteGridHelperGPU';
|
|
35
|
+
export { default as DepthNodeMaterial } from './editor/multiView/DepthNodeMaterial';
|
|
33
36
|
export { default as UVMaterial } from './editor/multiView/UVMaterial';
|
|
37
|
+
export { default as UVNodeMaterial } from './editor/multiView/UVNodeMaterial';
|