MCPcopy Create free account
hub / github.com/alignoth/alignoth / assembleMarks

Method assembleMarks

resources/vega-lite.min.js:13112–13140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13110 }
13111 }
13112 assembleMarks() {
13113 const { child: e } = this,
13114 t = (function (e) {
13115 const t = [],
13116 n = op(t);
13117 for (const t of e.children)
13118 n(t, { source: e.name, name: null, transform: [] });
13119 return t;
13120 })(this.component.data.facetRoot),
13121 n = e.assembleGroupEncodeEntry(!1),
13122 i = this.assembleLabelTitle() || e.assembleTitle(),
13123 r = e.assembleGroupStyle();
13124 return [
13125 {
13126 name: this.getName("cell"),
13127 type: "group",
13128 ...(i ? { title: i } : {}),
13129 ...(r ? { style: r } : {}),
13130 from: { facet: this.assembleFacet() },
13131 sort: {
13132 field: Be.map((e) => this.facetSortFields(e)).flat(),
13133 order: Be.map((e) => this.facetSortOrder(e)).flat(),
13134 },
13135 ...(t.length > 0 ? { data: t } : {}),
13136 ...(n ? { encode: { update: n } } : {}),
13137 ...e.assembleGroup(Gc(this, [])),
13138 },
13139 ];
13140 }
13141 getMapping() {
13142 return this.facet;
13143 }

Callers 2

assembleGroupMethod · 0.45
assembleMarksMethod · 0.45

Calls 13

assembleLabelTitleMethod · 0.95
assembleFacetMethod · 0.95
facetSortFieldsMethod · 0.95
facetSortOrderMethod · 0.95
GcFunction · 0.85
getNameMethod · 0.80
opFunction · 0.70
nFunction · 0.70
assembleTitleMethod · 0.45
assembleGroupStyleMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected