@almadar/ui 5.96.0 → 5.97.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.
|
@@ -32,6 +32,8 @@ export interface ModelLoaderProps {
|
|
|
32
32
|
* unknown or absent name leaves the model static (bind pose).
|
|
33
33
|
*/
|
|
34
34
|
animation?: string;
|
|
35
|
+
/** Multiply the model's material colors by this CSS color (per-instance; e.g. team tint). */
|
|
36
|
+
tint?: string;
|
|
35
37
|
/** Enable shadows */
|
|
36
38
|
castShadow?: boolean;
|
|
37
39
|
/** Receive shadows */
|
|
@@ -46,5 +48,5 @@ export interface ModelLoaderProps {
|
|
|
46
48
|
/**
|
|
47
49
|
* ModelLoader component for rendering GLB models in React Three Fiber
|
|
48
50
|
*/
|
|
49
|
-
export declare function ModelLoader({ url, position, scale, rotation, isSelected, isHovered, onClick, onHover, fallbackGeometry, castShadow, receiveShadow, resourceBasePath, animation, }: ModelLoaderProps): React.JSX.Element;
|
|
51
|
+
export declare function ModelLoader({ url, position, scale, rotation, isSelected, isHovered, onClick, onHover, fallbackGeometry, castShadow, receiveShadow, resourceBasePath, animation, tint, }: ModelLoaderProps): React.JSX.Element;
|
|
50
52
|
export default ModelLoader;
|
|
@@ -46,6 +46,8 @@ export interface IsometricTile {
|
|
|
46
46
|
elevation?: number;
|
|
47
47
|
/** 3D model URL (GLB format) for GameCanvas3D — rendered via ModelLoader with box fallback */
|
|
48
48
|
modelUrl?: Asset;
|
|
49
|
+
/** Y-axis rotation in degrees (3D) — orients directional pieces (track corners, road bends) */
|
|
50
|
+
rotation?: number;
|
|
49
51
|
}
|
|
50
52
|
/** A unit positioned on the isometric grid */
|
|
51
53
|
export type IsometricUnit = {
|