@hytopia.com/server-protocol 1.4.56-dev5 → 1.4.56-dev7

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.4.56-dev5",
3
+ "version": "1.4.56-dev7",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/schemas/Entity.ts CHANGED
@@ -33,8 +33,7 @@ export type EntitySchema = {
33
33
  r?: QuaternionSchema; // rotation
34
34
  ri?: number; // rotation interpolation time in milliseconds
35
35
  rm?: boolean; // removed/remove
36
- s?: number; // model scale - Deprecated as of 0.11.10, use sv
37
- si?: number; // scale interpolation time in milliseconds
36
+ si?: number; // model scale interpolation time in milliseconds
38
37
  sv?: VectorSchema; // model scale vector for each axis
39
38
  t?: RgbColorSchema; // tint color
40
39
  }
@@ -62,7 +61,6 @@ export const entitySchema: JSONSchemaType<EntitySchema> = {
62
61
  r: { ...quaternionSchema, nullable: true },
63
62
  ri: { type: 'number', nullable: true },
64
63
  rm: { type: 'boolean', nullable: true },
65
- s: { type: 'number', nullable: true },
66
64
  si: { type: 'number', nullable: true },
67
65
  sv: { ...vectorSchema, nullable: true },
68
66
  t: { ...rgbColorSchema, nullable: true },
@@ -13,9 +13,12 @@ export type ModelNodeOverrideSchema = {
13
13
  ei?: number; // emissive intensity
14
14
  h?: boolean; // hidden
15
15
  p?: VectorSchema; // local position
16
+ pi?: number; // local position interpolation time in milliseconds
16
17
  r?: QuaternionSchema; // local rotation
18
+ ri?: number; // local rotation interpolation time in milliseconds
17
19
  rm?: boolean; // removed/remove
18
20
  s?: VectorSchema; // local scale
21
+ si?: number; // local scale interpolation time in milliseconds
19
22
  }
20
23
 
21
24
  export const modelNodeOverrideSchema: JSONSchemaType<ModelNodeOverrideSchema> = {
@@ -26,9 +29,12 @@ export const modelNodeOverrideSchema: JSONSchemaType<ModelNodeOverrideSchema> =
26
29
  ei: { type: 'number', nullable: true },
27
30
  h: { type: 'boolean', nullable: true },
28
31
  p: { ...vectorSchema, nullable: true },
32
+ pi: { type: 'number', nullable: true },
29
33
  r: { ...quaternionSchema, nullable: true },
34
+ ri: { type: 'number', nullable: true },
30
35
  rm: { type: 'boolean', nullable: true },
31
36
  s: { ...vectorSchema, nullable: true },
37
+ si: { type: 'number', nullable: true },
32
38
  },
33
39
  required: [ 'n' ],
34
40
  additionalProperties: false,