MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / getColorStops

Function getColorStops

public/iframe/lib/js/mixinsComponents.js:1369–1374  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

1367 return `calc(${count / this.sum * 100}% + ${this.option.avatarWidth}px)`
1368 },
1369 getColorStops(index) {
1370 if (index < 3) {
1371 return `linear-gradient(90deg, ${this.option.color[index * 2]} 0%, ${this.option.color[index * 2 + 1]})`
1372 }
1373 return `linear-gradient(90deg, ${this.option.color[6]} 0%, ${this.option.color[7]})`
1374 },
1375 },
1376 template: ` <ul class="capsuleList full">
1377 <li v-for="(item,index) in data">

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected