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

Function xn

resources/vega-lite.min.js:783–824  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

781 return i;
782 }
783 function xn(e) {
784 const {
785 anchor: t,
786 frame: n,
787 offset: i,
788 orient: r,
789 angle: o,
790 limit: a,
791 color: s,
792 subtitleColor: l,
793 subtitleFont: c,
794 subtitleFontSize: f,
795 subtitleFontStyle: d,
796 subtitleFontWeight: m,
797 subtitleLineHeight: p,
798 subtitlePadding: g,
799 ...h
800 } = e,
801 y = {
802 ...(t ? { anchor: t } : {}),
803 ...(n ? { frame: n } : {}),
804 ...(i ? { offset: i } : {}),
805 ...(r ? { orient: r } : {}),
806 ...(void 0 !== o ? { angle: o } : {}),
807 ...(void 0 !== a ? { limit: a } : {}),
808 },
809 v = {
810 ...(l ? { subtitleColor: l } : {}),
811 ...(c ? { subtitleFont: c } : {}),
812 ...(f ? { subtitleFontSize: f } : {}),
813 ...(d ? { subtitleFontStyle: d } : {}),
814 ...(m ? { subtitleFontWeight: m } : {}),
815 ...(p ? { subtitleLineHeight: p } : {}),
816 ...(g ? { subtitlePadding: g } : {}),
817 };
818 return {
819 titleMarkConfig: { ...h, ...(s ? { fill: s } : {}) },
820 subtitleMarkConfig: u(e, ["align", "baseline", "dx", "dy", "limit"]),
821 nonMarkTitleProperties: y,
822 subtitle: v,
823 };
824 }
825 function $n(e) {
826 return t.isString(e) || (t.isArray(e) && t.isString(e[0]));
827 }

Callers 2

tlFunction · 0.70
assembleTitleMethod · 0.70

Calls 1

uFunction · 0.70

Tested by

no test coverage detected