@nodaro/shared 3.0.0 → 3.2.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 +398 -151
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +995 -2
- package/dist/index.d.ts +995 -2
- package/dist/index.js +368 -152
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/presentation-utils.test.ts +97 -0
- package/src/__tests__/scene3d-authoring-engine.test.ts +104 -0
- package/src/__tests__/scene3d-base-visibility.test.ts +36 -0
- package/src/index.ts +3 -0
- package/src/model-constants.ts +10 -0
- package/src/node-mappable-fields.ts +1 -0
- package/src/presentation-utils.ts +54 -2
- package/src/pro-3d-render.ts +466 -0
- package/src/producer-types.ts +5 -0
- package/src/scene3d-authoring-engine.ts +215 -0
- package/src/scene3d-v2.ts +3 -0
package/src/scene3d-v2.ts
CHANGED
|
@@ -314,6 +314,8 @@ export interface Scene3DEntityV2 {
|
|
|
314
314
|
position?: Vec3
|
|
315
315
|
rotation?: Vec3
|
|
316
316
|
scale?: Vec3
|
|
317
|
+
/** Baked visibility before manual overlays. Absent means visible. */
|
|
318
|
+
visible?: boolean
|
|
317
319
|
/** The selection/identity chip colour. Opaque hex, sRGB. */
|
|
318
320
|
identityColor?: string
|
|
319
321
|
anchors?: Scene3DAnchor[]
|
|
@@ -541,6 +543,7 @@ export const scene3DEntityV2Schema = z
|
|
|
541
543
|
position: vec3Schema.optional(),
|
|
542
544
|
rotation: rotationVec3Schema.optional(),
|
|
543
545
|
scale: scaleVec3Schema.optional(),
|
|
546
|
+
visible: z.boolean().optional(),
|
|
544
547
|
identityColor: scene3DColorSchema.optional(),
|
|
545
548
|
anchors: z.array(scene3DAnchorSchema).max(SCENE3D_V2_LIMITS.maxAnchorsPerEntity).optional(),
|
|
546
549
|
capabilities: z.array(scene3DEntityCapabilitySchema).max(SCENE3D_ENTITY_CAPABILITIES.length).optional(),
|