Skip to main content

Interface: AppendSignatureOptions

Defined in: packages/sdvplot/src/d3/shots.ts:174

Options for appendSignature.

Properties​

curve?​

optional curve?: "monotone-x" | "basis"

Defined in: packages/sdvplot/src/d3/shots.ts:182

"monotone-x" (default, main) or "basis" (master ShootingSignature/index.js:96).


fill?​

optional fill?: DiffScale

Defined in: packages/sdvplot/src/d3/shots.ts:180

Colour of colourDiff; default diffScale().


halfWidth?​

optional halfWidth?: (p, maxShare) => number

Defined in: packages/sdvplot/src/d3/shots.ts:184

Ribbon half-width in PIXELS; default main's max(share / maxShare * 20, 0.75) (shootingSignature.ts:131-132).

Parameters​

p​

SignaturePoint

maxShare​

number

Returns​

number


league?​

optional league?: boolean

Defined in: packages/sdvplot/src/d3/shots.ts:186

The dashed league line, faint everywhere and full strength under the ribbon (:165-181); default true.


x​

x: (distance) => number

Defined in: packages/sdvplot/src/d3/shots.ts:176

The caller's scale from distance (ft) to px.

Parameters​

distance​

number

Returns​

number


y​

y: (fgPct) => number

Defined in: packages/sdvplot/src/d3/shots.ts:178

The caller's scale from FG% (0-1) to px; a clamped scale clamps the ribbon's centre.

Parameters​

fgPct​

number

Returns​

number