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

Function getWidth

public/iframe/lib/js/mixinsComponents.js:1366–1368  ·  view source on GitHub ↗
(count)

Source from the content-addressed store, hash-verified

1364 })
1365 },
1366 getWidth(count) {
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]})`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected