vega-typings
Advanced tools
Comparing version 0.10.0 to 0.10.1
{ | ||
"name": "vega-typings", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "Typings for Vega.", | ||
@@ -22,4 +22,3 @@ "types": "types", | ||
"vega-util": "^1.11.0" | ||
}, | ||
"gitHead": "016e41e94f617acc1fe6d5eb3242b2646b5780c6" | ||
} | ||
} |
@@ -137,18 +137,3 @@ import { | ||
export interface BaseAxis< | ||
N = NumberValue, | ||
NS = number | SignalRef, | ||
B = BooleanValue, | ||
BNS = number | boolean | SignalRef, | ||
S = StringValue, | ||
C = ColorValue, | ||
FW = FontWeightValue, | ||
FS = FontStyleValue, | ||
A = AlignValue, | ||
TB = TextBaselineValue, | ||
LA = LayoutAlign | SignalRef, | ||
LO = LabelOverlap | SignalRef, | ||
DA = DashArrayValue, | ||
AN = AnchorValue | ||
> { | ||
export interface BaseAxis { | ||
/** | ||
@@ -159,3 +144,3 @@ * The minimum extent in pixels that axis ticks and labels should use. This determines a minimum offset value for axis titles. | ||
*/ | ||
minExtent?: N; | ||
minExtent?: NumberValue; | ||
@@ -167,3 +152,3 @@ /** | ||
*/ | ||
maxExtent?: N; | ||
maxExtent?: NumberValue; | ||
@@ -175,3 +160,3 @@ /** | ||
*/ | ||
bandPosition?: N; | ||
bandPosition?: NumberValue; | ||
@@ -182,3 +167,3 @@ // ---------- Title ---------- | ||
*/ | ||
titlePadding?: N; | ||
titlePadding?: NumberValue; | ||
@@ -188,3 +173,3 @@ /** | ||
*/ | ||
titleAlign?: A; | ||
titleAlign?: AlignValue; | ||
@@ -194,3 +179,3 @@ /** | ||
*/ | ||
titleAnchor?: AN; | ||
titleAnchor?: AnchorValue; | ||
@@ -200,3 +185,3 @@ /** | ||
*/ | ||
titleAngle?: N; | ||
titleAngle?: NumberValue; | ||
@@ -206,3 +191,3 @@ /** | ||
*/ | ||
titleX?: N; | ||
titleX?: NumberValue; | ||
@@ -212,3 +197,3 @@ /** | ||
*/ | ||
titleY?: N; | ||
titleY?: NumberValue; | ||
@@ -218,3 +203,3 @@ /** | ||
*/ | ||
titleBaseline?: TB; | ||
titleBaseline?: TextBaselineValue; | ||
@@ -224,3 +209,3 @@ /** | ||
*/ | ||
titleColor?: C; | ||
titleColor?: ColorValue; | ||
@@ -230,3 +215,3 @@ /** | ||
*/ | ||
titleFont?: S; | ||
titleFont?: StringValue; | ||
@@ -238,3 +223,3 @@ /** | ||
*/ | ||
titleFontSize?: N; | ||
titleFontSize?: NumberValue; | ||
@@ -244,3 +229,3 @@ /** | ||
*/ | ||
titleFontStyle?: FS; | ||
titleFontStyle?: FontStyleValue; | ||
@@ -251,3 +236,3 @@ /** | ||
*/ | ||
titleFontWeight?: FW; | ||
titleFontWeight?: FontWeightValue; | ||
@@ -259,3 +244,3 @@ /** | ||
*/ | ||
titleLimit?: N; | ||
titleLimit?: NumberValue; | ||
@@ -265,3 +250,3 @@ /** | ||
*/ | ||
titleLineHeight?: N; | ||
titleLineHeight?: NumberValue; | ||
@@ -271,3 +256,3 @@ /** | ||
*/ | ||
titleOpacity?: N; | ||
titleOpacity?: NumberValue; | ||
@@ -285,3 +270,3 @@ // ---------- Domain ---------- | ||
*/ | ||
domainDash?: DA; | ||
domainDash?: DashArrayValue; | ||
@@ -291,3 +276,3 @@ /** | ||
*/ | ||
domainDashOffset?: N; | ||
domainDashOffset?: NumberValue; | ||
@@ -299,3 +284,3 @@ /** | ||
*/ | ||
domainColor?: C; | ||
domainColor?: ColorValue; | ||
@@ -305,3 +290,3 @@ /** | ||
*/ | ||
domainOpacity?: N; | ||
domainOpacity?: NumberValue; | ||
@@ -313,3 +298,3 @@ /** | ||
*/ | ||
domainWidth?: N; | ||
domainWidth?: NumberValue; | ||
@@ -322,3 +307,3 @@ // ---------- Ticks ---------- | ||
*/ | ||
ticks?: B; | ||
ticks?: BooleanValue; | ||
@@ -330,3 +315,3 @@ /** | ||
*/ | ||
tickColor?: C; | ||
tickColor?: ColorValue; | ||
@@ -336,3 +321,3 @@ /** | ||
*/ | ||
tickDash?: DA; | ||
tickDash?: DashArrayValue; | ||
@@ -342,3 +327,3 @@ /** | ||
*/ | ||
tickDashOffset?: N; | ||
tickDashOffset?: NumberValue; | ||
@@ -348,3 +333,3 @@ /** | ||
*/ | ||
tickExtra?: B; | ||
tickExtra?: BooleanValue; | ||
@@ -354,3 +339,3 @@ /** | ||
*/ | ||
tickOffset?: N; | ||
tickOffset?: NumberValue; | ||
@@ -360,3 +345,3 @@ /** | ||
*/ | ||
tickOpacity?: N; | ||
tickOpacity?: NumberValue; | ||
@@ -368,3 +353,3 @@ /** | ||
*/ | ||
tickRound?: B; | ||
tickRound?: BooleanValue; | ||
@@ -377,3 +362,3 @@ /** | ||
*/ | ||
tickSize?: N; | ||
tickSize?: NumberValue; | ||
@@ -386,3 +371,3 @@ /** | ||
*/ | ||
tickWidth?: N; | ||
tickWidth?: NumberValue; | ||
@@ -400,3 +385,3 @@ // ---------- Grid ---------- | ||
*/ | ||
gridColor?: C; | ||
gridColor?: ColorValue; | ||
@@ -406,3 +391,3 @@ /** | ||
*/ | ||
gridDash?: DA; | ||
gridDash?: DashArrayValue; | ||
@@ -412,3 +397,3 @@ /** | ||
*/ | ||
gridDashOffset?: N; | ||
gridDashOffset?: NumberValue; | ||
@@ -422,3 +407,3 @@ /** | ||
*/ | ||
gridOpacity?: N; | ||
gridOpacity?: NumberValue; | ||
@@ -431,3 +416,3 @@ /** | ||
*/ | ||
gridWidth?: N; | ||
gridWidth?: NumberValue; | ||
@@ -445,3 +430,3 @@ // ---------- Labels ---------- | ||
*/ | ||
labelAlign?: A; | ||
labelAlign?: AlignValue; | ||
@@ -451,3 +436,3 @@ /** | ||
*/ | ||
labelBaseline?: TB; | ||
labelBaseline?: TextBaselineValue; | ||
@@ -459,3 +444,3 @@ /** | ||
*/ | ||
labelBound?: BNS; | ||
labelBound?: number | boolean | SignalRef; | ||
@@ -465,3 +450,3 @@ /** | ||
*/ | ||
labelFlush?: BNS; | ||
labelFlush?: number | boolean | SignalRef; | ||
@@ -473,3 +458,3 @@ /** | ||
*/ | ||
labelFlushOffset?: NS; | ||
labelFlushOffset?: number | SignalRef; | ||
@@ -479,3 +464,3 @@ /** | ||
*/ | ||
labelOverlap?: LO; | ||
labelOverlap?: LabelOverlap | SignalRef; | ||
@@ -485,3 +470,3 @@ /** | ||
*/ | ||
labelSeparation?: NS; | ||
labelSeparation?: number | SignalRef; | ||
@@ -496,3 +481,3 @@ /** | ||
*/ | ||
labelAngle?: N; | ||
labelAngle?: NumberValue; | ||
@@ -502,3 +487,3 @@ /** | ||
*/ | ||
labelColor?: C; | ||
labelColor?: ColorValue; | ||
@@ -508,3 +493,3 @@ /** | ||
*/ | ||
labelFont?: S; | ||
labelFont?: StringValue; | ||
@@ -516,3 +501,3 @@ /** | ||
*/ | ||
labelFontSize?: N; | ||
labelFontSize?: NumberValue; | ||
@@ -522,3 +507,3 @@ /** | ||
*/ | ||
labelFontStyle?: FS; | ||
labelFontStyle?: FontStyleValue; | ||
@@ -528,3 +513,3 @@ /** | ||
*/ | ||
labelFontWeight?: FW; | ||
labelFontWeight?: FontWeightValue; | ||
@@ -536,3 +521,3 @@ /** | ||
*/ | ||
labelLimit?: N; | ||
labelLimit?: NumberValue; | ||
@@ -542,3 +527,3 @@ /** | ||
*/ | ||
labelOpacity?: N; | ||
labelOpacity?: NumberValue; | ||
@@ -551,3 +536,3 @@ /** | ||
labelPadding?: N; | ||
labelPadding?: NumberValue; | ||
} |
@@ -358,19 +358,3 @@ import { | ||
*/ | ||
export interface LegendConfig< | ||
N = NumberValue, | ||
NS = number | SignalRef, | ||
S = StringValue, | ||
C = ColorValue, | ||
FW = FontWeightValue, | ||
FS = FontStyleValue, | ||
A = AlignValue, | ||
TB = TextBaselineValue, | ||
LA = LayoutAlign | SignalRef, | ||
LO = LabelOverlap | SignalRef, | ||
SY = SymbolShapeValue, | ||
DA = DashArrayValue, | ||
O = OrientValue, | ||
AN = AnchorValue, | ||
LOR = LegendOrient | SignalRef | ||
> extends BaseLegend<N, NS, S, C, FW, FS, A, TB, LA, LO, SY, DA, O, AN, LOR> { | ||
export interface LegendConfig extends BaseLegend { | ||
/** | ||
@@ -386,3 +370,3 @@ * The default direction (`"horizontal"` or `"vertical"`) for gradient legends. | ||
*/ | ||
gradientLabelLimit?: N; | ||
gradientLabelLimit?: NumberValue; | ||
@@ -394,3 +378,3 @@ /** | ||
*/ | ||
gradientLabelOffset?: N; | ||
gradientLabelOffset?: NumberValue; | ||
@@ -402,3 +386,3 @@ /** | ||
*/ | ||
symbolBaseFillColor?: C; | ||
symbolBaseFillColor?: ColorValue; | ||
@@ -410,3 +394,3 @@ /** | ||
*/ | ||
symbolBaseStrokeColor?: C; | ||
symbolBaseStrokeColor?: ColorValue; | ||
@@ -428,3 +412,3 @@ /** | ||
*/ | ||
strokeWidth?: N; | ||
strokeWidth?: NumberValue; | ||
@@ -431,0 +415,0 @@ /** |
@@ -128,19 +128,3 @@ import { | ||
*/ | ||
export interface BaseLegend< | ||
N = NumberValue, | ||
NS = number | SignalRef, | ||
S = StringValue, | ||
C = ColorValue, | ||
FW = FontWeightValue, | ||
FS = FontStyleValue, | ||
A = AlignValue, | ||
TB = TextBaselineValue, | ||
LA = LayoutAlign | SignalRef, | ||
LO = LabelOverlap | SignalRef, | ||
SY = SymbolShapeValue, | ||
DA = DashArrayValue, | ||
O = OrientValue, | ||
AN = AnchorValue, | ||
LOR = LegendOrient | SignalRef | ||
> { | ||
export interface BaseLegend { | ||
/** | ||
@@ -151,3 +135,3 @@ * The orientation of the legend, which determines how the legend is positioned within the scene. One of "left", "right", "top-left", "top-right", "bottom-left", "bottom-right", "none". | ||
*/ | ||
orient?: LOR; | ||
orient?: LegendOrient | SignalRef; | ||
@@ -157,3 +141,3 @@ /** | ||
*/ | ||
symbolLimit?: N; | ||
symbolLimit?: NumberValue; | ||
@@ -169,3 +153,3 @@ /** | ||
*/ | ||
cornerRadius?: N; | ||
cornerRadius?: NumberValue; | ||
@@ -175,3 +159,3 @@ /** | ||
*/ | ||
fillColor?: C; | ||
fillColor?: ColorValue; | ||
@@ -183,3 +167,3 @@ /** | ||
*/ | ||
offset?: N; | ||
offset?: NumberValue; | ||
@@ -191,3 +175,3 @@ /** | ||
*/ | ||
padding?: N; | ||
padding?: NumberValue; | ||
@@ -197,3 +181,3 @@ /** | ||
*/ | ||
strokeColor?: C; | ||
strokeColor?: ColorValue; | ||
@@ -203,3 +187,3 @@ /** | ||
*/ | ||
legendX?: N; | ||
legendX?: NumberValue; | ||
@@ -209,3 +193,3 @@ /** | ||
*/ | ||
legendY?: N; | ||
legendY?: NumberValue; | ||
@@ -218,3 +202,3 @@ // ---------- Title ---------- | ||
*/ | ||
titleAlign?: A; | ||
titleAlign?: AlignValue; | ||
@@ -224,3 +208,3 @@ /** | ||
*/ | ||
titleAnchor?: AN; | ||
titleAnchor?: AnchorValue; | ||
@@ -232,3 +216,3 @@ /** | ||
*/ | ||
titleBaseline?: TB; | ||
titleBaseline?: TextBaselineValue; | ||
@@ -238,3 +222,3 @@ /** | ||
*/ | ||
titleColor?: C; | ||
titleColor?: ColorValue; | ||
@@ -244,3 +228,3 @@ /** | ||
*/ | ||
titleFont?: S; | ||
titleFont?: StringValue; | ||
@@ -250,3 +234,3 @@ /** | ||
*/ | ||
titleFontSize?: N; | ||
titleFontSize?: NumberValue; | ||
@@ -256,3 +240,3 @@ /** | ||
*/ | ||
titleFontStyle?: FS; | ||
titleFontStyle?: FontStyleValue; | ||
@@ -263,3 +247,3 @@ /** | ||
*/ | ||
titleFontWeight?: FW; | ||
titleFontWeight?: FontWeightValue; | ||
@@ -272,3 +256,3 @@ /** | ||
*/ | ||
titleLimit?: N; | ||
titleLimit?: NumberValue; | ||
@@ -278,3 +262,3 @@ /** | ||
*/ | ||
titleLineHeight?: N; | ||
titleLineHeight?: NumberValue; | ||
@@ -284,3 +268,3 @@ /** | ||
*/ | ||
titleOpacity?: N; | ||
titleOpacity?: NumberValue; | ||
@@ -290,3 +274,3 @@ /** | ||
*/ | ||
titleOrient?: O; | ||
titleOrient?: OrientValue; | ||
@@ -298,3 +282,3 @@ /** | ||
*/ | ||
titlePadding?: N; | ||
titlePadding?: NumberValue; | ||
@@ -309,3 +293,3 @@ // ---------- Gradient ---------- | ||
*/ | ||
gradientLength?: NS; | ||
gradientLength?: number | SignalRef; | ||
@@ -315,3 +299,3 @@ /** | ||
*/ | ||
gradientOpacity?: N; | ||
gradientOpacity?: NumberValue; | ||
@@ -324,3 +308,3 @@ /** | ||
*/ | ||
gradientThickness?: NS; | ||
gradientThickness?: number | SignalRef; | ||
@@ -332,3 +316,3 @@ /** | ||
*/ | ||
gradientStrokeColor?: C; | ||
gradientStrokeColor?: ColorValue; | ||
@@ -341,3 +325,3 @@ /** | ||
*/ | ||
gradientStrokeWidth?: N; | ||
gradientStrokeWidth?: NumberValue; | ||
@@ -348,3 +332,3 @@ // ---------- Symbol Layout ---------- | ||
*/ | ||
clipHeight?: NS; | ||
clipHeight?: number | SignalRef; | ||
@@ -354,3 +338,3 @@ /** | ||
*/ | ||
columns?: NS; | ||
columns?: number | SignalRef; | ||
@@ -362,3 +346,3 @@ /** | ||
*/ | ||
columnPadding?: NS; | ||
columnPadding?: number | SignalRef; | ||
@@ -370,3 +354,3 @@ /** | ||
*/ | ||
rowPadding?: NS; | ||
rowPadding?: number | SignalRef; | ||
@@ -378,3 +362,3 @@ /** | ||
*/ | ||
gridAlign?: LA; | ||
gridAlign?: LayoutAlign | SignalRef; | ||
@@ -385,3 +369,3 @@ // ---------- Symbols ---------- | ||
*/ | ||
symbolDash?: DA; | ||
symbolDash?: DashArrayValue; | ||
@@ -391,3 +375,3 @@ /** | ||
*/ | ||
symbolDashOffset?: N; | ||
symbolDashOffset?: NumberValue; | ||
@@ -397,3 +381,3 @@ /** | ||
*/ | ||
symbolFillColor?: C; | ||
symbolFillColor?: ColorValue; | ||
@@ -405,3 +389,3 @@ /** | ||
*/ | ||
symbolOffset?: N; | ||
symbolOffset?: NumberValue; | ||
@@ -411,3 +395,3 @@ /** | ||
*/ | ||
symbolOpacity?: N; | ||
symbolOpacity?: NumberValue; | ||
@@ -420,3 +404,3 @@ /** | ||
*/ | ||
symbolSize?: N; | ||
symbolSize?: NumberValue; | ||
@@ -426,3 +410,3 @@ /** | ||
*/ | ||
symbolStrokeColor?: C; | ||
symbolStrokeColor?: ColorValue; | ||
@@ -435,3 +419,3 @@ /** | ||
*/ | ||
symbolStrokeWidth?: N; | ||
symbolStrokeWidth?: NumberValue; | ||
@@ -443,3 +427,3 @@ /** | ||
*/ | ||
symbolType?: SY; | ||
symbolType?: SymbolShapeValue; | ||
@@ -450,3 +434,3 @@ // ---------- Label ---------- | ||
*/ | ||
labelAlign?: A; | ||
labelAlign?: AlignValue; | ||
@@ -458,3 +442,3 @@ /** | ||
*/ | ||
labelBaseline?: TB; | ||
labelBaseline?: TextBaselineValue; | ||
@@ -464,3 +448,3 @@ /** | ||
*/ | ||
labelColor?: C; | ||
labelColor?: ColorValue; | ||
@@ -470,3 +454,3 @@ /** | ||
*/ | ||
labelFont?: S; | ||
labelFont?: StringValue; | ||
@@ -480,3 +464,3 @@ /** | ||
*/ | ||
labelFontSize?: N; | ||
labelFontSize?: NumberValue; | ||
@@ -486,3 +470,3 @@ /** | ||
*/ | ||
labelFontStyle?: FS; | ||
labelFontStyle?: FontStyleValue; | ||
@@ -492,3 +476,3 @@ /** | ||
*/ | ||
labelFontWeight?: FW; | ||
labelFontWeight?: FontWeightValue; | ||
@@ -500,3 +484,3 @@ /** | ||
*/ | ||
labelLimit?: N; | ||
labelLimit?: NumberValue; | ||
@@ -506,3 +490,3 @@ /** | ||
*/ | ||
labelOpacity?: N; | ||
labelOpacity?: NumberValue; | ||
@@ -512,3 +496,3 @@ /** | ||
*/ | ||
labelPadding?: N; | ||
labelPadding?: NumberValue; | ||
@@ -521,3 +505,3 @@ /** | ||
*/ | ||
labelOffset?: N; | ||
labelOffset?: NumberValue; | ||
@@ -529,3 +513,3 @@ /** | ||
*/ | ||
labelOverlap?: LO; | ||
labelOverlap?: LabelOverlap | SignalRef; | ||
@@ -535,3 +519,3 @@ /** | ||
*/ | ||
labelSeparation?: NS; | ||
labelSeparation?: number | SignalRef; | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
98830
37
3549