Method
broadcastSource
(
sources: TypedSelection[],
destinations: TypedSelection[]
)
Source from the content-addressed store, hash-verified
| 48 | } |
| 49 | |
| 50 | private broadcastSource( |
| 51 | sources: TypedSelection[], |
| 52 | destinations: TypedSelection[] |
| 53 | ) { |
| 54 | if (sources.length === 1 && this.type !== "swap") { |
| 55 | // If there is only one source target, expand it to same length as |
| 56 | // destination target |
| 57 | return Array(destinations.length).fill(sources[0]); |
| 58 | } |
| 59 | return sources; |
| 60 | } |
| 61 | |
| 62 | private getDecorationStyles() { |
| 63 | let sourceStyle; |
Tested by
no test coverage detected