rhodonite 0.14.1 → 0.14.2
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/README.md +2 -25
- package/VERSION-FILE +1 -1
- package/dist/esm/effekseer/main.d.ts +1 -1
- package/dist/esm/foundation/geometry/types/GeometryTypes.d.ts +1 -1
- package/dist/esm/foundation/math/IdentityMatrix33.d.ts +3 -3
- package/dist/esm/foundation/math/IdentityMatrix44.d.ts +3 -3
- package/dist/esm/foundation/system/System.d.ts +1 -1
- package/dist/esm/import.d.ts +7 -0
- package/dist/esm/index.d.ts +2 -7
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/TypeConverter.d.ts +32 -32
- package/dist/esm/webgl/WebGLStrategyCommonMethod.d.ts +2 -2
- package/dist/esm/webgl/main.d.ts +1 -1
- package/dist/esm/webgl/shaders/nodes/ClassicShadingShader.d.ts +1 -1
- package/dist/esm/webgl/shaders/nodes/EndShader.d.ts +1 -1
- package/dist/esm/webgl/types/CommonTypes.d.ts +1 -1
- package/dist/esm/xr/WebARSystem.d.ts +1 -1
- package/dist/esm/xr/WebXRSystem.d.ts +4 -4
- package/dist/esmdev/effekseer/main.d.ts +1 -1
- package/dist/esmdev/foundation/geometry/types/GeometryTypes.d.ts +1 -1
- package/dist/esmdev/foundation/math/IdentityMatrix33.d.ts +3 -3
- package/dist/esmdev/foundation/math/IdentityMatrix44.d.ts +3 -3
- package/dist/esmdev/foundation/math/MathClassUtil.d.ts +6 -6
- package/dist/esmdev/foundation/math/Matrix33.d.ts +1 -1
- package/dist/esmdev/foundation/math/Matrix44.d.ts +1 -1
- package/dist/esmdev/foundation/system/System.d.ts +1 -1
- package/dist/esmdev/import.d.ts +7 -0
- package/dist/esmdev/index.d.ts +2 -7
- package/dist/esmdev/index.js +11 -11
- package/dist/esmdev/types/TypeConverter.d.ts +32 -32
- package/dist/esmdev/webgl/WebGLStrategyCommonMethod.d.ts +2 -2
- package/dist/esmdev/webgl/main.d.ts +1 -1
- package/dist/esmdev/webgl/shaders/nodes/ClassicShadingShader.d.ts +1 -1
- package/dist/esmdev/webgl/shaders/nodes/EndShader.d.ts +1 -1
- package/dist/esmdev/webgl/types/CommonTypes.d.ts +1 -1
- package/dist/esmdev/xr/WebARSystem.d.ts +1 -1
- package/dist/esmdev/xr/WebXRSystem.d.ts +4 -4
- package/package.json +1 -3
package/README.md
CHANGED
|
@@ -94,30 +94,7 @@ If you get an error like "webxr-input-profiles not found" when building a projec
|
|
|
94
94
|
|
|
95
95
|
### In TypeScript
|
|
96
96
|
|
|
97
|
-
There are
|
|
98
|
-
|
|
99
|
-
#### Using CommonJS package
|
|
100
|
-
|
|
101
|
-
You need a bundler (e.g., Webpack) to import the Rhodonite CommonJS package.
|
|
102
|
-
|
|
103
|
-
```typescript
|
|
104
|
-
import Rn from 'rhodonite';
|
|
105
|
-
|
|
106
|
-
// Init Rhodonite
|
|
107
|
-
await Rn.System.init({
|
|
108
|
-
approach: Rn.ProcessApproach.DataTexture,
|
|
109
|
-
canvas: document.getElementById('world') as HTMLCanvasElement,
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
// create a Plane mesh
|
|
113
|
-
const planeEntity = Rn.MeshHelper.createPlane();
|
|
114
|
-
planeEntity.eulerAngles = Rn.Vector3.fromCopy3(Math.PI * 0.5, 0, 0);
|
|
115
|
-
|
|
116
|
-
// Render Loop
|
|
117
|
-
Rn.System.startRenderLoop(() => {
|
|
118
|
-
Rn.System.processAuto();
|
|
119
|
-
});
|
|
120
|
-
```
|
|
97
|
+
There are two package versions of Rhodonite: ESModule and UMD.
|
|
121
98
|
|
|
122
99
|
#### Using ESModule package
|
|
123
100
|
|
|
@@ -129,7 +106,7 @@ You don't need any bundler.
|
|
|
129
106
|
|
|
130
107
|
```typescript
|
|
131
108
|
// main.ts
|
|
132
|
-
import Rn from 'rhodonite
|
|
109
|
+
import Rn from 'rhodonite';
|
|
133
110
|
// import Rn from 'rhodonite/dist/esmdev/index.js'; // use this if you want to display the source map or step through the library
|
|
134
111
|
|
|
135
112
|
// Init Rhodonite
|
package/VERSION-FILE
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
v0.14.
|
|
1
|
+
v0.14.2-0-gea9326ff3-dirty
|
|
2
2
|
main
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EffekseerComponent } from './EffekseerComponent';
|
|
2
2
|
export declare const Effekseer: Readonly<{
|
|
3
3
|
EffekseerComponent: typeof EffekseerComponent;
|
|
4
|
-
createEffekseerEntity: () => import("
|
|
4
|
+
createEffekseerEntity: () => import("../foundation").IEntity & import("../foundation").ITransformEntityMethods & import("../foundation").ISceneGraphEntityMethods & import("./EffekseerComponent").IEffekseerEntityMethods;
|
|
5
5
|
}>;
|
|
@@ -42,16 +42,16 @@ export declare class IdentityMatrix33 extends AbstractMatrix implements IMatrix,
|
|
|
42
42
|
readonly __webgpuStr: string;
|
|
43
43
|
readonly __wgslStr: string;
|
|
44
44
|
readonly __isArray: boolean;
|
|
45
|
-
readonly __vec4SizeOfProperty: import("
|
|
45
|
+
readonly __vec4SizeOfProperty: import("../../types").IndexOf16Bytes;
|
|
46
46
|
readonly __dummyStr: "MAT3";
|
|
47
47
|
readonly webgpu: string;
|
|
48
48
|
readonly wgsl: string;
|
|
49
|
-
getNumberOfComponents(): import("
|
|
49
|
+
getNumberOfComponents(): import("../../types").Count;
|
|
50
50
|
getGlslStr(componentType: import("..").ComponentTypeEnum): string;
|
|
51
51
|
getGlslInitialValue(componentType: import("..").ComponentTypeEnum): string;
|
|
52
52
|
getWgslInitialValue(componentType: import("..").ComponentTypeEnum): string;
|
|
53
53
|
toWGSLType(componentType: import("..").ComponentTypeEnum): string;
|
|
54
|
-
getVec4SizeOfProperty(): import("
|
|
54
|
+
getVec4SizeOfProperty(): import("../../types").IndexOf16Bytes;
|
|
55
55
|
readonly index: number;
|
|
56
56
|
readonly symbol: symbol;
|
|
57
57
|
readonly str: string;
|
|
@@ -48,16 +48,16 @@ export declare class IdentityMatrix44 extends AbstractMatrix implements IMatrix,
|
|
|
48
48
|
readonly __webgpuStr: string;
|
|
49
49
|
readonly __wgslStr: string;
|
|
50
50
|
readonly __isArray: boolean;
|
|
51
|
-
readonly __vec4SizeOfProperty: import("
|
|
51
|
+
readonly __vec4SizeOfProperty: import("../../types").IndexOf16Bytes;
|
|
52
52
|
readonly __dummyStr: "MAT4";
|
|
53
53
|
readonly webgpu: string;
|
|
54
54
|
readonly wgsl: string;
|
|
55
|
-
getNumberOfComponents(): import("
|
|
55
|
+
getNumberOfComponents(): import("../../types").Count;
|
|
56
56
|
getGlslStr(componentType: import("..").ComponentTypeEnum): string;
|
|
57
57
|
getGlslInitialValue(componentType: import("..").ComponentTypeEnum): string;
|
|
58
58
|
getWgslInitialValue(componentType: import("..").ComponentTypeEnum): string;
|
|
59
59
|
toWGSLType(componentType: import("..").ComponentTypeEnum): string;
|
|
60
|
-
getVec4SizeOfProperty(): import("
|
|
60
|
+
getVec4SizeOfProperty(): import("../../types").IndexOf16Bytes;
|
|
61
61
|
readonly index: number;
|
|
62
62
|
readonly symbol: symbol;
|
|
63
63
|
readonly str: string;
|
|
@@ -119,6 +119,6 @@ export declare class System {
|
|
|
119
119
|
static get processApproach(): import("../definitions/ProcessApproach").ProcessApproachClass;
|
|
120
120
|
static resizeCanvas(width: number, height: number): void;
|
|
121
121
|
static getCanvasSize(): [number, number];
|
|
122
|
-
static getCurrentWebGLContextWrapper(): import("
|
|
122
|
+
static getCurrentWebGLContextWrapper(): import("../../webgl").WebGLContextWrapper | undefined;
|
|
123
123
|
}
|
|
124
124
|
export {};
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export * from './webgpu/index';
|
|
4
|
-
export * from './types/index';
|
|
5
|
-
export * from './effekseer/index';
|
|
6
|
-
export * from './xr/index';
|
|
7
|
-
export * from './version';
|
|
1
|
+
import * as Rn from './import';
|
|
2
|
+
export default Rn;
|