Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | 170x 566x 1x 142x 4x 2x 4x 168x 2x 185x 2x 122x 810x 305x 42x 87x 68x 35x 65x 41x 18x 42x 98x 115x 36x 2x 272x 130x 60x | import type { ResolvedChart } from '@be-music/chart-model';
/** Keep source getters bound to their owner; spreading a lazy chart would drop them. */
export function withChartOverrides(source: ResolvedChart, overrides: Partial<ResolvedChart>): ResolvedChart {
return {
get source() {
return source.source;
},
get diagnostics() {
return source.diagnostics;
},
get sourceFormat() {
return source.sourceFormat;
},
get randomDraws() {
return source.randomDraws;
},
get hasUnresolvedControlFlow() {
return source.hasUnresolvedControlFlow;
},
get idBase() {
return source.idBase;
},
get playVariant() {
return source.playVariant;
},
get layouts() {
return source.layouts;
},
get lnMode() {
return source.lnMode;
},
get inferBmsLNTypeWhenMissing() {
return source.inferBmsLNTypeWhenMissing;
},
get beatResolver() {
return source.beatResolver;
},
get timing() {
return source.timing;
},
get reversal() {
return source.reversal;
},
get sortedEvents() {
return source.sortedEvents;
},
get notes() {
return source.notes;
},
get shadowedNotes() {
return source.shadowedNotes;
},
get mines() {
return source.mines;
},
get invisibleNotes() {
return source.invisibleNotes;
},
get sampleTriggers() {
return source.sampleTriggers;
},
get volumeChanges() {
return source.volumeChanges;
},
get bga() {
return source.bga;
},
get scroll() {
return source.scroll;
},
get speed() {
return source.speed;
},
get barLines() {
return source.barLines;
},
get barLinesSuppressed() {
return source.barLinesSuppressed;
},
get judgeRank() {
return source.judgeRank;
},
get total() {
return source.total;
},
get lastNoteSeconds() {
return source.lastNoteSeconds;
},
...overrides,
};
}
|