This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variables: | |
MAVEN_CLI_OPTS: "-s ./settings.xml --batch-mode" | |
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dhttps.protocols=TLSv1.2" | |
cache: | |
paths: | |
- .m2/repository/ | |
build: | |
image: maven:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const getUniqueColorsForShowIds = (showIds: number[]) => { | |
console.log("colors.length "+colors.length); | |
console.log("showIds "+showIds); | |
// get list of indicies in color array | |
const listOfIndicies: number[] = showIds.map(id => { | |
// using modulus operator, so if id = 103 and color.length = 100, then colorIndex will be 3 | |
const colorIndex = id % colors.length; | |
return colorIndex; | |
}); |