Skip to main content

Interface: SurfaceOpts

Defined in: packages/sdvplot/src/plot/surface.ts:12

Sporty's surface options plus team painting; colorUpdates overrides are keyed by sporty colour keys.

Extends​

  • SurfaceSceneOptions

Properties​

arcResolution?​

optional arcResolution?: number

Defined in: packages/sdvplot/src/surfaces.ts:224

Inherited from​

SurfaceSceneOptions.arcResolution


optional centerLogo?: number | boolean

Defined in: packages/sdvplot/src/plot/surface.ts:22

The team's logo at the surface centre, moved with xTrans / yTrans and rotation as the surface is: true is 0.25 of the frame height, a number is that fraction in (0, 1] (0 or out of range throws InputError). A baseball or softball field's origin is home plate, so there the logo goes in shallow centre field, as in sdvplotR and sdvplot: at x = 0, midway between second base (baseline_distance * sqrt(2)) and the centre-field fence, and with true 0.15 x center_field_distance across (60 ft on an MLB field, at 263.6 ft from home plate). On grass (football, soccer, baseball, softball) it is the team's dark-background logo. Ignored without a team (sdvplotR errors instead). A half-surface displayRange can leave the logo off-frame.


colorUpdates?​

optional colorUpdates?: Partial<Record<AnyColorKey, string>>

Defined in: packages/sdvplot/src/surfaces.ts:206

Overrides on top of the team painting, keyed by sporty colour key.

Inherited from​

SurfaceSceneOptions.colorUpdates


displayRange?​

optional displayRange?: AnyRange

Defined in: packages/sdvplot/src/surfaces.ts:209

A sporty display range for the league's sport; one the sport does not know throws sporty's UnknownDisplayRangeError.

Inherited from​

SurfaceSceneOptions.displayRange


rotation?​

optional rotation?: number

Defined in: packages/sdvplot/src/surfaces.ts:207

Inherited from​

SurfaceSceneOptions.rotation


season?​

optional season?: SeasonInput

Defined in: packages/sdvplot/src/surfaces.ts:204

Inherited from​

SurfaceSceneOptions.season


team?​

optional team?: Value

Defined in: packages/sdvplot/src/surfaces.ts:203

A team of the league, painting the surface; only for keys that are sdv team leagues (otherwise InputError).

Inherited from​

SurfaceSceneOptions.team


units?​

optional units?: "m" | "ft" | "yd" | "in" | "cm" | "mm"

Defined in: packages/sdvplot/src/surfaces.ts:212

Inherited from​

SurfaceSceneOptions.units


updates?​

optional updates?: BaseballParamUpdates & BasketballParamUpdates & CurlingParamUpdates & FootballParamUpdates & HockeyParamUpdates & LacrosseParamUpdates & SoccerParamUpdates & SoftballParamUpdates & TennisParamUpdates & VolleyballParamUpdates

Defined in: packages/sdvplot/src/surfaces.ts:214

Sporty parameter overrides (intersected across sports so each sport's own keys type-check).

Inherited from​

SurfaceSceneOptions.updates


xlim?​

optional xlim?: readonly [number, number]

Defined in: packages/sdvplot/src/surfaces.ts:210

Inherited from​

SurfaceSceneOptions.xlim


xTrans?​

optional xTrans?: number

Defined in: packages/sdvplot/src/surfaces.ts:225

Inherited from​

SurfaceSceneOptions.xTrans


ylim?​

optional ylim?: readonly [number, number]

Defined in: packages/sdvplot/src/surfaces.ts:211

Inherited from​

SurfaceSceneOptions.ylim


yTrans?​

optional yTrans?: number

Defined in: packages/sdvplot/src/surfaces.ts:226

Inherited from​

SurfaceSceneOptions.yTrans