vega-typings
Advanced tools
Comparing version 0.13.0 to 0.13.1
{ | ||
"name": "vega-typings", | ||
"version": "0.13.0", | ||
"version": "0.13.1", | ||
"description": "Typings for Vega.", | ||
@@ -22,4 +22,3 @@ "types": "types", | ||
"vega-util": "^1.12.1" | ||
}, | ||
"gitHead": "49a57c10b309addc513a52a38e1959ee169d4758" | ||
} | ||
} |
@@ -252,3 +252,3 @@ import { | ||
*/ | ||
dir?: TextDirection; | ||
dir?: TextDirection | SignalRef; | ||
@@ -255,0 +255,0 @@ /** |
@@ -10,2 +10,3 @@ import { SignalRef } from '.'; | ||
} | ||
export interface GroupFieldRef { | ||
@@ -15,2 +16,3 @@ group: Field; | ||
} | ||
export interface ParentFieldRef { | ||
@@ -20,2 +22,3 @@ parent: Field; | ||
} | ||
export type BaseValueRef<T> = | ||
@@ -29,2 +32,3 @@ | SignalRef | ||
}; | ||
export type ScaledValueRef<T> = | ||
@@ -48,2 +52,3 @@ | BaseValueRef<T> | ||
}; | ||
export type NumericValueRef = (ScaledValueRef<number> | {}) & { | ||
@@ -56,2 +61,3 @@ exponent?: number | NumericValueRef; | ||
}; | ||
export type StringValueRef = ScaledValueRef<string>; | ||
@@ -69,2 +75,3 @@ export type SymbolShapeValueRef = ScaledValueRef<SymbolShape>; | ||
export type ArbitraryValueRef = NumericValueRef | ColorValueRef | ScaledValueRef<any>; | ||
export interface ColorRGB { | ||
@@ -90,2 +97,3 @@ r: NumericValueRef; | ||
} | ||
export interface BaseGradient { | ||
@@ -97,2 +105,3 @@ /** | ||
} | ||
export interface GradientStop { | ||
@@ -146,2 +155,3 @@ /** | ||
} | ||
export interface RadialGradient extends BaseGradient { | ||
@@ -194,2 +204,3 @@ /** | ||
} | ||
export type ColorValueRef = | ||
@@ -207,2 +218,3 @@ | ScaledValueRef<Color> | ||
}; | ||
export type ProductionRule<T> = | ||
@@ -213,2 +225,21 @@ | T | ||
} & T)[]; | ||
export type Blend = | ||
| null | ||
| 'multiply' | ||
| 'screen' | ||
| 'overlay' | ||
| 'darken' | ||
| 'lighten' | ||
| 'color-dodge' | ||
| 'color-burn' | ||
| 'hard-light' | ||
| 'soft-light' | ||
| 'difference' | ||
| 'exclusion' | ||
| 'hue' | ||
| 'saturation' | ||
| 'color' | ||
| 'luminosity'; | ||
export interface EncodeEntry { | ||
@@ -234,2 +265,3 @@ x?: ProductionRule<NumericValueRef>; | ||
strokeMiterLimit?: ProductionRule<NumericValueRef>; | ||
blend?: ProductionRule<ScaledValueRef<Blend>>; | ||
cursor?: ProductionRule<StringValueRef>; | ||
@@ -240,2 +272,3 @@ tooltip?: ProductionRule<StringValueRef>; | ||
} | ||
export type Align = 'left' | 'center' | 'right'; | ||
@@ -245,9 +278,13 @@ export interface AlignProperty { | ||
} | ||
export type Orient = 'left' | 'right' | 'top' | 'bottom'; | ||
export interface DefinedProperty { | ||
defined?: ProductionRule<BooleanValueRef>; | ||
} | ||
export interface ThetaProperty { | ||
theta?: ProductionRule<NumericValueRef>; | ||
} | ||
export interface ArcEncodeEntry extends EncodeEntry { | ||
@@ -261,6 +298,9 @@ startAngle?: ProductionRule<NumericValueRef>; | ||
} | ||
export type Orientation = 'horizontal' | 'vertical'; | ||
export interface AreaEncodeEntry extends LineEncodeEntry { | ||
orient?: ProductionRule<ScaledValueRef<Orientation>>; | ||
} | ||
export interface GroupEncodeEntry extends RectEncodeEntry { | ||
@@ -271,3 +311,5 @@ clip?: ProductionRule<BooleanValueRef>; | ||
} | ||
export type Baseline = 'top' | 'middle' | 'bottom'; | ||
export interface ImageEncodeEntry extends EncodeEntry, AlignProperty { | ||
@@ -306,2 +348,3 @@ url?: ProductionRule<StringValueRef>; | ||
} | ||
export interface PathEncodeEntry extends EncodeEntry { | ||
@@ -313,2 +356,3 @@ path?: ProductionRule<StringValueRef>; | ||
} | ||
export interface RectEncodeEntry extends EncodeEntry { | ||
@@ -321,6 +365,9 @@ cornerRadius?: ProductionRule<NumericValueRef>; | ||
} | ||
export type RuleEncodeEntry = EncodeEntry; | ||
export interface ShapeEncodeEntry extends EncodeEntry { | ||
shape?: ProductionRule<StringValueRef>; | ||
} | ||
export type SymbolShape = | ||
@@ -340,2 +387,3 @@ | 'circle' | ||
| string; | ||
export interface SymbolEncodeEntry extends EncodeEntry { | ||
@@ -346,5 +394,9 @@ size?: ProductionRule<NumericValueRef>; | ||
} | ||
export type Text = string | string[]; | ||
export type TextBaseline = 'alphabetic' | Baseline; | ||
export type TextBaseline = 'alphabetic' | Baseline | 'line-top' | 'line-bottom'; | ||
export type TextDirection = 'ltr' | 'rtl'; | ||
export type FontWeight = | ||
@@ -367,2 +419,3 @@ | 'normal' | ||
export type FontStyle = 'normal' | 'italic' | 'oblique' | string; | ||
export interface TextEncodeEntry extends EncodeEntry, AlignProperty, ThetaProperty { | ||
@@ -385,7 +438,11 @@ text?: ProductionRule<TextValueRef>; | ||
} | ||
export interface TrailEncodeEntry extends EncodeEntry, DefinedProperty {} | ||
export interface Encodable<T> { | ||
encode?: Encode<T>; | ||
} | ||
export type Encode<T> = Partial<Record<EncodeEntryName, T>>; | ||
export type EncodeEntryName = | ||
@@ -392,0 +449,0 @@ | 'enter' |
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
128603
39
4044