@project-skymap/library 0.7.5 → 0.8.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 +2127 -503
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +78 -1
- package/dist/index.d.ts +78 -1
- package/dist/index.js +2126 -502
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -29,6 +29,58 @@ type StarArrangement = {
|
|
|
29
29
|
position: [number, number, number];
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
+
type LabelClassKey = "division" | "book" | "group" | "chapter";
|
|
33
|
+
type LabelClassBehavior = {
|
|
34
|
+
minFov?: number;
|
|
35
|
+
maxFov?: number;
|
|
36
|
+
priority?: number;
|
|
37
|
+
mode?: "floating" | "pinned";
|
|
38
|
+
maxOverlapPx?: number;
|
|
39
|
+
radialFadeStart?: number;
|
|
40
|
+
radialFadeEnd?: number;
|
|
41
|
+
fadeDuration?: number;
|
|
42
|
+
};
|
|
43
|
+
type LabelBehaviorConfig = {
|
|
44
|
+
hideBackFacing?: boolean;
|
|
45
|
+
overlapPaddingPx?: number;
|
|
46
|
+
reappearDelayMs?: number;
|
|
47
|
+
classes?: Partial<Record<LabelClassKey, LabelClassBehavior>>;
|
|
48
|
+
};
|
|
49
|
+
type HorizonSamplePoint = {
|
|
50
|
+
azDeg: number;
|
|
51
|
+
altDeg: number;
|
|
52
|
+
};
|
|
53
|
+
type HorizonProfile = {
|
|
54
|
+
listMode?: "azDeg_altDeg";
|
|
55
|
+
angleRotateZDeg?: number;
|
|
56
|
+
points: HorizonSamplePoint[];
|
|
57
|
+
};
|
|
58
|
+
type HorizonAtmosphereConfig = {
|
|
59
|
+
fogVisible?: boolean;
|
|
60
|
+
fogBandTopAltDeg?: number;
|
|
61
|
+
fogBandBottomAltDeg?: number;
|
|
62
|
+
fogIntensity?: number;
|
|
63
|
+
minimalBrightness?: number;
|
|
64
|
+
minimalAltitudeDeg?: number;
|
|
65
|
+
};
|
|
66
|
+
type HorizonThemeConfig = {
|
|
67
|
+
id: string;
|
|
68
|
+
label: string;
|
|
69
|
+
source: "procedural" | "polygonal" | "fisheye" | "spherical";
|
|
70
|
+
profile?: HorizonProfile;
|
|
71
|
+
groundColor?: string;
|
|
72
|
+
horizonLineColor?: string;
|
|
73
|
+
horizonLineThickness?: number;
|
|
74
|
+
atmosphere?: HorizonAtmosphereConfig;
|
|
75
|
+
notes?: string;
|
|
76
|
+
};
|
|
77
|
+
type SceneMechanicsDebugConfig = {
|
|
78
|
+
projectionBlendOverride?: number | null;
|
|
79
|
+
disableZenithBias?: boolean;
|
|
80
|
+
disableZenithFlatten?: boolean;
|
|
81
|
+
disableHorizonTheme?: boolean;
|
|
82
|
+
horizonDiagnostics?: boolean;
|
|
83
|
+
};
|
|
32
84
|
type StarMapConfig = {
|
|
33
85
|
data?: any;
|
|
34
86
|
adapter?: (data: any) => SceneModel;
|
|
@@ -40,20 +92,32 @@ type StarMapConfig = {
|
|
|
40
92
|
labelColors?: Record<string, string>;
|
|
41
93
|
constellations?: any;
|
|
42
94
|
showConstellationArt?: boolean;
|
|
95
|
+
constellationBaseOpacity?: number;
|
|
43
96
|
showConstellationLines?: boolean;
|
|
44
97
|
showDivisionBoundaries?: boolean;
|
|
45
98
|
showBackdropStars?: boolean;
|
|
46
99
|
backdropStarsCount?: number;
|
|
100
|
+
backdropWideFovGain?: number;
|
|
101
|
+
backdropSizeExponent?: number;
|
|
102
|
+
backdropEnergy?: number;
|
|
47
103
|
showAtmosphere?: boolean;
|
|
104
|
+
showMoon?: boolean;
|
|
105
|
+
showSunrise?: boolean;
|
|
106
|
+
showMilkyWay?: boolean;
|
|
107
|
+
starSizeExponent?: number;
|
|
108
|
+
starSizeScale?: number;
|
|
48
109
|
showBookLabels?: boolean;
|
|
49
110
|
showChapterLabels?: boolean;
|
|
50
111
|
showDivisionLabels?: boolean;
|
|
51
112
|
showGroupLabels?: boolean;
|
|
113
|
+
labelBehavior?: LabelBehaviorConfig;
|
|
52
114
|
groups?: Record<string, {
|
|
53
115
|
name: string;
|
|
54
116
|
start: number;
|
|
55
117
|
end: number;
|
|
56
118
|
}[]>;
|
|
119
|
+
horizonTheme?: HorizonThemeConfig;
|
|
120
|
+
horizonThemes?: HorizonThemeConfig[];
|
|
57
121
|
editable?: boolean;
|
|
58
122
|
projection?: "perspective" | "stereographic" | "blended";
|
|
59
123
|
camera?: {
|
|
@@ -61,6 +125,9 @@ type StarMapConfig = {
|
|
|
61
125
|
lat?: number;
|
|
62
126
|
};
|
|
63
127
|
fitProjection?: boolean;
|
|
128
|
+
debug?: {
|
|
129
|
+
sceneMechanics?: SceneMechanicsDebugConfig;
|
|
130
|
+
};
|
|
64
131
|
};
|
|
65
132
|
type SceneLink = {
|
|
66
133
|
source: string;
|
|
@@ -78,9 +145,19 @@ type ConstellationConfig = {
|
|
|
78
145
|
center: null | [number, number];
|
|
79
146
|
radius: number;
|
|
80
147
|
rotationDeg: number;
|
|
148
|
+
aspectRatio?: number;
|
|
81
149
|
opacity: number;
|
|
82
150
|
blend: string;
|
|
83
151
|
zBias: number;
|
|
152
|
+
linePaths?: {
|
|
153
|
+
weight?: "thin" | "normal" | "bold";
|
|
154
|
+
nodes: string[];
|
|
155
|
+
}[];
|
|
156
|
+
lineSegments?: {
|
|
157
|
+
weight?: "thin" | "normal" | "bold";
|
|
158
|
+
from: string;
|
|
159
|
+
to: string;
|
|
160
|
+
}[];
|
|
84
161
|
fade: {
|
|
85
162
|
zoomInStart: number;
|
|
86
163
|
zoomInEnd: number;
|
|
@@ -29247,4 +29324,4 @@ interface Projection {
|
|
|
29247
29324
|
type ProjectionId = "perspective" | "stereographic";
|
|
29248
29325
|
declare const PROJECTIONS: Record<ProjectionId, () => Projection>;
|
|
29249
29326
|
|
|
29250
|
-
export { type BibleJSON, type ConstellationConfig, type GenerateOptions, type HierarchyFilter, PROJECTIONS, type Projection, type ProjectionId, type SceneLink, type SceneModel, type SceneNode, type StarArrangement, StarMap, type StarMapConfig, type StarMapHandle, type StarMapProps, bibleToSceneModel, defaultGenerateOptions, defaultStars, generateArrangement };
|
|
29327
|
+
export { type BibleJSON, type ConstellationConfig, type GenerateOptions, type HierarchyFilter, type HorizonAtmosphereConfig, type HorizonProfile, type HorizonSamplePoint, type HorizonThemeConfig, PROJECTIONS, type Projection, type ProjectionId, type SceneLink, type SceneMechanicsDebugConfig, type SceneModel, type SceneNode, type StarArrangement, StarMap, type StarMapConfig, type StarMapHandle, type StarMapProps, bibleToSceneModel, defaultGenerateOptions, defaultStars, generateArrangement };
|
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,58 @@ type StarArrangement = {
|
|
|
29
29
|
position: [number, number, number];
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
+
type LabelClassKey = "division" | "book" | "group" | "chapter";
|
|
33
|
+
type LabelClassBehavior = {
|
|
34
|
+
minFov?: number;
|
|
35
|
+
maxFov?: number;
|
|
36
|
+
priority?: number;
|
|
37
|
+
mode?: "floating" | "pinned";
|
|
38
|
+
maxOverlapPx?: number;
|
|
39
|
+
radialFadeStart?: number;
|
|
40
|
+
radialFadeEnd?: number;
|
|
41
|
+
fadeDuration?: number;
|
|
42
|
+
};
|
|
43
|
+
type LabelBehaviorConfig = {
|
|
44
|
+
hideBackFacing?: boolean;
|
|
45
|
+
overlapPaddingPx?: number;
|
|
46
|
+
reappearDelayMs?: number;
|
|
47
|
+
classes?: Partial<Record<LabelClassKey, LabelClassBehavior>>;
|
|
48
|
+
};
|
|
49
|
+
type HorizonSamplePoint = {
|
|
50
|
+
azDeg: number;
|
|
51
|
+
altDeg: number;
|
|
52
|
+
};
|
|
53
|
+
type HorizonProfile = {
|
|
54
|
+
listMode?: "azDeg_altDeg";
|
|
55
|
+
angleRotateZDeg?: number;
|
|
56
|
+
points: HorizonSamplePoint[];
|
|
57
|
+
};
|
|
58
|
+
type HorizonAtmosphereConfig = {
|
|
59
|
+
fogVisible?: boolean;
|
|
60
|
+
fogBandTopAltDeg?: number;
|
|
61
|
+
fogBandBottomAltDeg?: number;
|
|
62
|
+
fogIntensity?: number;
|
|
63
|
+
minimalBrightness?: number;
|
|
64
|
+
minimalAltitudeDeg?: number;
|
|
65
|
+
};
|
|
66
|
+
type HorizonThemeConfig = {
|
|
67
|
+
id: string;
|
|
68
|
+
label: string;
|
|
69
|
+
source: "procedural" | "polygonal" | "fisheye" | "spherical";
|
|
70
|
+
profile?: HorizonProfile;
|
|
71
|
+
groundColor?: string;
|
|
72
|
+
horizonLineColor?: string;
|
|
73
|
+
horizonLineThickness?: number;
|
|
74
|
+
atmosphere?: HorizonAtmosphereConfig;
|
|
75
|
+
notes?: string;
|
|
76
|
+
};
|
|
77
|
+
type SceneMechanicsDebugConfig = {
|
|
78
|
+
projectionBlendOverride?: number | null;
|
|
79
|
+
disableZenithBias?: boolean;
|
|
80
|
+
disableZenithFlatten?: boolean;
|
|
81
|
+
disableHorizonTheme?: boolean;
|
|
82
|
+
horizonDiagnostics?: boolean;
|
|
83
|
+
};
|
|
32
84
|
type StarMapConfig = {
|
|
33
85
|
data?: any;
|
|
34
86
|
adapter?: (data: any) => SceneModel;
|
|
@@ -40,20 +92,32 @@ type StarMapConfig = {
|
|
|
40
92
|
labelColors?: Record<string, string>;
|
|
41
93
|
constellations?: any;
|
|
42
94
|
showConstellationArt?: boolean;
|
|
95
|
+
constellationBaseOpacity?: number;
|
|
43
96
|
showConstellationLines?: boolean;
|
|
44
97
|
showDivisionBoundaries?: boolean;
|
|
45
98
|
showBackdropStars?: boolean;
|
|
46
99
|
backdropStarsCount?: number;
|
|
100
|
+
backdropWideFovGain?: number;
|
|
101
|
+
backdropSizeExponent?: number;
|
|
102
|
+
backdropEnergy?: number;
|
|
47
103
|
showAtmosphere?: boolean;
|
|
104
|
+
showMoon?: boolean;
|
|
105
|
+
showSunrise?: boolean;
|
|
106
|
+
showMilkyWay?: boolean;
|
|
107
|
+
starSizeExponent?: number;
|
|
108
|
+
starSizeScale?: number;
|
|
48
109
|
showBookLabels?: boolean;
|
|
49
110
|
showChapterLabels?: boolean;
|
|
50
111
|
showDivisionLabels?: boolean;
|
|
51
112
|
showGroupLabels?: boolean;
|
|
113
|
+
labelBehavior?: LabelBehaviorConfig;
|
|
52
114
|
groups?: Record<string, {
|
|
53
115
|
name: string;
|
|
54
116
|
start: number;
|
|
55
117
|
end: number;
|
|
56
118
|
}[]>;
|
|
119
|
+
horizonTheme?: HorizonThemeConfig;
|
|
120
|
+
horizonThemes?: HorizonThemeConfig[];
|
|
57
121
|
editable?: boolean;
|
|
58
122
|
projection?: "perspective" | "stereographic" | "blended";
|
|
59
123
|
camera?: {
|
|
@@ -61,6 +125,9 @@ type StarMapConfig = {
|
|
|
61
125
|
lat?: number;
|
|
62
126
|
};
|
|
63
127
|
fitProjection?: boolean;
|
|
128
|
+
debug?: {
|
|
129
|
+
sceneMechanics?: SceneMechanicsDebugConfig;
|
|
130
|
+
};
|
|
64
131
|
};
|
|
65
132
|
type SceneLink = {
|
|
66
133
|
source: string;
|
|
@@ -78,9 +145,19 @@ type ConstellationConfig = {
|
|
|
78
145
|
center: null | [number, number];
|
|
79
146
|
radius: number;
|
|
80
147
|
rotationDeg: number;
|
|
148
|
+
aspectRatio?: number;
|
|
81
149
|
opacity: number;
|
|
82
150
|
blend: string;
|
|
83
151
|
zBias: number;
|
|
152
|
+
linePaths?: {
|
|
153
|
+
weight?: "thin" | "normal" | "bold";
|
|
154
|
+
nodes: string[];
|
|
155
|
+
}[];
|
|
156
|
+
lineSegments?: {
|
|
157
|
+
weight?: "thin" | "normal" | "bold";
|
|
158
|
+
from: string;
|
|
159
|
+
to: string;
|
|
160
|
+
}[];
|
|
84
161
|
fade: {
|
|
85
162
|
zoomInStart: number;
|
|
86
163
|
zoomInEnd: number;
|
|
@@ -29247,4 +29324,4 @@ interface Projection {
|
|
|
29247
29324
|
type ProjectionId = "perspective" | "stereographic";
|
|
29248
29325
|
declare const PROJECTIONS: Record<ProjectionId, () => Projection>;
|
|
29249
29326
|
|
|
29250
|
-
export { type BibleJSON, type ConstellationConfig, type GenerateOptions, type HierarchyFilter, PROJECTIONS, type Projection, type ProjectionId, type SceneLink, type SceneModel, type SceneNode, type StarArrangement, StarMap, type StarMapConfig, type StarMapHandle, type StarMapProps, bibleToSceneModel, defaultGenerateOptions, defaultStars, generateArrangement };
|
|
29327
|
+
export { type BibleJSON, type ConstellationConfig, type GenerateOptions, type HierarchyFilter, type HorizonAtmosphereConfig, type HorizonProfile, type HorizonSamplePoint, type HorizonThemeConfig, PROJECTIONS, type Projection, type ProjectionId, type SceneLink, type SceneMechanicsDebugConfig, type SceneModel, type SceneNode, type StarArrangement, StarMap, type StarMapConfig, type StarMapHandle, type StarMapProps, bibleToSceneModel, defaultGenerateOptions, defaultStars, generateArrangement };
|