vega-typings
Advanced tools
Comparing version 0.5.2 to 0.5.3
{ | ||
"name": "vega-typings", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "Typings for Vega.", | ||
@@ -22,3 +22,4 @@ "types": "types", | ||
"vega-util": "^1.9.0" | ||
} | ||
}, | ||
"gitHead": "a34555f5474d42a4599dd958895b8e44d3fda0fe" | ||
} |
@@ -15,6 +15,6 @@ import { | ||
import { BaseAxis, LabelOverlap } from './axis'; | ||
import { LayoutAlign } from './layout'; | ||
import { LayoutAlign, LayoutBounds } from './layout'; | ||
import { BaseLegend } from './legend'; | ||
import { SignalRef } from './signal'; | ||
import { BaseTitle } from './title'; | ||
import { BaseTitle, TitleAnchor } from './title'; | ||
import { | ||
@@ -355,3 +355,4 @@ AlignValue, | ||
O = OrientValue, | ||
AN = AnchorValue | ||
AN = AnchorValue, | ||
LL = LegendLayout | ||
> extends BaseLegend<N, NS, S, C, FW, FS, A, TB, LA, LO, SY, DA, O, AN> { | ||
@@ -407,4 +408,58 @@ /** | ||
strokeWidth?: N; | ||
/** | ||
* Legend orient group layout parameters. | ||
*/ | ||
layout?: LL; | ||
} | ||
export interface BaseLegendLayout< | ||
NS = number | SignalRef, | ||
BS = boolean | SignalRef, | ||
OS = Orientation | SignalRef, | ||
LB = LayoutBounds, | ||
AN = TitleAnchor | ||
> { | ||
/** | ||
* The anchor point for legend orient group layout. | ||
*/ | ||
anchor?: AN; | ||
/** | ||
* The bounds calculation to use for legend orient group layout. | ||
*/ | ||
bounds?: LB; | ||
/** | ||
* A flag to center legends within a shared orient group. | ||
*/ | ||
center?: BS; | ||
/** | ||
* The layout direction for legend orient group layout. | ||
*/ | ||
direction?: OS; | ||
/** | ||
* The pixel margin between legends within a orient group. | ||
*/ | ||
margin?: NS; | ||
/** | ||
* The pixel offset from the chart body for a legend orient group. | ||
*/ | ||
offset?: NS; | ||
} | ||
export interface LegendLayout extends BaseLegendLayout { | ||
left?: BaseLegendLayout; | ||
right?: BaseLegendLayout; | ||
top?: BaseLegendLayout; | ||
bottom?: BaseLegendLayout; | ||
'top-left'?: BaseLegendLayout; | ||
'top-right'?: BaseLegendLayout; | ||
'bottom-left'?: BaseLegendLayout; | ||
'bottom-right'?: BaseLegendLayout; | ||
} | ||
export type TitleConfig = BaseTitle; |
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
87180
3087
36