@3driseai/3drise-core 1.0.21 → 1.0.22
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/autoAnimate/composer.d.ts +6 -0
- package/dist/autoAnimate/composer.d.ts.map +1 -1
- package/dist/autoAnimate/composer.js +4 -3
- package/dist/autoAnimate/describeScene.js +1 -1
- package/dist/catalog/catalogInfo.d.ts +22 -0
- package/dist/catalog/catalogInfo.d.ts.map +1 -0
- package/dist/catalog/catalogInfo.js +204 -0
- package/dist/catalog/index.d.ts +3 -0
- package/dist/catalog/index.d.ts.map +1 -0
- package/dist/catalog/index.js +2 -0
- package/dist/catalog/objectCatalog.d.ts +33 -0
- package/dist/catalog/objectCatalog.d.ts.map +1 -0
- package/dist/catalog/objectCatalog.js +99 -0
- package/dist/data/allMaterials.js +2 -2
- package/dist/data/environmentDefaults.d.ts +10 -0
- package/dist/data/environmentDefaults.d.ts.map +1 -0
- package/dist/data/environmentDefaults.js +126 -0
- package/dist/data/gridsDefaults.d.ts +2 -0
- package/dist/data/gridsDefaults.d.ts.map +1 -1
- package/dist/data/gridsDefaults.js +57 -0
- package/dist/data/index.d.ts +4 -0
- package/dist/data/index.d.ts.map +1 -1
- package/dist/data/index.js +4 -0
- package/dist/data/landDefaults.d.ts +26 -0
- package/dist/data/landDefaults.d.ts.map +1 -0
- package/dist/data/landDefaults.js +76 -0
- package/dist/data/spaceDefaults.d.ts +10 -0
- package/dist/data/spaceDefaults.d.ts.map +1 -0
- package/dist/data/spaceDefaults.js +46 -0
- package/dist/data/textDefaults.d.ts +16 -0
- package/dist/data/textDefaults.d.ts.map +1 -0
- package/dist/data/textDefaults.js +199 -0
- package/dist/environment/oceanConfigs.d.ts +5 -4
- package/dist/environment/oceanConfigs.d.ts.map +1 -1
- package/dist/environment/oceanConfigs.js +2 -2
- package/dist/environment/terrainConfigs.d.ts +78 -0
- package/dist/environment/terrainConfigs.d.ts.map +1 -1
- package/dist/environment/terrainConfigs.js +72 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/properties/registry.d.ts +10 -1
- package/dist/properties/registry.d.ts.map +1 -1
- package/dist/properties/registry.js +60 -9
- package/dist/properties/tables/environmentProperties.d.ts +9 -0
- package/dist/properties/tables/environmentProperties.d.ts.map +1 -0
- package/dist/properties/tables/environmentProperties.js +127 -0
- package/dist/properties/tables/gridProperties.d.ts.map +1 -1
- package/dist/properties/tables/gridProperties.js +117 -93
- package/dist/properties/tables/index.d.ts +4 -0
- package/dist/properties/tables/index.d.ts.map +1 -1
- package/dist/properties/tables/index.js +4 -0
- package/dist/properties/tables/landProperties.d.ts +5 -0
- package/dist/properties/tables/landProperties.d.ts.map +1 -0
- package/dist/properties/tables/landProperties.js +24 -0
- package/dist/properties/tables/optionalProperties.d.ts +1 -2
- package/dist/properties/tables/optionalProperties.d.ts.map +1 -1
- package/dist/properties/tables/optionalProperties.js +21 -0
- package/dist/properties/tables/spaceProperties.d.ts +8 -0
- package/dist/properties/tables/spaceProperties.d.ts.map +1 -0
- package/dist/properties/tables/spaceProperties.js +42 -0
- package/dist/properties/tables/textProperties.d.ts +4 -0
- package/dist/properties/tables/textProperties.d.ts.map +1 -0
- package/dist/properties/tables/textProperties.js +361 -0
- package/dist/properties/types.d.ts +1 -1
- package/dist/properties/types.d.ts.map +1 -1
- package/dist/services/MaterialRegistry.d.ts.map +1 -1
- package/dist/services/MaterialRegistry.js +2 -0
- package/dist/services/SkySystemManager.d.ts +22 -0
- package/dist/services/SkySystemManager.d.ts.map +1 -1
- package/dist/services/SkySystemManager.js +50 -18
- package/dist/services/TextureResolver.d.ts.map +1 -1
- package/dist/services/TextureResolver.js +22 -0
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +1 -1
- package/dist/shaders/SkyboxMaterial.js +3 -3
- package/dist/shaders/StarsMaterial.d.ts +5 -0
- package/dist/shaders/StarsMaterial.d.ts.map +1 -1
- package/dist/shaders/StarsMaterial.js +59 -57
- package/dist/types/actions.d.ts +6 -5
- package/dist/types/actions.d.ts.map +1 -1
- package/dist/types/commands.d.ts +61 -0
- package/dist/types/commands.d.ts.map +1 -0
- package/dist/types/commands.js +1 -0
- package/dist/types/environment.d.ts +34 -1
- package/dist/types/environment.d.ts.map +1 -1
- package/dist/types/environment.js +15 -0
- package/dist/types/environmentObjects.d.ts +152 -0
- package/dist/types/environmentObjects.d.ts.map +1 -0
- package/dist/types/environmentObjects.js +10 -0
- package/dist/types/index.d.ts +5 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/landObjects.d.ts +15 -0
- package/dist/types/landObjects.d.ts.map +1 -0
- package/dist/types/landObjects.js +1 -0
- package/dist/types/objectSettings.d.ts +187 -16
- package/dist/types/objectSettings.d.ts.map +1 -1
- package/dist/types/objectsConfigs.d.ts +0 -3
- package/dist/types/objectsConfigs.d.ts.map +1 -1
- package/dist/types/scene3d.d.ts +8 -5
- package/dist/types/scene3d.d.ts.map +1 -1
- package/dist/types/spaceObjects.d.ts +65 -0
- package/dist/types/spaceObjects.d.ts.map +1 -0
- package/dist/types/spaceObjects.js +11 -0
- package/dist/types/textObjects.d.ts +352 -0
- package/dist/types/textObjects.d.ts.map +1 -0
- package/dist/types/textObjects.js +14 -0
- package/dist/types/types.d.ts +3 -6
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/users.d.ts +3 -1
- package/dist/types/users.d.ts.map +1 -1
- package/dist/types/users.js +2 -0
- package/dist/ui/index.d.ts +5 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +4 -0
- package/dist/ui/uiBindings.d.ts +45 -0
- package/dist/ui/uiBindings.d.ts.map +1 -0
- package/dist/ui/uiBindings.js +172 -0
- package/dist/ui/uiKeys.d.ts +14 -0
- package/dist/ui/uiKeys.d.ts.map +1 -0
- package/dist/ui/uiKeys.js +22 -0
- package/dist/ui/uiSanitize.d.ts +18 -0
- package/dist/ui/uiSanitize.d.ts.map +1 -0
- package/dist/ui/uiSanitize.js +251 -0
- package/dist/ui/uiSpec.d.ts +116 -0
- package/dist/ui/uiSpec.d.ts.map +1 -0
- package/dist/ui/uiSpec.js +173 -0
- package/dist/utils/environmentMigration.d.ts +3 -0
- package/dist/utils/environmentMigration.d.ts.map +1 -0
- package/dist/utils/environmentMigration.js +50 -0
- package/dist/utils/generativeAnimatable.d.ts +1 -1
- package/dist/utils/generativeAnimatable.d.ts.map +1 -1
- package/dist/utils/generativeAnimatable.js +12 -0
- package/dist/utils/getAnimatableProperties.d.ts +1 -1
- package/dist/utils/getAnimatableProperties.d.ts.map +1 -1
- package/dist/utils/getAnimatableProperties.js +1 -1
- package/dist/utils/gridMigration.d.ts +3 -0
- package/dist/utils/gridMigration.d.ts.map +1 -0
- package/dist/utils/gridMigration.js +34 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +5 -0
- package/dist/utils/objectEffects.d.ts +24 -2
- package/dist/utils/objectEffects.d.ts.map +1 -1
- package/dist/utils/objectEffects.js +29 -2
- package/dist/utils/objectMigration.d.ts +9 -0
- package/dist/utils/objectMigration.d.ts.map +1 -0
- package/dist/utils/objectMigration.js +12 -0
- package/dist/utils/skyPhase.d.ts +61 -0
- package/dist/utils/skyPhase.d.ts.map +1 -0
- package/dist/utils/skyPhase.js +93 -0
- package/dist/utils/spaceMigration.d.ts +3 -0
- package/dist/utils/spaceMigration.d.ts.map +1 -0
- package/dist/utils/spaceMigration.js +46 -0
- package/dist/utils/sunUtils.d.ts +26 -1
- package/dist/utils/sunUtils.d.ts.map +1 -1
- package/dist/utils/sunUtils.js +37 -6
- package/package.json +1 -1
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
export type EnvironmentObjectType = 'snow' | 'sandstorm' | 'rainbow' | 'tornado' | 'thunderstorm' | 'rain';
|
|
2
|
+
export type EnvironmentQuality = 'low' | 'medium' | 'high';
|
|
3
|
+
export interface BaseEnvironmentObjectConfig {
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
intensity: number;
|
|
6
|
+
/** Time scale of the whole phenomenon (integrated, so animating it never jumps). */
|
|
7
|
+
speed: number;
|
|
8
|
+
color: string;
|
|
9
|
+
opacity: number;
|
|
10
|
+
/** How much of it there is (structural: rebuilds). */
|
|
11
|
+
density: number;
|
|
12
|
+
/** Detail level, scales counts and volume samples (structural). */
|
|
13
|
+
quality: EnvironmentQuality;
|
|
14
|
+
/** Random layout (structural). */
|
|
15
|
+
seed: number;
|
|
16
|
+
/** Wrap the volume around the camera instead of the object's box (in the shader; the object never moves). */
|
|
17
|
+
followCamera?: boolean;
|
|
18
|
+
/** Mean wind, 0..1 (Rain's range; 1 = 8 m/s). */
|
|
19
|
+
windStrength?: number;
|
|
20
|
+
/** Compass direction the wind blows toward, degrees. */
|
|
21
|
+
windDirection?: number;
|
|
22
|
+
/** Eddies on top of the wind, 0..1. */
|
|
23
|
+
turbulence?: number;
|
|
24
|
+
/** What the cursor is; 'none' = off. */
|
|
25
|
+
pointerMode: string;
|
|
26
|
+
pointerStrength: number;
|
|
27
|
+
pointerRadius: number;
|
|
28
|
+
pointerColor: string;
|
|
29
|
+
/** Shade / storm-light colour. */
|
|
30
|
+
shadeColor: string;
|
|
31
|
+
}
|
|
32
|
+
export interface SnowEnvironmentConfig extends BaseEnvironmentObjectConfig {
|
|
33
|
+
pointerMode: 'none' | 'gust' | 'shelter' | 'warmth';
|
|
34
|
+
/** Mean flake diameter; bigger flakes fall faster (0.01..0.12 m). */
|
|
35
|
+
flakeSize: number;
|
|
36
|
+
/** Side-to-side spiral of the falling flakes (0..1). */
|
|
37
|
+
flutter: number;
|
|
38
|
+
/** How much the crystals rock and flip as they fall (0..1). */
|
|
39
|
+
tumble: number;
|
|
40
|
+
/** Sparkle of sunlight off the tumbling crystals (0..2). */
|
|
41
|
+
glint: number;
|
|
42
|
+
/** Strength of the gust waves that sweep downwind (0..1). */
|
|
43
|
+
gustiness: number;
|
|
44
|
+
/** How strongly the gusts gather the snow into sweeping curtains (0..1). */
|
|
45
|
+
bands: number;
|
|
46
|
+
/** Sky-lit shade on the side away from the sun. */
|
|
47
|
+
shadeColor: string;
|
|
48
|
+
}
|
|
49
|
+
export interface SandstormEnvironmentConfig extends BaseEnvironmentObjectConfig {
|
|
50
|
+
pointerMode: 'none' | 'windbreak' | 'devil' | 'gust';
|
|
51
|
+
/** Scale height of the dust, as a share of the volume height (0.05..1). */
|
|
52
|
+
height: number;
|
|
53
|
+
/** Strength of the gust fronts: towering walls of dust rolling downwind (0..1). */
|
|
54
|
+
walls: number;
|
|
55
|
+
/** Fine dust hanging everywhere between the walls (0..1). */
|
|
56
|
+
haze: number;
|
|
57
|
+
/** Sand grains hopping along the ground (0..2). */
|
|
58
|
+
grains: number;
|
|
59
|
+
/** Size and hop length of the grains (0.3..3). */
|
|
60
|
+
grainSize: number;
|
|
61
|
+
/** Sky-lit colour of the dust in shadow. */
|
|
62
|
+
shadeColor: string;
|
|
63
|
+
}
|
|
64
|
+
/** A single rainbow on its own, seen through the object's volume. Its own small knob set: no weather around it (the shower is the mist object). */
|
|
65
|
+
export interface RainbowEnvironmentConfig {
|
|
66
|
+
enabled: boolean;
|
|
67
|
+
pointerMode: 'none' | 'spray' | 'clear' | 'polarizer';
|
|
68
|
+
/** Brightness of the bow (0..2). */
|
|
69
|
+
intensity: number;
|
|
70
|
+
/** Overall opacity (0..1). */
|
|
71
|
+
opacity: number;
|
|
72
|
+
/** Raindrop diameter: big drops give a narrow, vivid bow; small ones pale fringes inside it; fog drops a white fogbow (0.03..3 mm). */
|
|
73
|
+
dropSize: number;
|
|
74
|
+
/** Strength of the secondary bow outside the primary (reversed colours, ~51°); 0 = a single rainbow (0..1). */
|
|
75
|
+
secondary: number;
|
|
76
|
+
/** Tint of the bow (white = the pure spectrum). */
|
|
77
|
+
color: string;
|
|
78
|
+
/** Brightness of the sprayed stretch, depth of the clearing, strength of the filter (0..3). */
|
|
79
|
+
pointerStrength: number;
|
|
80
|
+
/** Reach of the spray or clearing (1 = 6 m) (0.2..3). */
|
|
81
|
+
pointerRadius: number;
|
|
82
|
+
/** Tint of the bow in the sprayed mist. */
|
|
83
|
+
pointerColor: string;
|
|
84
|
+
}
|
|
85
|
+
export interface TornadoEnvironmentConfig extends BaseEnvironmentObjectConfig {
|
|
86
|
+
pointerMode: 'none' | 'steer' | 'feed' | 'gust';
|
|
87
|
+
/** Spin rate of the vortex (0..3). */
|
|
88
|
+
rotation: number;
|
|
89
|
+
/** Radius of the core, and so the width of the funnel (0.3..3). */
|
|
90
|
+
coreRadius: number;
|
|
91
|
+
/** How far down the condensation funnel reaches (1 = touchdown) (0..1). */
|
|
92
|
+
reach: number;
|
|
93
|
+
/** How much the axis wanders and bends like a rope (0..1). */
|
|
94
|
+
wander: number;
|
|
95
|
+
/** Updraft: how fast the streaks and dust climb (0..3). */
|
|
96
|
+
lift: number;
|
|
97
|
+
/** Ground dust drawn in and swirled up around the funnel (0..2). */
|
|
98
|
+
dust: number;
|
|
99
|
+
/** How far out the dust swirls (0.2..3). */
|
|
100
|
+
dustSpread: number;
|
|
101
|
+
/** Storm-light colour in shadow. */
|
|
102
|
+
shadeColor: string;
|
|
103
|
+
/** Colour of the swirling dust. */
|
|
104
|
+
dustColor: string;
|
|
105
|
+
}
|
|
106
|
+
export interface ThunderstormEnvironmentConfig extends BaseEnvironmentObjectConfig {
|
|
107
|
+
pointerMode: 'none' | 'strike' | 'clear';
|
|
108
|
+
/** Visibility of the dark storm curtains (0..1). */
|
|
109
|
+
shafts: number;
|
|
110
|
+
/** Lightning flashes per minute (random intervals) (0..30). */
|
|
111
|
+
flashRate: number;
|
|
112
|
+
/** Brightness of a flash, on the curtains and on the scene (0..3). */
|
|
113
|
+
flashIntensity: number;
|
|
114
|
+
/** Storm-dark tint of the curtains. */
|
|
115
|
+
shadeColor: string;
|
|
116
|
+
/** Colour of the lightning. */
|
|
117
|
+
flashColor: string;
|
|
118
|
+
}
|
|
119
|
+
/** Rain: streaks falling through the object's volume at a steady rate, carried by the wind and scattered by turbulence. Its own small knob set (no pointer modes, quality or seed). */
|
|
120
|
+
export interface RainEnvironmentConfig {
|
|
121
|
+
enabled: boolean;
|
|
122
|
+
/** Colour of the drops. */
|
|
123
|
+
color: string;
|
|
124
|
+
/** Streak size (0.01..1). */
|
|
125
|
+
size: number;
|
|
126
|
+
/** Opacity of the drops (0..1). */
|
|
127
|
+
opacity: number;
|
|
128
|
+
/** Fall speed multiplier (0.1..5; 1 = 60 m/s across the volume's own metres). */
|
|
129
|
+
speed: number;
|
|
130
|
+
/** Drops in the volume, in hundreds (1..200; rebuilds). */
|
|
131
|
+
density: number;
|
|
132
|
+
/** Sideways push of the wind (0..1). */
|
|
133
|
+
windStrength: number;
|
|
134
|
+
/** Compass direction the wind blows toward (0..360°). */
|
|
135
|
+
windDirection: number;
|
|
136
|
+
/** Random sway of the drops (0..1). */
|
|
137
|
+
turbulence: number;
|
|
138
|
+
}
|
|
139
|
+
export type EnvironmentObjectConfig = ({
|
|
140
|
+
type: 'snow';
|
|
141
|
+
} & SnowEnvironmentConfig) | ({
|
|
142
|
+
type: 'sandstorm';
|
|
143
|
+
} & SandstormEnvironmentConfig) | ({
|
|
144
|
+
type: 'rainbow';
|
|
145
|
+
} & RainbowEnvironmentConfig) | ({
|
|
146
|
+
type: 'tornado';
|
|
147
|
+
} & TornadoEnvironmentConfig) | ({
|
|
148
|
+
type: 'thunderstorm';
|
|
149
|
+
} & ThunderstormEnvironmentConfig) | ({
|
|
150
|
+
type: 'rain';
|
|
151
|
+
} & RainEnvironmentConfig);
|
|
152
|
+
//# sourceMappingURL=environmentObjects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environmentObjects.d.ts","sourceRoot":"","sources":["../../src/types/environmentObjects.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS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wB,CAAC,GAChD,CAAC;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,GAAG,6BAA6B,CAAC,GAC1D,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// =============================================================================
|
|
2
|
+
// ENVIRONMENT OBJECTS — world-scale weather / atmosphere that fills a volume
|
|
3
|
+
// =============================================================================
|
|
4
|
+
//
|
|
5
|
+
// Object type 'environment'; config.type picks the variant. The volume is the
|
|
6
|
+
// object's transform: x / z span the scale, y rises from the object's origin
|
|
7
|
+
// (the ground) to scale.y. Knobs describe the weather, never the box.
|
|
8
|
+
// Generated from Claude outputs/environment-lab (gen_family.mjs).
|
|
9
|
+
//
|
|
10
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,6 +3,10 @@ export type * from './effects';
|
|
|
3
3
|
export type * from './gallery';
|
|
4
4
|
export type * from './generativeEffects';
|
|
5
5
|
export type * from './generativeParticles';
|
|
6
|
+
export type * from './environmentObjects';
|
|
7
|
+
export type * from './spaceObjects';
|
|
8
|
+
export type * from './landObjects';
|
|
9
|
+
export type * from './textObjects';
|
|
6
10
|
export type * from './handlerSettings';
|
|
7
11
|
export type * from './lights';
|
|
8
12
|
export type * from './materials';
|
|
@@ -12,13 +16,13 @@ export type * from './particles';
|
|
|
12
16
|
export type * from './scene3d';
|
|
13
17
|
export type * from './text';
|
|
14
18
|
export type * from './actions';
|
|
19
|
+
export type * from './commands';
|
|
15
20
|
export type * from './cursor';
|
|
16
21
|
export type * from './shaderEffects';
|
|
17
22
|
export type * from './environment';
|
|
18
23
|
export type * from './objectManager';
|
|
19
24
|
export type * from './postprocessing';
|
|
20
25
|
export type * from './types';
|
|
21
|
-
export type * from './uiController';
|
|
22
26
|
export type * from './users';
|
|
23
27
|
export type * from './objectsConfigs';
|
|
24
28
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,cAAc,CAAC;AAElC,mBAAmB,WAAW,CAAC;AAE/B,mBAAmB,WAAW,CAAC;AAE/B,mBAAmB,qBAAqB,CAAC;AAEzC,mBAAmB,uBAAuB,CAAC;AAE3C,mBAAmB,mBAAmB,CAAC;AAEvC,mBAAmB,UAAU,CAAC;AAE9B,mBAAmB,aAAa,CAAC;AAEjC,mBAAmB,QAAQ,CAAC;AAE5B,mBAAmB,kBAAkB,CAAC;AAEtC,mBAAmB,aAAa,CAAC;AAEjC,mBAAmB,WAAW,CAAC;AAE/B,mBAAmB,QAAQ,CAAC;AAE5B,mBAAmB,WAAW,CAAC;AAE/B,mBAAmB,UAAU,CAAC;AAE9B,mBAAmB,iBAAiB,CAAC;AAErC,mBAAmB,eAAe,CAAC;AAEnC,mBAAmB,iBAAiB,CAAC;AAErC,mBAAmB,kBAAkB,CAAC;AAEtC,mBAAmB,SAAS,CAAC;AAE7B,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,cAAc,CAAC;AAElC,mBAAmB,WAAW,CAAC;AAE/B,mBAAmB,WAAW,CAAC;AAE/B,mBAAmB,qBAAqB,CAAC;AAEzC,mBAAmB,uBAAuB,CAAC;AAE3C,mBAAmB,sBAAsB,CAAC;AAE1C,mBAAmB,gBAAgB,CAAC;AACpC,mBAAmB,eAAe,CAAC;AACnC,mBAAmB,eAAe,CAAC;AAEnC,mBAAmB,mBAAmB,CAAC;AAEvC,mBAAmB,UAAU,CAAC;AAE9B,mBAAmB,aAAa,CAAC;AAEjC,mBAAmB,QAAQ,CAAC;AAE5B,mBAAmB,kBAAkB,CAAC;AAEtC,mBAAmB,aAAa,CAAC;AAEjC,mBAAmB,WAAW,CAAC;AAE/B,mBAAmB,QAAQ,CAAC;AAE5B,mBAAmB,WAAW,CAAC;AAE/B,mBAAmB,YAAY,CAAC;AAEhC,mBAAmB,UAAU,CAAC;AAE9B,mBAAmB,iBAAiB,CAAC;AAErC,mBAAmB,eAAe,CAAC;AAEnC,mBAAmB,iBAAiB,CAAC;AAErC,mBAAmB,kBAAkB,CAAC;AAEtC,mBAAmB,SAAS,CAAC;AAE7B,mBAAmB,SAAS,CAAC;AAE7B,mBAAmB,kBAAkB,CAAC;AACtC,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TerrainConfig, TerrainType } from '../environment/terrainConfigs';
|
|
2
|
+
export type LandObjectType = TerrainType;
|
|
3
|
+
export type LandQuality = 'low' | 'medium' | 'high';
|
|
4
|
+
export type LandObjectConfig = Omit<TerrainConfig, 'type' | 'terrainType' | 'seaLevel' | 'preset'> & {
|
|
5
|
+
/** The landform. Picking a shape of another landform switches it. */
|
|
6
|
+
type: LandObjectType;
|
|
7
|
+
/** Which piece of the endless field this patch shows (structural). */
|
|
8
|
+
seed: number;
|
|
9
|
+
/** How far in from the border the land eases down to its base, as a fraction
|
|
10
|
+
* of the shorter side. 0 ends in a cliff. */
|
|
11
|
+
edgeFade: number;
|
|
12
|
+
/** Grid resolution: low 128, medium 256, high 384 cells a side (structural). */
|
|
13
|
+
quality: LandQuality;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=landObjects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"landObjects.d.ts","sourceRoot":"","sources":["../../src/types/landObjects.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEhF,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC;AAEzC,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEpD,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,GAAG,UAAU,GAAG,QAAQ,CAAC,GAAG;IACjG,qEAAqE;IACrE,IAAI,EAAE,cAAc,CAAC;IACrB,sEAAsE;IACtE,IAAI,EAAE,MAAM,CAAC;IACb;kDAC8C;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,gFAAgF;IAChF,OAAO,EAAE,WAAW,CAAC;CACxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AnimationOptions, Vector3 } from "./scene3d";
|
|
2
|
+
import type { SceneCommand } from "./commands";
|
|
2
3
|
import type { MaterialSettings } from "./materials";
|
|
3
4
|
import type { ShaderEffect } from "./shaderEffects";
|
|
4
5
|
import type { ColorEffectType, EffectTriggerMode, TransformEffectType } from "./effects";
|
|
@@ -71,6 +72,34 @@ export interface GridConfigEffects {
|
|
|
71
72
|
/** Keyframe animations for a grid object's config properties (type 'grid'). */
|
|
72
73
|
animations?: AnimationOptions[];
|
|
73
74
|
}
|
|
75
|
+
/** Keyframe animations for the sky's Preetham / sun knobs (SkySettings, root level). */
|
|
76
|
+
export interface SkyEffects {
|
|
77
|
+
animations?: AnimationOptions[];
|
|
78
|
+
}
|
|
79
|
+
/** Keyframe animations for the water's own config knobs (OceanWaterSettings.config). */
|
|
80
|
+
export interface OceanEffects {
|
|
81
|
+
animations?: AnimationOptions[];
|
|
82
|
+
}
|
|
83
|
+
/** Keyframe animations for the terrain surface's lighting / colour knobs (ProceduralTerrainSettings.config). */
|
|
84
|
+
export interface TerrainEffects {
|
|
85
|
+
animations?: AnimationOptions[];
|
|
86
|
+
}
|
|
87
|
+
/** Keyframe animations for an environment object's config knobs (type 'environment': snow…). */
|
|
88
|
+
export interface EnvironmentObjectEffects {
|
|
89
|
+
animations?: AnimationOptions[];
|
|
90
|
+
}
|
|
91
|
+
/** Keyframe animations for a land object's surface knobs (type 'land'). */
|
|
92
|
+
export interface LandObjectEffects {
|
|
93
|
+
animations?: AnimationOptions[];
|
|
94
|
+
}
|
|
95
|
+
/** Keyframe animations for a space object's config knobs (type 'space': stars, earth, solarSystem, shootingStars). */
|
|
96
|
+
export interface SpaceObjectEffects {
|
|
97
|
+
animations?: AnimationOptions[];
|
|
98
|
+
}
|
|
99
|
+
/** Keyframe animations for a text look's config knobs (type 'text', config.type set: handwriting, neonTube, fourierSketch). */
|
|
100
|
+
export interface TextObjectEffects {
|
|
101
|
+
animations?: AnimationOptions[];
|
|
102
|
+
}
|
|
74
103
|
export interface RainEffects {
|
|
75
104
|
/** Keyframe animations for rain config properties */
|
|
76
105
|
animations?: AnimationOptions[];
|
|
@@ -95,6 +124,20 @@ export interface ObjectAnimations {
|
|
|
95
124
|
effect?: EffectConfigEffects;
|
|
96
125
|
/** Grid domain: a grid object's own config knobs (type 'grid'). */
|
|
97
126
|
grid?: GridConfigEffects;
|
|
127
|
+
/** Environment domain: a weather object's own config knobs (type 'environment': snow…). */
|
|
128
|
+
environment?: EnvironmentObjectEffects;
|
|
129
|
+
/** Space domain: a space object's own config knobs (type 'space': stars, earth…). */
|
|
130
|
+
space?: SpaceObjectEffects;
|
|
131
|
+
/** Land domain: a land object's surface knobs (type 'land': mountains, hills, dunes, canyon). */
|
|
132
|
+
land?: LandObjectEffects;
|
|
133
|
+
/** Text domain: an animated text look's own config knobs (type 'text', config.type set). */
|
|
134
|
+
text?: TextObjectEffects;
|
|
135
|
+
/** Sky domain: the sky's turbidity / rayleigh / mie / elevation / azimuth. */
|
|
136
|
+
sky?: SkyEffects;
|
|
137
|
+
/** Ocean domain: the water's config knobs (OceanWaterSettings). */
|
|
138
|
+
ocean?: OceanEffects;
|
|
139
|
+
/** Terrain domain: the surface's lighting and colour knobs. */
|
|
140
|
+
terrain?: TerrainEffects;
|
|
98
141
|
}
|
|
99
142
|
export interface PropertyMutation {
|
|
100
143
|
/** Property path: 'position' | 'rotation' | 'scale' | 'material.color' | ... */
|
|
@@ -118,13 +161,14 @@ export type InteractionTrigger = 'click' | 'mouseEnter' | 'mouseLeave';
|
|
|
118
161
|
* An operation's name. The built-ins are listed; the viewer's operations registry
|
|
119
162
|
* (packages/viewer/src/operations) is the source of truth and can grow.
|
|
120
163
|
*/
|
|
121
|
-
export type OperationName = 'jelly' | 'flip' | 'spin' | 'swirl' | 'moveToFront' | 'glow' | 'rimLight' | 'dissolve' | 'emberAsh' | 'particleSwarm' | 'hologram' | 'shatter' | 'sandErosion' | 'teleport' | 'inkBloom' | 'flock' | 'metalize' | 'liquidMetal' | 'frost' | 'heatCracks' | 'petrify' | 'portal' | 'voxelize' | 'unweave' | 'petalPeel' | 'fade' | 'visibility' | 'displayImage' | 'zoom' | 'frame' | 'focus' | 'orbit' | (string & {});
|
|
164
|
+
export type OperationName = 'jelly' | 'flip' | 'spin' | 'swirl' | 'moveToFront' | 'float' | 'sway' | 'bounce' | 'wobble' | 'pulse' | 'shake' | 'rotate' | 'grow' | 'glow' | 'rimLight' | 'dissolve' | 'emberAsh' | 'particleSwarm' | 'hologram' | 'shatter' | 'sandErosion' | 'teleport' | 'inkBloom' | 'flock' | 'metalize' | 'liquidMetal' | 'frost' | 'heatCracks' | 'petrify' | 'portal' | 'voxelize' | 'unweave' | 'petalPeel' | 'fade' | 'visibility' | 'displayImage' | 'zoom' | 'frame' | 'focus' | 'orbit' | (string & {});
|
|
122
165
|
/**
|
|
123
166
|
* What an operation acts on. An interaction holds at most one effect per channel,
|
|
124
167
|
* so effects in one card never fight over the same thing.
|
|
125
168
|
* transform the object's own position / rotation / scale
|
|
126
169
|
* visual how the object is drawn (material, shader, visibility) — never its transform
|
|
127
170
|
* camera the camera (zoom, look at)
|
|
171
|
+
* effects the object's own effects (its Effects tab): play / stop / toggle them
|
|
128
172
|
*/
|
|
129
173
|
export type OperationChannel = 'transform' | 'visual' | 'camera';
|
|
130
174
|
/** A value of an operation parameter (duration, distance, colour…). */
|
|
@@ -144,6 +188,13 @@ export interface OperationEffect {
|
|
|
144
188
|
meshNames?: Record<string, string[]>;
|
|
145
189
|
/** Overrides of the operation's parameter defaults. */
|
|
146
190
|
params?: Record<string, OperationParamValue>;
|
|
191
|
+
/**
|
|
192
|
+
* Reverse / loop / yoyo, for operations that can also be object effects (the object's effects
|
|
193
|
+
* controller runs them). Autoplay and visible do not apply to a triggered effect.
|
|
194
|
+
*/
|
|
195
|
+
playback?: EffectPlayback;
|
|
196
|
+
/** Targeting a group: a physical effect moves the whole group ('group', default) or each child on its own spot ('each'). Visual effects on a group always go to each child. */
|
|
197
|
+
scope?: 'group' | 'each';
|
|
147
198
|
}
|
|
148
199
|
/**
|
|
149
200
|
* An effect that stays on the object (`CreatedObject.effects`) — the same
|
|
@@ -154,37 +205,143 @@ export interface OperationEffect {
|
|
|
154
205
|
* (the viewer's definitions list 'object' in `usableIn`). Always on the object
|
|
155
206
|
* itself — no targets, no channel.
|
|
156
207
|
*/
|
|
208
|
+
/**
|
|
209
|
+
* How an effect plays. All optional; with none set it plays in once and holds.
|
|
210
|
+
* autoplay plays when the scene starts / the effect is switched on (default true).
|
|
211
|
+
* Off: it waits at its start until something plays it.
|
|
212
|
+
* reverse starts at its end and plays back to the original
|
|
213
|
+
* loop when a pass ends, jumps back to its start and plays again
|
|
214
|
+
* yoyo plays there and back (once, or over and over with loop)
|
|
215
|
+
*/
|
|
216
|
+
export interface EffectPlayback {
|
|
217
|
+
autoplay?: boolean;
|
|
218
|
+
reverse?: boolean;
|
|
219
|
+
loop?: boolean;
|
|
220
|
+
yoyo?: boolean;
|
|
221
|
+
}
|
|
157
222
|
export interface ObjectEffect {
|
|
158
223
|
id: string;
|
|
159
224
|
operation: OperationName;
|
|
160
225
|
enabled: boolean;
|
|
226
|
+
/** Autoplay / reverse / loop / yoyo — see EffectPlayback. */
|
|
227
|
+
playback?: EffectPlayback;
|
|
161
228
|
/** Narrows a model to named nodes. */
|
|
162
229
|
meshNames?: string[];
|
|
163
230
|
/** Overrides of the operation's parameter defaults. */
|
|
164
231
|
params?: Record<string, OperationParamValue>;
|
|
232
|
+
/**
|
|
233
|
+
* On a group, a physical effect moves the whole group as one piece ('group', the default) or
|
|
234
|
+
* every child on its own spot ('each', staggered by the clip's `spread`). Visual effects on a
|
|
235
|
+
* group always go to each child.
|
|
236
|
+
*/
|
|
237
|
+
scope?: 'group' | 'each';
|
|
165
238
|
}
|
|
166
|
-
|
|
167
|
-
|
|
239
|
+
/**
|
|
240
|
+
* How a group's effects reach its children one after another (see claude/group-effects-plan.md).
|
|
241
|
+
* Defaults: core `DEFAULT_EFFECT_SPREAD`.
|
|
242
|
+
*/
|
|
243
|
+
export interface EffectSpread {
|
|
244
|
+
/** Who goes first: scene-tree order, along an axis of the group, centre → out, or random (seeded by the group). */
|
|
245
|
+
order?: 'tree' | 'x' | 'y' | 'z' | 'radial' | 'random';
|
|
246
|
+
/** Seconds from the first child to the last (a fixed total, whatever the number of children). 0 = together. */
|
|
247
|
+
total?: number;
|
|
248
|
+
/** Going off: last in, first out ('reverse'), or the same order. */
|
|
249
|
+
out?: 'reverse' | 'same';
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Effects that take turns on an object. The object's own `effects` run the whole time; on top
|
|
253
|
+
* of them one step is on at a time. A step holds effects that go together and owns the timing.
|
|
254
|
+
*/
|
|
255
|
+
export interface EffectStep {
|
|
168
256
|
id: string;
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
257
|
+
/** Effects that go together (one take-over at most). Their own playback is not used: looks play in and hold, motions run while the step is on. */
|
|
258
|
+
effects: ObjectEffect[];
|
|
259
|
+
/** Seconds the step's looks take to play in — and out, when the step ends. Default 1. */
|
|
260
|
+
in?: number;
|
|
261
|
+
/** Seconds the step stays once its looks are on. Default 1. */
|
|
262
|
+
hold?: number;
|
|
263
|
+
/**
|
|
264
|
+
* How the step ends. Default: directly — the next step's take-over sweeps over this one,
|
|
265
|
+
* the plain object never shows. True: this step plays out first, back to the object, and
|
|
266
|
+
* only then does the next step start.
|
|
267
|
+
*/
|
|
268
|
+
playOut?: boolean;
|
|
173
269
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
270
|
+
export interface EffectSteps {
|
|
271
|
+
steps: EffectStep[];
|
|
272
|
+
/** After the last step, start again from the first. Off: it stays on the last step. */
|
|
273
|
+
loop?: boolean;
|
|
274
|
+
/** Through the steps there and back. */
|
|
275
|
+
yoyo?: boolean;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* What an object's Effects tab holds — the object's own effect clip, stored as one value in
|
|
279
|
+
* `CreatedObject.effects`: Base effects (on the whole time), steps that take turns, the model
|
|
280
|
+
* parts they apply to, and the saved template it came from. Same shape as a template (EffectClip)
|
|
281
|
+
* plus what only an object has (parts, source). Read it with core `objectEffectClipOf`.
|
|
282
|
+
*/
|
|
283
|
+
export interface ObjectEffectClip {
|
|
284
|
+
/** Base: on the whole time. */
|
|
285
|
+
effects: ObjectEffect[];
|
|
286
|
+
/** Effects that take turns on top of the Base ones. */
|
|
287
|
+
steps?: EffectStep[];
|
|
288
|
+
loop?: boolean;
|
|
289
|
+
yoyo?: boolean;
|
|
290
|
+
/**
|
|
291
|
+
* The effects (Base and steps) follow the object's visibility: shown → they play in (the steps
|
|
292
|
+
* from the first), hidden → they play out first and then the object goes. Off: hiding cuts them.
|
|
293
|
+
*/
|
|
294
|
+
visible?: boolean;
|
|
295
|
+
/** Groups: how the effects reach the children one after another. */
|
|
296
|
+
spread?: EffectSpread;
|
|
297
|
+
/** Model parts (node names) the effects apply to; none = the whole object. */
|
|
298
|
+
parts?: string[];
|
|
299
|
+
/** The saved effect clip (template) these effects were copied from / saved to. */
|
|
300
|
+
source?: {
|
|
301
|
+
id: string;
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* A saved effect clip — a TEMPLATE: always-on effects and steps, with no target inside.
|
|
306
|
+
* What an object's Effects tab holds is that object's own clip (ObjectEffectClip);
|
|
307
|
+
* importing a template copies it into the object. Interactions and actions point at a
|
|
308
|
+
* template by id and apply it to their targets (EffectClipUse).
|
|
309
|
+
*/
|
|
310
|
+
export interface EffectClip {
|
|
177
311
|
id: string;
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
312
|
+
name: string;
|
|
313
|
+
effects: ObjectEffect[];
|
|
314
|
+
steps?: EffectStep[];
|
|
315
|
+
loop?: boolean;
|
|
316
|
+
yoyo?: boolean;
|
|
317
|
+
/** Imported into an object, its effects follow the object's visibility (applied by a command: not used). */
|
|
318
|
+
visible?: boolean;
|
|
319
|
+
/** Imported into a group: how its effects reach the children. */
|
|
320
|
+
spread?: EffectSpread;
|
|
321
|
+
/** Preview image (the asset's url), when one was taken. */
|
|
322
|
+
previewUrl?: string;
|
|
323
|
+
/** The asset's owner and privacy (only a private clip of your own is updated in place). */
|
|
324
|
+
creatorId?: string;
|
|
325
|
+
privacy?: string;
|
|
181
326
|
}
|
|
327
|
+
/** A template applied to targets: by an action (applied / reverted with it) or an interaction. */
|
|
328
|
+
export interface EffectClipUse {
|
|
329
|
+
id: string;
|
|
330
|
+
/** EffectClip id. */
|
|
331
|
+
clip: string;
|
|
332
|
+
/** Scene object ids; interactions may also use 'self'. */
|
|
333
|
+
targets: string[];
|
|
334
|
+
/** Narrows a `model` target to named nodes, keyed by that model's object id. */
|
|
335
|
+
meshNames?: Record<string, string[]>;
|
|
336
|
+
}
|
|
337
|
+
export type InteractionAnimationCommand = 'play' | 'pause' | 'stop' | 'toggle';
|
|
338
|
+
/** toggle: apply, then revert, … */
|
|
339
|
+
export type InteractionActionCommand = 'apply' | 'revert' | 'toggle';
|
|
182
340
|
export interface Interaction {
|
|
183
341
|
mouseEvent: InteractionTrigger;
|
|
184
342
|
enabled: boolean;
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
actions: InteractionAction[];
|
|
343
|
+
/** What happens, in order — run by the viewer's triggers engine. */
|
|
344
|
+
commands: SceneCommand[];
|
|
188
345
|
}
|
|
189
346
|
export interface ClickInteraction {
|
|
190
347
|
interactions: Interaction[];
|
|
@@ -224,6 +381,20 @@ export interface MouseMoveInteractions {
|
|
|
224
381
|
effect?: MouseMoveDomain;
|
|
225
382
|
/** Grid domain: a grid object's own config knobs. */
|
|
226
383
|
grid?: MouseMoveDomain;
|
|
384
|
+
/** Environment domain: a weather object's own config knobs. */
|
|
385
|
+
environment?: MouseMoveDomain;
|
|
386
|
+
/** Space domain: a space object's own config knobs. */
|
|
387
|
+
space?: MouseMoveDomain;
|
|
388
|
+
/** Land domain: a land object's surface knobs. */
|
|
389
|
+
land?: MouseMoveDomain;
|
|
390
|
+
/** Text domain: an animated text look's own config knobs. */
|
|
391
|
+
text?: MouseMoveDomain;
|
|
392
|
+
/** Sky domain: the sky's Preetham / sun knobs. */
|
|
393
|
+
sky?: MouseMoveDomain;
|
|
394
|
+
/** Ocean domain: the water's config knobs. */
|
|
395
|
+
ocean?: MouseMoveDomain;
|
|
396
|
+
/** Terrain domain: the surface's lighting and colour knobs. */
|
|
397
|
+
terrain?: MouseMoveDomain;
|
|
227
398
|
}
|
|
228
399
|
/**
|
|
229
400
|
* Check if settings use the new structure
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectSettings.d.ts","sourceRoot":"","sources":["../../src/types/objectSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACzF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC,CAAC;AAErG,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,G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,CAAC,EAAE,eAAe,CAAC;IAC9B,uDAAuD;IACvD,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,kDAAkD;IAClD,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,6DAA6D;IAC7D,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,kDAAkD;IAClD,GAAG,CAAC,EAAE,eAAe,CAAC;IACtB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,+DAA+D;IAC/D,OAAO,CAAC,EAAE,eAAe,CAAC;CAC7B;AAUD;;GAEG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,GAAG,GAAG,OAAO,CAErD;AACD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,GAAG,GAAG,OAAO,CAQxD"}
|
|
@@ -22,8 +22,6 @@ export interface MyGridConfig {
|
|
|
22
22
|
size: number;
|
|
23
23
|
/** plane subdivisions per side; auto-derived when omitted (bumped if displace > 0) */
|
|
24
24
|
segments?: number;
|
|
25
|
-
/** lay flat on XZ (true) or keep upright on XY (false) */
|
|
26
|
-
flat: boolean;
|
|
27
25
|
lineMode: MyGridLineMode;
|
|
28
26
|
cellMode: MyGridCellMode;
|
|
29
27
|
lineWidth: number;
|
|
@@ -41,7 +39,6 @@ export interface MyGridConfig {
|
|
|
41
39
|
glowColor: string;
|
|
42
40
|
bgColor: string;
|
|
43
41
|
bgOpacity: number;
|
|
44
|
-
followMouse: boolean;
|
|
45
42
|
/**
|
|
46
43
|
* 0..1 assemble amount. The build boundary sweeps outward from the focus
|
|
47
44
|
* point with a bright leading edge. Defaults to 1 (fully built); animate it
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectsConfigs.d.ts","sourceRoot":"","sources":["../../src/types/objectsConfigs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAA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CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,YAAY;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,sFAAsF;IACtF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,EAAE,cAAc,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAGD,OAAO,EAAE,CAAC"}
|
package/dist/types/scene3d.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Object3D } from "three";
|
|
|
4
4
|
import type { OperationTypes } from "./actions";
|
|
5
5
|
import type { RigidBodyTypeString } from "@react-three/rapier";
|
|
6
6
|
import type { EffectTriggerMode } from "./effects";
|
|
7
|
-
import type { Interaction, MouseMoveInteraction, MouseMoveInteractions, ObjectAnimations,
|
|
7
|
+
import type { Interaction, MouseMoveInteraction, MouseMoveInteractions, ObjectAnimations, ObjectEffectClip } from "./objectSettings";
|
|
8
8
|
import type { WaterConfig } from "./environment";
|
|
9
9
|
export type FrameClickHandler = {
|
|
10
10
|
enabled: boolean;
|
|
@@ -72,7 +72,6 @@ export type AnchorSettings = {
|
|
|
72
72
|
offset?: AnchorOffset;
|
|
73
73
|
padding?: number;
|
|
74
74
|
};
|
|
75
|
-
export type PageTemplateId = string;
|
|
76
75
|
export type BaseMeshData = BaseMeshOptions;
|
|
77
76
|
export interface RequiredMeshOptions extends BaseMeshOptions {
|
|
78
77
|
id: string;
|
|
@@ -134,7 +133,7 @@ export type ObjectEdges = {
|
|
|
134
133
|
cubeSize?: number;
|
|
135
134
|
materialSettings: MaterialSettings;
|
|
136
135
|
};
|
|
137
|
-
export type CreatedObjectType = 'mesh' | 'model' | 'text' | 'group' | 'custom_primitive' | 'particles' | 'grid' | 'path' | 'gallery' | 'effect' | 'light' | 'space' | 'environment';
|
|
136
|
+
export type CreatedObjectType = 'mesh' | 'model' | 'text' | 'group' | 'custom_primitive' | 'particles' | 'grid' | 'path' | 'gallery' | 'effect' | 'light' | 'space' | 'environment' | 'land';
|
|
138
137
|
export type ShapeName = 'heart' | 'box' | 'star' | 'polygon' | 'gear' | 'flower' | 'spade' | 'club' | 'diamond' | 'droplet' | 'lightning' | 'sparkle' | 'shield' | 'pawPrint' | 'superformula' | 'sphere' | 'cylinder' | 'cone' | 'torus' | 'plane' | 'ring' | 'arcPlane' | 'bentPlane' | 'bentPlaneInverse' | 'capsule' | 'icosahedron' | 'octahedron' | 'tetrahedron' | 'dodecahedron' | 'text' | 'point' | 'custom' | 'infinity';
|
|
139
138
|
export interface GeometryShapeConfig {
|
|
140
139
|
type: ShapeName;
|
|
@@ -212,8 +211,8 @@ export type GeneralObjectSettings = {
|
|
|
212
211
|
materialSettings: MaterialSettings;
|
|
213
212
|
rigidBodySettings?: RigidBodySettings;
|
|
214
213
|
edgesSettings?: ObjectEdges;
|
|
215
|
-
/**
|
|
216
|
-
effects?:
|
|
214
|
+
/** The object's effect clip — Base effects, steps, model parts, source template (ObjectEffectClip). */
|
|
215
|
+
effects?: ObjectEffectClip;
|
|
217
216
|
/** Continuous effects - always running (animations, transform, color) */
|
|
218
217
|
animations?: ObjectAnimations;
|
|
219
218
|
/** Click / hover action interactions */
|
|
@@ -442,6 +441,10 @@ export interface TimeSettings {
|
|
|
442
441
|
timescale: number;
|
|
443
442
|
autoAnimate: boolean;
|
|
444
443
|
syncWithRealTime: boolean;
|
|
444
|
+
/** Lunar phase, 0..1: 0 new moon (rides with the sun, unlit), 0.25 first
|
|
445
|
+
* quarter, 0.5 full (rises at sunset, highest at midnight), 0.75 last
|
|
446
|
+
* quarter. Default 0.5. */
|
|
447
|
+
moonPhase?: number;
|
|
445
448
|
}
|
|
446
449
|
export interface CanvasConfig {
|
|
447
450
|
shadows?: boolean;
|