Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vega-typings

Package Overview
Dependencies
Maintainers
4
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vega-typings - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

LICENSE

6

package.json
{
"name": "vega-typings",
"version": "0.8.0",
"version": "0.8.1",
"description": "Typings for Vega.",

@@ -17,8 +17,8 @@ "types": "types",

"build-tests": "./build-tests.sh",
"pretest": "npm run build-tests",
"pretest": "yarn build-tests",
"test": "yarn format && dtslint ."
},
"dependencies": {
"vega-util": "^1.10.0"
"vega-util": "^1.11.0"
}
}
import { DataType, EncodeEntryName, Format, SignalValue, Spec } from '../spec';
import { Renderers } from './renderer';
import { Transform, Changeset } from './dataflow';

@@ -39,2 +40,3 @@ // TODO

data(name: string): any[];
data(name: string, tuples: any): this;

@@ -79,10 +81,3 @@ width(): number;

export interface Changeset {
insert(tuples: any): this;
remove(tuples: any): this;
modify(tuple: any, field?: string, value?: any): this;
}
export const Warn: number;
export function changeset(): Changeset;
export interface LoaderOptions {

@@ -112,18 +107,2 @@ baseURL?: string;

export interface Operator {
targets: any;
set: any;
skip: any;
modified: any;
parameters: any;
marshall: any;
evaluate: any;
run: any;
}
export interface Transform extends Operator {
run: any;
evaluate: any;
}
export interface Item<T = any> {

@@ -174,1 +153,2 @@ /**

export * from './scene';
export * from './dataflow';

@@ -16,2 +16,20 @@ export interface Scene {

y2: number;
clone: () => Bounds;
clear: () => Bounds;
empty: () => void;
equals: (b: Bounds) => boolean;
set: (x1: number, y1: number, x2: number, y2: number) => Bounds;
add: (x: number, y: number) => Bounds;
expand: (d: number) => Bounds;
round: () => Bounds;
translate: (dx: number, dy: number) => Bounds;
rotate: (angle: number, x: number, y: number) => Bounds;
rotatedPoints: (angle: number, x: number, y: number) => number[];
union: (b: Bounds) => Bounds;
encloses: (b: Bounds) => boolean;
alignsWith: (b: Bounds) => boolean;
intersects: (b: Bounds) => boolean;
contains: (x: number, y: number) => boolean;
width: () => number;
height: () => number;
}

@@ -18,0 +36,0 @@

@@ -17,3 +17,3 @@ import {

import { BaseLegend, LegendOrient } from './legend';
import { SignalRef } from './signal';
import { InitSignal, NewSignal, SignalRef } from './signal';
import { BaseTitle, TitleAnchor } from './title';

@@ -41,3 +41,8 @@ import {

events?: {
bind?: 'any' | 'container' | 'none';
defaults?: DefaultsConfig;
selector?: boolean | string[];
timer?: boolean;
view?: boolean | string[];
window?: boolean | string[];
};

@@ -55,2 +60,3 @@ style?: any; // TODO

};
signals?: (InitSignal | NewSignal)[];
}

@@ -421,3 +427,3 @@

LB = LayoutBounds,
AN = TitleAnchor
AN = TitleAnchor | SignalRef
> {

@@ -424,0 +430,0 @@ /**

import { AutoSize } from './autosize';
import { Background } from './background';
import { Config } from './config';
import { EncodeEntry, Encodable } from './encode';
import { Encodable, EncodeEntry } from './encode';
import { Padding } from './padding';

@@ -12,3 +12,3 @@ import { Scope } from './scope';

height?: number;
config?: any;
config?: Config;
description?: string;

@@ -25,4 +25,4 @@ padding?: Padding;

export * from './bind';
export * from './color';
export * from './config';
export * from './color';
export * from './data';

@@ -29,0 +29,0 @@ export * from './encode';

@@ -14,2 +14,3 @@ import { Vector2, SignalRef, Signal, Vector3 } from '.';

| 'conicEquidistant'
| 'equalEarth'
| 'equirectangular'

@@ -16,0 +17,0 @@ | 'gnomonic'

@@ -40,3 +40,3 @@ import { SignalRef } from '.';

/**
* Unioned domains can only be sorted by count aggregate.
* Unioned domains can only be sorted by count, min, or max aggregates.
*/

@@ -48,2 +48,7 @@ export type UnionSortField =

order?: SortOrder;
}
| {
field: ScaleField;
op: 'count' | 'min' | 'max';
order?: SortOrder;
};

@@ -50,0 +55,0 @@ export type ScaleField = string | SignalRef;

@@ -12,3 +12,3 @@ import { Binding, Expr, OnEvent } from '.';

export interface PushSignal extends BaseSignal {
push?: 'outer';
push: 'outer';
}

@@ -15,0 +15,0 @@ export interface NewSignal extends BaseSignal {

@@ -24,2 +24,6 @@ import { Expr, MarkType } from '.';

| 'wheel';
export type WindowEventType =
| EventType
// TODO: change to `keyof HTMLBodyElementEventMap` after vega/ts-json-schema-generator#192
| string;
export interface StreamParameters {

@@ -42,3 +46,3 @@ between?: Stream[];

source: 'window';
type: keyof HTMLBodyElementEventMap;
type: WindowEventType;
});

@@ -45,0 +49,0 @@ export interface DerivedStream extends StreamParameters {

@@ -266,2 +266,3 @@ import { SignalRef, Compare, Vector2, ExprRef, FontWeight, FontStyle, Vector7 } from '.';

extent?: [number, number] | SignalRef;
resolve?: 'shared' | 'independent';
steps?: number | SignalRef;

@@ -268,0 +269,0 @@ minsteps?: number | SignalRef;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc