@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hytopia.com/server-protocol",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
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 },
package/schemas/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './Block';
2
+ export * from './BlockBatch';
2
3
  export * from './BlockType';
3
4
  export * from './BlockTypeBatch';
4
5
  export * from './ChatMessage';