@nodaro/shared 3.5.0 → 3.6.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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/scene3d-v2-resources.test.ts +3 -0
- package/src/__tests__/scene3d-v2.test.ts +3 -0
- package/src/scene3d-v2.ts +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -13208,7 +13208,7 @@ declare const SCENE3D_RENDERER_ASSET_KINDS: readonly Scene3DAssetKind[];
|
|
|
13208
13208
|
declare const SCENE3D_PRIMITIVE_MATERIAL_ROLE = "identity";
|
|
13209
13209
|
/** The standardized clay look, pinned by id. Browser preview, critic stills and
|
|
13210
13210
|
* the final export must implement a given preset identically. */
|
|
13211
|
-
declare const SCENE3D_CLAY_LIGHTING_PRESETS: readonly ["clay-studio-v1"];
|
|
13211
|
+
declare const SCENE3D_CLAY_LIGHTING_PRESETS: readonly ["clay-studio-v1", "clay-studio-v2"];
|
|
13212
13212
|
type Scene3DClayLightingPreset = (typeof SCENE3D_CLAY_LIGHTING_PRESETS)[number];
|
|
13213
13213
|
/** A stable contact/selection location in entity-local space, or in the local
|
|
13214
13214
|
* space of an explicitly bound GLB node. Names are free
|
|
@@ -13562,6 +13562,7 @@ declare const scene3DShotSchema: z.ZodObject<{
|
|
|
13562
13562
|
declare const scene3DClayLightingSchema: z.ZodObject<{
|
|
13563
13563
|
preset: z.ZodEnum<{
|
|
13564
13564
|
"clay-studio-v1": "clay-studio-v1";
|
|
13565
|
+
"clay-studio-v2": "clay-studio-v2";
|
|
13565
13566
|
}>;
|
|
13566
13567
|
ambientIntensity: z.ZodNumber;
|
|
13567
13568
|
keyIntensity: z.ZodNumber;
|
|
@@ -13799,6 +13800,7 @@ declare const scene3DPlanV2ObjectSchema: z.ZodObject<{
|
|
|
13799
13800
|
lighting: z.ZodObject<{
|
|
13800
13801
|
preset: z.ZodEnum<{
|
|
13801
13802
|
"clay-studio-v1": "clay-studio-v1";
|
|
13803
|
+
"clay-studio-v2": "clay-studio-v2";
|
|
13802
13804
|
}>;
|
|
13803
13805
|
ambientIntensity: z.ZodNumber;
|
|
13804
13806
|
keyIntensity: z.ZodNumber;
|
|
@@ -13984,6 +13986,7 @@ declare const scene3DPlanV2Schema: z.ZodObject<{
|
|
|
13984
13986
|
lighting: z.ZodObject<{
|
|
13985
13987
|
preset: z.ZodEnum<{
|
|
13986
13988
|
"clay-studio-v1": "clay-studio-v1";
|
|
13989
|
+
"clay-studio-v2": "clay-studio-v2";
|
|
13987
13990
|
}>;
|
|
13988
13991
|
ambientIntensity: z.ZodNumber;
|
|
13989
13992
|
keyIntensity: z.ZodNumber;
|
|
@@ -14249,6 +14252,7 @@ declare const scene3DAnyPlanSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
14249
14252
|
lighting: z.ZodObject<{
|
|
14250
14253
|
preset: z.ZodEnum<{
|
|
14251
14254
|
"clay-studio-v1": "clay-studio-v1";
|
|
14255
|
+
"clay-studio-v2": "clay-studio-v2";
|
|
14252
14256
|
}>;
|
|
14253
14257
|
ambientIntensity: z.ZodNumber;
|
|
14254
14258
|
keyIntensity: z.ZodNumber;
|
|
@@ -15109,6 +15113,7 @@ declare const pro3DRenderJobOutputSchema: z.ZodObject<{
|
|
|
15109
15113
|
lighting: z.ZodObject<{
|
|
15110
15114
|
preset: z.ZodEnum<{
|
|
15111
15115
|
"clay-studio-v1": "clay-studio-v1";
|
|
15116
|
+
"clay-studio-v2": "clay-studio-v2";
|
|
15112
15117
|
}>;
|
|
15113
15118
|
ambientIntensity: z.ZodNumber;
|
|
15114
15119
|
keyIntensity: z.ZodNumber;
|
|
@@ -15403,6 +15408,7 @@ declare const pro3DRenderCoreOutputSchema: z.ZodObject<{
|
|
|
15403
15408
|
lighting: z.ZodObject<{
|
|
15404
15409
|
preset: z.ZodEnum<{
|
|
15405
15410
|
"clay-studio-v1": "clay-studio-v1";
|
|
15411
|
+
"clay-studio-v2": "clay-studio-v2";
|
|
15406
15412
|
}>;
|
|
15407
15413
|
ambientIntensity: z.ZodNumber;
|
|
15408
15414
|
keyIntensity: z.ZodNumber;
|
package/dist/index.d.ts
CHANGED
|
@@ -13208,7 +13208,7 @@ declare const SCENE3D_RENDERER_ASSET_KINDS: readonly Scene3DAssetKind[];
|
|
|
13208
13208
|
declare const SCENE3D_PRIMITIVE_MATERIAL_ROLE = "identity";
|
|
13209
13209
|
/** The standardized clay look, pinned by id. Browser preview, critic stills and
|
|
13210
13210
|
* the final export must implement a given preset identically. */
|
|
13211
|
-
declare const SCENE3D_CLAY_LIGHTING_PRESETS: readonly ["clay-studio-v1"];
|
|
13211
|
+
declare const SCENE3D_CLAY_LIGHTING_PRESETS: readonly ["clay-studio-v1", "clay-studio-v2"];
|
|
13212
13212
|
type Scene3DClayLightingPreset = (typeof SCENE3D_CLAY_LIGHTING_PRESETS)[number];
|
|
13213
13213
|
/** A stable contact/selection location in entity-local space, or in the local
|
|
13214
13214
|
* space of an explicitly bound GLB node. Names are free
|
|
@@ -13562,6 +13562,7 @@ declare const scene3DShotSchema: z.ZodObject<{
|
|
|
13562
13562
|
declare const scene3DClayLightingSchema: z.ZodObject<{
|
|
13563
13563
|
preset: z.ZodEnum<{
|
|
13564
13564
|
"clay-studio-v1": "clay-studio-v1";
|
|
13565
|
+
"clay-studio-v2": "clay-studio-v2";
|
|
13565
13566
|
}>;
|
|
13566
13567
|
ambientIntensity: z.ZodNumber;
|
|
13567
13568
|
keyIntensity: z.ZodNumber;
|
|
@@ -13799,6 +13800,7 @@ declare const scene3DPlanV2ObjectSchema: z.ZodObject<{
|
|
|
13799
13800
|
lighting: z.ZodObject<{
|
|
13800
13801
|
preset: z.ZodEnum<{
|
|
13801
13802
|
"clay-studio-v1": "clay-studio-v1";
|
|
13803
|
+
"clay-studio-v2": "clay-studio-v2";
|
|
13802
13804
|
}>;
|
|
13803
13805
|
ambientIntensity: z.ZodNumber;
|
|
13804
13806
|
keyIntensity: z.ZodNumber;
|
|
@@ -13984,6 +13986,7 @@ declare const scene3DPlanV2Schema: z.ZodObject<{
|
|
|
13984
13986
|
lighting: z.ZodObject<{
|
|
13985
13987
|
preset: z.ZodEnum<{
|
|
13986
13988
|
"clay-studio-v1": "clay-studio-v1";
|
|
13989
|
+
"clay-studio-v2": "clay-studio-v2";
|
|
13987
13990
|
}>;
|
|
13988
13991
|
ambientIntensity: z.ZodNumber;
|
|
13989
13992
|
keyIntensity: z.ZodNumber;
|
|
@@ -14249,6 +14252,7 @@ declare const scene3DAnyPlanSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
14249
14252
|
lighting: z.ZodObject<{
|
|
14250
14253
|
preset: z.ZodEnum<{
|
|
14251
14254
|
"clay-studio-v1": "clay-studio-v1";
|
|
14255
|
+
"clay-studio-v2": "clay-studio-v2";
|
|
14252
14256
|
}>;
|
|
14253
14257
|
ambientIntensity: z.ZodNumber;
|
|
14254
14258
|
keyIntensity: z.ZodNumber;
|
|
@@ -15109,6 +15113,7 @@ declare const pro3DRenderJobOutputSchema: z.ZodObject<{
|
|
|
15109
15113
|
lighting: z.ZodObject<{
|
|
15110
15114
|
preset: z.ZodEnum<{
|
|
15111
15115
|
"clay-studio-v1": "clay-studio-v1";
|
|
15116
|
+
"clay-studio-v2": "clay-studio-v2";
|
|
15112
15117
|
}>;
|
|
15113
15118
|
ambientIntensity: z.ZodNumber;
|
|
15114
15119
|
keyIntensity: z.ZodNumber;
|
|
@@ -15403,6 +15408,7 @@ declare const pro3DRenderCoreOutputSchema: z.ZodObject<{
|
|
|
15403
15408
|
lighting: z.ZodObject<{
|
|
15404
15409
|
preset: z.ZodEnum<{
|
|
15405
15410
|
"clay-studio-v1": "clay-studio-v1";
|
|
15411
|
+
"clay-studio-v2": "clay-studio-v2";
|
|
15406
15412
|
}>;
|
|
15407
15413
|
ambientIntensity: z.ZodNumber;
|
|
15408
15414
|
keyIntensity: z.ZodNumber;
|
package/dist/index.js
CHANGED
|
@@ -15542,7 +15542,7 @@ var SCENE3D_RENDERER_ASSET_KINDS = [
|
|
|
15542
15542
|
"poster"
|
|
15543
15543
|
];
|
|
15544
15544
|
var SCENE3D_PRIMITIVE_MATERIAL_ROLE = "identity";
|
|
15545
|
-
var SCENE3D_CLAY_LIGHTING_PRESETS = ["clay-studio-v1"];
|
|
15545
|
+
var SCENE3D_CLAY_LIGHTING_PRESETS = ["clay-studio-v1", "clay-studio-v2"];
|
|
15546
15546
|
var scene3DAssetIdSchema = z.string().min(1).max(SCENE3D_V2_LIMITS.maxAssetIdLength).regex(/^[A-Za-z0-9][A-Za-z0-9_.:-]*$/, "assetId must be an opaque id (letters, digits, '_', '-', '.', ':')").refine((value) => !value.includes(".."), "assetId must not contain '..'");
|
|
15547
15547
|
var scene3DNodeIdSchema = z.string().min(1).max(SCENE3D_V2_LIMITS.maxNodeIdLength).regex(/^[A-Za-z0-9][A-Za-z0-9_.:-]*$/, "node id must be an exporter-generated stable id");
|
|
15548
15548
|
var scene3DNodeNameSchema = z.string().min(1).max(SCENE3D_V2_LIMITS.maxNodeNameLength).regex(/^[^\u0000-\u001f\u007f]+$/, "node name must not contain control characters");
|