History
ceramic.Entity → tracker.History (Class)
Implements: ceramic.Component
Instance Members
entity: ModelstepSyncDelay: FloatThe delay until a model serialization synchronization is triggered
after calling step(). Useful to prevent too many steps being recorded.
maxSteps: IntIf provided, number of available steps will be limited to this value, meaning older steps will be removed and not recoverable if reaching the limit. Default is: store as many steps as possible, no limit (except available memory?)
initializerName: StringManually clear previous steps outside the given limit
| Name | Type |
|---|---|
maxSteps |
Int |
bindAsComponent(): Voidstep(): VoidRecord a step in the undo stack
disable(): Voidenable(): Voidundo(): VoidUndo last step, if any
redo(): VoidRedo last undone step, if any
new(): VoidPrivate Members
stepPending: BoolcurrentData: StringBufcurrentStep: IntignoreSteps: IntcanScheduleImmediateStep: BoolemitUndo(): Voidundo event
emitRedo(): Voidredo event
scheduledStep(): VoidclearDelayAllowImmediateStep(): VoidbindSerializer(serializer: SerializeModel): Void| Name | Type |
|---|---|
serializer |
SerializeModel |
recordStepIfNeeded(): VoidapplyCurrentStep(): VoidsetEntity(entity: ceramic.Entity): Void| Name | Type |
|---|---|
entity |
ceramic.Entity |
getEntity(): ceramic.Entity| Returns |
|---|
| ceramic.Entity |
Metadata
| Name | Parameters |
|---|---|
:build |
ceramic.macros.ComponentMacro.build() |
:autoBuild |
ceramic.macros.ComponentMacro.build() |
:build |
ceramic.macros.EntityMacro.buildForCompletion() |
:autoBuild |
ceramic.macros.EntityMacro.buildForCompletion() |
:build |
tracker.macros.EventsMacro.build() |
:autoBuild |
tracker.macros.EventsMacro.build() |