@project-skymap/library 0.2.1 → 0.4.0
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.cjs +453 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +452 -42
- package/dist/index.js.map +1 -1
- package/package.json +8 -1
package/dist/index.d.cts
CHANGED
|
@@ -29,9 +29,17 @@ type StarMapConfig = {
|
|
|
29
29
|
camera?: {
|
|
30
30
|
fov?: number;
|
|
31
31
|
z?: number;
|
|
32
|
+
lon?: number;
|
|
33
|
+
lat?: number;
|
|
32
34
|
};
|
|
33
35
|
arrangement?: StarArrangement;
|
|
36
|
+
polygons?: Record<string, Vector3Arr[]>;
|
|
34
37
|
editable?: boolean;
|
|
38
|
+
showBookLabels?: boolean;
|
|
39
|
+
showDivisionLabels?: boolean;
|
|
40
|
+
showChapterLabels?: boolean;
|
|
41
|
+
showConstellationLines?: boolean;
|
|
42
|
+
showDivisionBoundaries?: boolean;
|
|
35
43
|
model?: SceneModel;
|
|
36
44
|
data?: any;
|
|
37
45
|
adapter?: (data: any) => SceneModel;
|
|
@@ -29131,4 +29139,18 @@ var defaultStars = {
|
|
|
29131
29139
|
links: links
|
|
29132
29140
|
};
|
|
29133
29141
|
|
|
29134
|
-
|
|
29142
|
+
interface GenerateOptions {
|
|
29143
|
+
seed: number;
|
|
29144
|
+
discRadius: number;
|
|
29145
|
+
milkyWayEnabled: boolean;
|
|
29146
|
+
milkyWayAngle: number;
|
|
29147
|
+
milkyWayWidth: number;
|
|
29148
|
+
milkyWayStrength: number;
|
|
29149
|
+
noiseScale: number;
|
|
29150
|
+
noiseStrength: number;
|
|
29151
|
+
clusterSpread: number;
|
|
29152
|
+
}
|
|
29153
|
+
declare const defaultGenerateOptions: GenerateOptions;
|
|
29154
|
+
declare function generateArrangement(bible: BibleJSON, options?: Partial<GenerateOptions>): StarArrangement;
|
|
29155
|
+
|
|
29156
|
+
export { type BibleJSON, type GenerateOptions, type SceneLink, type SceneModel, type SceneNode, type StarArrangement, StarMap, type StarMapConfig, type StarMapHandle, type StarMapProps, bibleToSceneModel, defaultGenerateOptions, defaultStars, generateArrangement };
|
package/dist/index.d.ts
CHANGED
|
@@ -29,9 +29,17 @@ type StarMapConfig = {
|
|
|
29
29
|
camera?: {
|
|
30
30
|
fov?: number;
|
|
31
31
|
z?: number;
|
|
32
|
+
lon?: number;
|
|
33
|
+
lat?: number;
|
|
32
34
|
};
|
|
33
35
|
arrangement?: StarArrangement;
|
|
36
|
+
polygons?: Record<string, Vector3Arr[]>;
|
|
34
37
|
editable?: boolean;
|
|
38
|
+
showBookLabels?: boolean;
|
|
39
|
+
showDivisionLabels?: boolean;
|
|
40
|
+
showChapterLabels?: boolean;
|
|
41
|
+
showConstellationLines?: boolean;
|
|
42
|
+
showDivisionBoundaries?: boolean;
|
|
35
43
|
model?: SceneModel;
|
|
36
44
|
data?: any;
|
|
37
45
|
adapter?: (data: any) => SceneModel;
|
|
@@ -29131,4 +29139,18 @@ var defaultStars = {
|
|
|
29131
29139
|
links: links
|
|
29132
29140
|
};
|
|
29133
29141
|
|
|
29134
|
-
|
|
29142
|
+
interface GenerateOptions {
|
|
29143
|
+
seed: number;
|
|
29144
|
+
discRadius: number;
|
|
29145
|
+
milkyWayEnabled: boolean;
|
|
29146
|
+
milkyWayAngle: number;
|
|
29147
|
+
milkyWayWidth: number;
|
|
29148
|
+
milkyWayStrength: number;
|
|
29149
|
+
noiseScale: number;
|
|
29150
|
+
noiseStrength: number;
|
|
29151
|
+
clusterSpread: number;
|
|
29152
|
+
}
|
|
29153
|
+
declare const defaultGenerateOptions: GenerateOptions;
|
|
29154
|
+
declare function generateArrangement(bible: BibleJSON, options?: Partial<GenerateOptions>): StarArrangement;
|
|
29155
|
+
|
|
29156
|
+
export { type BibleJSON, type GenerateOptions, type SceneLink, type SceneModel, type SceneNode, type StarArrangement, StarMap, type StarMapConfig, type StarMapHandle, type StarMapProps, bibleToSceneModel, defaultGenerateOptions, defaultStars, generateArrangement };
|