Diff

new Diff(json)

Store difference between two following states (state(t) + diff(t,t+1) = state(t+1))

Parameters:
NameTypeDescription
jsonobject

json to configure diff

Properties
NameTypeDescription
timestampnumber

time of state(t+1)

nextStateObjectsUUIDArray.<string>

uuids object3D present in state(t+1)

objects3DToUpdateJSONObject.<string, object>

map uuid object3D to object3D json where outdated (model has changed)

Members

nextStateObjectsUUID :Array.<string>

uuids object3D present in state(t+1)

Type:
  • Array.<string>

objects3DToUpdateJSON :Object.<string, object>

map uuid object3D to object3D json where outdated (model has changed)

Type:
  • Object.<string, object>

timestamp :number

time of state(t+1)

Type:
  • number

Methods

getNextStateObjectsUUID() → {Array.<string>}

Returns:
  • diff next state object3D uuid
Type: 
Array.<string>

getObjects3DToUpdateJSON() → {Object.<string, object>}

Returns:
  • diff objects3D to update
Type: 
Object.<string, object>

getTimeStamp() → {number}

Returns:
  • dif timestamp
Type: 
number