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

@uwdata/vgplot

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uwdata/vgplot - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

LICENSE

13

package.json
{
"name": "@uwdata/vgplot",
"version": "0.3.3",
"version": "0.3.4",
"description": "A Mosaic-based interactive grammar of graphics.",

@@ -32,10 +32,11 @@ "keywords": [

"dependencies": {
"@observablehq/plot": "^0.6.9",
"@uwdata/mosaic-core": "^0.3.3",
"@uwdata/mosaic-inputs": "^0.3.3",
"@uwdata/mosaic-sql": "^0.3.2",
"@observablehq/plot": "^0.6.11",
"@uwdata/mosaic-core": "^0.3.4",
"@uwdata/mosaic-inputs": "^0.3.4",
"@uwdata/mosaic-sql": "^0.3.4",
"d3": "^7.8.5",
"isoformat": "^0.2.1",
"topojson-client": "^3.1.0"
}
},
"gitHead": "faed78bc6264faa09a20b385601e03a9e1e15979"
}

@@ -23,12 +23,12 @@ import { Highlight } from '../interactors/Highlight.js';

export function toggleX({ as }) {
return toggle({ as, channels: ['x'] });
export function toggleX(options) {
return toggle({ ...options, channels: ['x'] });
}
export function toggleY({ as }) {
return toggle({ as, channels: ['y'] });
export function toggleY(options) {
return toggle({ ...options, channels: ['y'] });
}
export function toggleColor({ as }) {
return toggle({ as, channels: ['color'] });
export function toggleColor(options) {
return toggle({ ...options, channels: ['color'] });
}

@@ -35,0 +35,0 @@

@@ -6,3 +6,4 @@ import { and, or, isNotDistinct, literal } from '@uwdata/mosaic-sql';

selection,
channels
channels,
peers = true
}) {

@@ -12,3 +13,3 @@ this.value = null;

this.selection = selection;
this.clients = new Set().add(mark);
this.peers = peers;
this.channels = channels.map(c => {

@@ -31,3 +32,3 @@ const q = c === 'color' ? ['fill', 'stroke']

clause(value) {
const { channels, clients } = this;
const { channels, mark } = this;
let predicate = null;

@@ -48,3 +49,3 @@

schema: { type: 'point' },
clients,
clients: this.peers ? mark.plot.markSet : new Set().add(mark),
value,

@@ -51,0 +52,0 @@ predicate

@@ -6,2 +6,3 @@ import { MosaicClient } from '@uwdata/mosaic-core';

import { isSymbol } from './util/is-symbol.js';
import { toDataArray } from './util/to-data-array.js';
import { Transform } from '../symbols.js';

@@ -142,3 +143,3 @@

queryResult(data) {
this.data = Array.from(data);
this.data = toDataArray(data);
return this;

@@ -145,0 +146,0 @@ }

@@ -10,2 +10,3 @@ import { range } from 'd3';

import { handleParam } from './util/handle-param.js';
import { toDataArray } from './util/to-data-array.js';

@@ -47,3 +48,3 @@ export class RegressionMark extends Mark {

queryResult(data) {
this.modelFit = Array.from(data);
this.modelFit = toDataArray(data);

@@ -50,0 +51,0 @@ // regression line

@@ -0,1 +1,3 @@

import { isArrowTable } from './is-arrow-table.js';
export function grid1d(n, values) {

@@ -11,6 +13,2 @@ return valuesToGrid(new Float64Array(n), values);

function isArrowTable(values) {
return typeof values.getChild === 'function';
}
function valuesToGrid(grid, values) {

@@ -17,0 +15,0 @@ if (isArrowTable(values)) {

@@ -41,3 +41,3 @@ import { asColumn } from '@uwdata/mosaic-sql';

const off = options.offset ? `${options.offset} + ` : '';
return `${min} + ${alpha} * (${off}FLOOR(${base} / ${alpha})::INTEGER)`;
return `${b.min} + ${alpha} * (${off}FLOOR(${base} / ${alpha})::INTEGER)`;
}

@@ -44,0 +44,0 @@ };

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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