vega-typings
Advanced tools
Comparing version 0.13.1 to 0.14.0
{ | ||
"name": "vega-typings", | ||
"version": "0.13.1", | ||
"version": "0.14.0", | ||
"description": "Typings for Vega.", | ||
@@ -21,4 +21,5 @@ "types": "types", | ||
"dependencies": { | ||
"vega-util": "^1.12.1" | ||
} | ||
"vega-util": "^1.13.1" | ||
}, | ||
"gitHead": "2bee653f2a56c2c0d4393d69d172b9ccdb0fe2f9" | ||
} |
@@ -10,3 +10,2 @@ import { | ||
import { Text } from './encode'; | ||
import { LayoutAlign } from './layout'; | ||
import { | ||
@@ -442,2 +441,7 @@ AlignValue, | ||
/** | ||
* Line height in pixels for multi-line label text. | ||
*/ | ||
labelLineHeight?: NumberValue; | ||
/** | ||
* The strategy to use for resolving overlap of axis labels. If `false` (the default), no overlap reduction is attempted. If set to `true` or `"parity"`, a strategy of removing every other label is used (this works well for standard linear axes). If set to `"greedy"`, a linear scan of the labels is performed, removing any labels that overlaps with the last visible label (this often works better for log-scaled axes). | ||
@@ -502,2 +506,9 @@ */ | ||
/** | ||
* Position offset in pixels to apply to labels, in addition to tickOffset. | ||
* | ||
* __Default value:__ `0` | ||
*/ | ||
labelOffset?: NumberValue; | ||
/** | ||
* The padding in pixels between labels and ticks. | ||
@@ -504,0 +515,0 @@ * |
@@ -10,2 +10,3 @@ import { | ||
Orientation, | ||
Padding, | ||
RangeScheme, | ||
@@ -47,4 +48,5 @@ SymbolShape, | ||
Partial<Record<AxisConfigKeys, AxisConfig>> { | ||
autosize?: AutoSize; | ||
autosize?: AutoSize | SignalRef; | ||
background?: null | Color | SignalRef; | ||
padding?: Padding | SignalRef; | ||
group?: any; // TODO | ||
@@ -59,2 +61,3 @@ events?: { | ||
}; | ||
lineBreak?: string | SignalRef; | ||
style?: { | ||
@@ -61,0 +64,0 @@ [style: string]: MarkConfig; |
import { AutoSize } from './autosize'; | ||
import { Background } from './background'; | ||
import { Color } from './color'; | ||
import { Config } from './config'; | ||
@@ -7,12 +7,13 @@ import { Encodable, EncodeEntry } from './encode'; | ||
import { Scope } from './scope'; | ||
import { SignalRef } from './signal'; | ||
export interface Spec extends Scope, Encodable<EncodeEntry> { | ||
$schema?: string; | ||
width?: number; | ||
height?: number; | ||
config?: Config; | ||
description?: string; | ||
padding?: Padding; | ||
autosize?: AutoSize; | ||
background?: Background; | ||
width?: number | SignalRef; | ||
height?: number | SignalRef; | ||
padding?: Padding | SignalRef; | ||
autosize?: AutoSize | SignalRef; | ||
background?: Color | SignalRef; | ||
style?: string | string[]; | ||
@@ -23,3 +24,2 @@ } | ||
export * from './axis'; | ||
export * from './background'; | ||
export * from './bind'; | ||
@@ -26,0 +26,0 @@ export * from './color'; |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
4055
0
118220
37
Updatedvega-util@^1.13.1