soonspacejs 2.3.19 → 2.3.20
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.esm.js +6 -6
- package/dist/index.js +6 -6
- package/package.json +2 -2
- package/types/Interface/viewport.d.ts +1 -0
- package/types/Library/Circle.d.ts +2 -0
- package/types/Library/Line.d.ts +2 -0
- package/types/Library/Point.d.ts +2 -0
- package/types/Library/Polygon.d.ts +2 -0
- package/types/Shared/map.d.ts +9 -1
- package/types/Viewport/ViewHelper.d.ts +7 -0
- package/types/Viewport/index.d.ts +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "soonspacejs",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.20",
|
|
4
4
|
"description": "soonspacejs 2.x",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"localforage": "1.9.0",
|
|
22
22
|
"three": "0.139.0"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "e1703d68f492f42e428f921e5436aa425346d20e"
|
|
25
25
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { IColor } from '../Interface';
|
|
2
2
|
import { BaseMesh, BaseMeshInfo } from './BaseMesh';
|
|
3
|
+
import { GradientTextureOptions } from '../Shared';
|
|
3
4
|
interface CircleInfo extends BaseMeshInfo {
|
|
4
5
|
radius?: number;
|
|
5
6
|
color?: IColor;
|
|
6
7
|
opacity?: number;
|
|
8
|
+
gradient?: GradientTextureOptions;
|
|
7
9
|
}
|
|
8
10
|
declare type SetOptionsCircleInfo = Omit<CircleInfo, 'id'>;
|
|
9
11
|
declare class Circle extends BaseMesh {
|
package/types/Library/Line.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GradientTextureOptions } from '../Shared';
|
|
1
2
|
import { Position, IColor } from '../Interface';
|
|
2
3
|
import { BaseMesh, BaseMeshInfo } from './BaseMesh';
|
|
3
4
|
interface LineInfo extends BaseMeshInfo {
|
|
@@ -5,6 +6,7 @@ interface LineInfo extends BaseMeshInfo {
|
|
|
5
6
|
width?: number;
|
|
6
7
|
color?: IColor;
|
|
7
8
|
opacity?: number;
|
|
9
|
+
gradient?: GradientTextureOptions;
|
|
8
10
|
}
|
|
9
11
|
declare type SetOptionsLineInfo = Omit<LineInfo, 'id'>;
|
|
10
12
|
declare class Line extends BaseMesh {
|
package/types/Library/Point.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { BaseMesh, BaseMeshInfo } from './BaseMesh';
|
|
2
2
|
import { IColor } from '../Interface';
|
|
3
|
+
import { GradientTextureOptions } from '../Shared';
|
|
3
4
|
interface PointInfo extends BaseMeshInfo {
|
|
4
5
|
radius?: number;
|
|
5
6
|
color?: IColor;
|
|
6
7
|
opacity?: number;
|
|
8
|
+
gradient?: GradientTextureOptions;
|
|
7
9
|
}
|
|
8
10
|
declare type SetOptionsPointInfo = Omit<PointInfo, 'id'>;
|
|
9
11
|
declare class Point extends BaseMesh {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { IColor, PlaneIVector2 } from '../Interface';
|
|
2
2
|
import { BaseMesh, BaseMeshInfo } from './BaseMesh';
|
|
3
|
+
import { GradientTextureOptions } from '../Shared';
|
|
3
4
|
interface PolygonInfo extends BaseMeshInfo {
|
|
4
5
|
yHeight: number;
|
|
5
6
|
points: PlaneIVector2[];
|
|
6
7
|
color?: IColor;
|
|
7
8
|
opacity?: number;
|
|
9
|
+
gradient?: GradientTextureOptions;
|
|
8
10
|
}
|
|
9
11
|
declare type SetOptionsPolygonInfo = Omit<PolygonInfo, 'id'>;
|
|
10
12
|
declare class Polygon extends BaseMesh {
|
package/types/Shared/map.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
import { CubeTexture } from 'three';
|
|
1
|
+
import { CubeTexture, Texture } from 'three';
|
|
2
|
+
import { IColor } from '../Interface';
|
|
2
3
|
declare function getCubeTexture(dirPath: string, fileNames?: string[]): Promise<CubeTexture>;
|
|
3
4
|
export { getCubeTexture, };
|
|
5
|
+
interface GradientTextureOptions {
|
|
6
|
+
colors: IColor[];
|
|
7
|
+
stops?: number[];
|
|
8
|
+
size?: number;
|
|
9
|
+
}
|
|
10
|
+
declare function gradientTexture(options?: GradientTextureOptions): Texture | null;
|
|
11
|
+
export { GradientTextureOptions, gradientTexture, };
|
|
@@ -10,6 +10,7 @@ import { FullFreeControls } from '../Controls';
|
|
|
10
10
|
import { Model } from '../Library';
|
|
11
11
|
import { ColorSpace, SkyOptions, IColor, OffsetPoint, SceneEventType, Position, ViewportOptions, ViewportState, ModelAnimationFindFunc, SignalsState, BloomOptions, SobelOptions } from '../Interface';
|
|
12
12
|
import Info from './Info';
|
|
13
|
+
import { ViewHelper } from './ViewHelper';
|
|
13
14
|
export declare const innerRenderState: Record<string, boolean>;
|
|
14
15
|
declare class Viewport {
|
|
15
16
|
options: ViewportOptions;
|
|
@@ -45,9 +46,11 @@ declare class Viewport {
|
|
|
45
46
|
private selectModel;
|
|
46
47
|
private selectPoi;
|
|
47
48
|
private _loop;
|
|
49
|
+
viewHelper: ViewHelper;
|
|
48
50
|
constructor(options: ViewportOptions);
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
_initInfo(): void;
|
|
52
|
+
_initStats(): void;
|
|
53
|
+
_initViewHelper(): void;
|
|
51
54
|
setSobel(options?: SobelOptions): void;
|
|
52
55
|
/**
|
|
53
56
|
***************************** renderer ***************************
|