new DeltaFeatureExtractor()
Creates a new feature extractor that identifies differences between sequential events containing Grids
Extends
Methods
-
createDelta(newGrid) → {Array.<object>|null}
-
Creates a difference map between the current Grid and the previous one. Typically triggered by an event and not called directly.
Parameters:
Name Type Description newGridGrid The current grid.
Returns:
Array.<object> | null -Returns the output of Grid.diff. Returns 'null' if this is the first event or if there was no difference between Grids.
-
listen(sourceName)
-
Listens for
dataevents from another ComponentParameters:
Name Type Description sourceNamestring The name of the component to listen to
- Overrides:
-
sendEvent(type, data)
-
Emits an event using the specified eventClass
Parameters:
Name Type Description typestring The event type to emit
data* The data to emit
- Overrides: