@hytopia.com/server-protocol 1.1.1 → 1.1.3
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/package.json +1 -1
- package/schemas/Entity.ts +5 -3
- package/schemas/index.ts +1 -0
package/package.json
CHANGED
package/schemas/Entity.ts
CHANGED
|
@@ -10,24 +10,26 @@ export type EntitySchema = {
|
|
|
10
10
|
al?: string[]; // animations looped
|
|
11
11
|
ao?: string[]; // animations one shot
|
|
12
12
|
as?: string[]; // animations stop
|
|
13
|
+
b?: VectorSchema; // model visual bounding box half extents
|
|
13
14
|
f?: boolean; // focused
|
|
14
15
|
m?: string; // model uri
|
|
15
16
|
n?: string; // name
|
|
16
17
|
p?: VectorSchema; // position
|
|
17
18
|
r?: QuaternionSchema; // rotation
|
|
18
19
|
rm?: boolean; // removed/remove
|
|
19
|
-
s?: VectorSchema; // scale
|
|
20
|
+
s?: VectorSchema; // model scale relative to visual bounding box
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
export const entitySchema: JSONSchemaType<EntitySchema> = {
|
|
23
24
|
type: 'object',
|
|
24
25
|
properties: {
|
|
25
26
|
i: { type: 'number' },
|
|
26
|
-
f: { type: 'boolean', nullable: true },
|
|
27
|
-
m: { type: 'string', nullable: true },
|
|
28
27
|
al: { type: 'array', items: { type: 'string' }, nullable: true },
|
|
29
28
|
ao: { type: 'array', items: { type: 'string' }, nullable: true },
|
|
30
29
|
as: { type: 'array', items: { type: 'string' }, nullable: true },
|
|
30
|
+
b: { ...vectorSchema, nullable: true },
|
|
31
|
+
f: { type: 'boolean', nullable: true },
|
|
32
|
+
m: { type: 'string', nullable: true },
|
|
31
33
|
n: { type: 'string', nullable: true },
|
|
32
34
|
p: { ...vectorSchema, nullable: true },
|
|
33
35
|
r: { ...quaternionSchema, nullable: true },
|