# 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: "", genomicFields: ["", ...] }`, 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>>; ``` 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`