(str: string, blk: IBlkDef | IBlkDef[], style?: DimStyle)
| 26 | } |
| 27 | |
| 28 | function c_blockRef(str: string, blk: IBlkDef | IBlkDef[], style?: DimStyle) { |
| 29 | let firstBlk = Array.isArray(blk) ? blk[0] : blk; |
| 30 | style ??= firstBlk.t === 'i' ? DimStyle.Intermediates : firstBlk.t === "w" ? DimStyle.Weights : DimStyle.Aggregates; |
| 31 | return { str, duration: 0, start: 0, t: 0.0, color: dimStyleColor(style), blk }; |
| 32 | } |
| 33 | |
| 34 | function c_dimRef(str: string, style: DimStyle) { |
| 35 | return { str, duration: 0, start: 0, t: 0.0, color: dimStyleColor(style), dim: style }; |
no test coverage detected