File size: 8,437 Bytes
f3042bd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# Gosling 1.0.7 submission contract

Author one complete Gosling 1.0.7 specification for the task. The host renders it in a fixed 900 × 620 CSS-pixel viewport with hg38 assembly metadata supplied by the host.

Submit a complete JavaScript program with the `code` tool. The program returns the complete specification as plain object literals; it does not print it or return a patch. The TypeScript declarations in the appendix are reference only: write plain JavaScript, with no type annotations. Imports, files, and network access are disabled.

Bind the task rows by name with `data: { type: "json", name: "table", chromosomeField: "<field>", genomicFields: ["<field>", ...] }`, naming the rows' chromosome and genomic position fields. The host replaces each such reference with exactly the rows shown in the task before validation. Do not copy the rows into the specification: inline data is rejected. Tracks may filter or reuse the same rows.

The program may also read the same rows, for example to compute domains:

```typescript
declare function getData(): Promise<Array<Record<string, unknown>>>;
```

The host accepts a submission only after JSON-Schema validation, native compilation, and a render without console, page, or network errors all succeed. A rejected call returns its stage and error. Repair it by submitting another complete program.

Each attempt is retained for evaluation. The latest submission, not the last accepted one, controls the final outcome: a later invalid submission makes the final outcome invalid even when an earlier accepted chart is retained for audit. Stop after acceptance.

---

# Mechanically generated role-balanced name index

Every unique schema property name appears exactly once in the complete stub section, including underscore-prefixed/internal names. `*` means required in at least one occurrence. The letter is the property's dominant declaring-definition role for navigation only: C=channels, D=data, I=interaction, L=layout-style, R=root, S=scale, M=track-mark, T=transforms, V=view-composition. Lines are alphabetized within roles and interleaved by lexical role in chunks of 12.

## Complete property-name stubs

C: aggregate, axis, baseline, clip, domain, flip, grid, legend, range, scale, zeroBaseline
D: aggregation, attribute*, attributesToFields, binSize, categories, chromosomeField*, chromosomePrefix, column, customFields, defaultValue*, end, exonIntervalFields
I: alt, arrange, click, conditionPadding, enableMouseOverOnMultipleMarks, format, groupMarksByField, measure*, operation*, rangeSelect, target*, threshold*
L: align, backgroundOpacity, brush, curve, dashed, dx, dy, enableSmoothPath, inlineLegend, legendTitle, linePattern, linkConnectionType
R: _assignedHeight, _assignedWidth, alignment*, arrangement, assembly, centerRadius, description, id, layout, linkingId, orientation, padding
S: chromosome*, interval*
M: _invalidTrack, _overlay*, _renderingId, background, baselineY, color, data*, dataTransform, displacement, encoding, endAngle, experimental
T: base, baseGenomicField*, boundingBox*, chrField*, endField*, field*, fields*, firstBp*, flag*, from*, genomicField*, genomicLengthField*
D: extractJunction, genomicFields*, genomicFieldsToConvert, headerNames, index*, indexUrl*, junctionMinCoverage, loadMates, longToWideId, maxInsertSize, name*, sampleLength
I: transitionPadding
L: linkMinHeight, linkStyle, matrixExtent, mouseOver, outlineWidth, select, strokeOpacity, textAnchor, withinLinkVerticalLines
R: responsiveSize, responsiveSpec, scaleOffset, selectivity*, spacing, spec*, static, style, subtitle, title, tracks*, views*
M: flipY, height, innerRadius, mark*, mouseEvents, opacity, outerRadius, outline, overlayOnPreviousTrack, performanceMode, prerelease, row
T: groupField, include*, inRange*, isPaddingBP, maxRows, method*, newField*, not, oneOf*, posField*, replace*, secondBp*
D: start, type*, url*, value*, valueFields, values*
R: xAxis, xDomain, xOffset, yDomain, yOffset, zoomLimits
M: size*, startAngle, stretch, stretchGraphics, stretchGraphicsThreshold, stroke, strokeWidth, template*, text, textFontSize, textFontWeight, textStroke
T: separator*, startField*, strandField*, to*
M: textStrokeWidth, tooltip, visibility, width, x, x1, x1e, xe, y, y1, y1e, ye

## Safe contextual contracts

The remaining budget follows the frozen 5A role-balanced order over (role, property) aliases. A contract appears only when every occurrence for that alias is byte-identical and the shared renderer preserves it safely. Ambiguous, intersected, open-constant, or oversized details remain name-only above; aggregated literal observations are never presented as exhaustive domains.

## Y.aggregate
Object role: `channels`; authored property: `aggregate`.
Schema pointer: `#/definitions/Y/properties/aggregate`
```typescript
type channels_aggregate = Aggregate;
```
Specify how to aggregate data. __Default__: `undefined`

## VectorData.aggregation
Object role: `data`; authored property: `aggregation`.
Schema pointer: `#/definitions/VectorData/properties/aggregation`
```typescript
type data_aggregation = BinAggregate;
```
Determine aggregation function to apply within bins. __Default__: `"mean"`

## Tooltip.alt
Object role: `interaction`; authored property: `alt`.
Schema pointer: `#/definitions/Tooltip/properties/alt`
```typescript
type interaction_alt = string;
```
Name of the data field for showing in the tooltip. Will use the field name if not specified.

## Style.align
Object role: `layout-style`; authored property: `align`.
Schema pointer: `#/definitions/Style/properties/align`
```typescript
type layout_style_align = "left" | "right";
```
Specify the alignment of marks. This property is currently only supported for `triangle` marks.

## GoslingSpec._assignedHeight
Object role: `root`; authored property: `_assignedHeight`.
Schema pointer: `#/definitions/GoslingSpec/anyOf/3/properties/responsiveSpec/items/properties/spec/properties/_assignedHeight`
```typescript
type root__assignedHeight = number;
```

## TemplateTrack._assignedHeight
Object role: `track-mark`; authored property: `_assignedHeight`.
Schema pointer: `#/definitions/TemplateTrack/properties/_assignedHeight`
```typescript
type track_mark__assignedHeight = number;
```

## LogTransform.base
Object role: `transforms`; authored property: `base`.
Schema pointer: `#/definitions/LogTransform/properties/base`
```typescript
type transforms_base = LogBase;
```
If not specified, 10 is used.

## SingleView._assignedHeight
Object role: `view-composition`; authored property: `_assignedHeight`.
Schema pointer: `#/definitions/SingleView/anyOf/2/properties/responsiveSpec/items/properties/spec/properties/_assignedHeight`
```typescript
type view_composition__assignedHeight = number;
```

## Y.axis
Object role: `channels`; authored property: `axis`.
Schema pointer: `#/definitions/Y/properties/axis`
```typescript
type channels_axis = AxisPosition;
```
Specify where should the axis be put

## GffData.attribute
Object role: `data`; authored property: `attribute`.
Schema pointer: `#/definitions/GffData/properties/attributesToFields/items/properties/attribute`
```typescript
type data_attribute = string;
```

## EventStyle.arrange
Object role: `interaction`; authored property: `arrange`.
Schema pointer: `#/definitions/EventStyle/properties/arrange`
```typescript
type interaction_arrange = "behind" | "front";
```
Show event effects behind or in front of marks.

## Style.background
Object role: `layout-style`; authored property: `background`.
Schema pointer: `#/definitions/Style/properties/background`
```typescript
type layout_style_background = string;
```

## GoslingSpec._assignedWidth
Object role: `root`; authored property: `_assignedWidth`.
Schema pointer: `#/definitions/GoslingSpec/anyOf/3/properties/responsiveSpec/items/properties/spec/properties/_assignedWidth`
```typescript
type root__assignedWidth = number;
```
Internal: Used for responsive spec

## TemplateTrack._assignedWidth
Object role: `track-mark`; authored property: `_assignedWidth`.
Schema pointer: `#/definitions/TemplateTrack/properties/_assignedWidth`
```typescript
type track_mark__assignedWidth = number;
```
Internal: Used for responsive spec

## Y.baseline
Object role: `channels`; authored property: `baseline`.
Schema pointer: `#/definitions/Y/properties/baseline`
```typescript
type channels_baseline = string | number;
```
Custom baseline of the y-axis. __Default__: `0`