(spec, scope, marks)
| 148570 | return encode; |
| 148571 | } |
| 148572 | function sizeExpression(spec, scope, marks) { |
| 148573 | const size = deref(getChannel("size", spec, marks)), strokeWidth = deref(getChannel("strokeWidth", spec, marks)), fontSize = deref(getFontSize(marks[1].encode, scope, GuideLabelStyle)); |
| 148574 | return (0, _vegaFunctions.parseExpression)(`max(ceil(sqrt(${size})+${strokeWidth}),${fontSize})`, scope); |
| 148575 | } |
| 148576 | function getChannel(name, spec, marks) { |
| 148577 | return spec[name] ? `scale("${spec[name]}",datum)` : getEncoding(name, marks[0].encode); |
| 148578 | } |
no test coverage detected