(
value: SignalValue<PossibleCodeScope>,
duration: number,
timingFunction: TimingFunction,
)
| 97 | } |
| 98 | |
| 99 | public override *tweener( |
| 100 | value: SignalValue<PossibleCodeScope>, |
| 101 | duration: number, |
| 102 | timingFunction: TimingFunction, |
| 103 | ): ThreadGenerator { |
| 104 | let tokenize = defaultTokenize; |
| 105 | const highlighter = unwrap(this.highlighter); |
| 106 | if (highlighter) { |
| 107 | yield (async () => { |
| 108 | do { |
| 109 | await DependencyContext.consumePromises(); |
| 110 | highlighter.initialize(); |
| 111 | } while (DependencyContext.hasPromises()); |
| 112 | })(); |
| 113 | tokenize = (input: string) => highlighter.tokenize(input); |
| 114 | } |
| 115 | |
| 116 | this.progress(0); |
| 117 | this.set({ |
| 118 | progress: this.progress, |
| 119 | fragments: defaultDiffer(this.get(), this.parse(unwrap(value)), tokenize), |
| 120 | }); |
| 121 | yield* this.progress(1, duration, timingFunction); |
| 122 | this.set(value); |
| 123 | } |
| 124 | |
| 125 | public edit(duration: number = 0.6): TagGenerator { |
| 126 | return (strings, ...tags) => |
nothing calls this directly
no test coverage detected