MCPcopy Create free account
hub / github.com/cyclejs/cyclejs / zapSpeedToMilliseconds

Function zapSpeedToMilliseconds

devtool/src/graphSerializer.ts:45–51  ·  view source on GitHub ↗
(zapSpeed: ZapSpeed)

Source from the content-addressed store, hash-verified

43const SINK_NODE_SIZE: Size = [40, 30];
44
45function zapSpeedToMilliseconds(zapSpeed: ZapSpeed): number {
46 switch (zapSpeed) {
47 case 'slow': return 1100;
48 case 'normal': return 80;
49 case 'fast': return 16;
50 }
51}
52
53class IdTable {
54 private mutableIncrementingId: number;

Callers 1

setupZappingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected