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

@hpcc-js/common

Package Overview
Dependencies
Maintainers
1
Versions
192
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hpcc-js/common - npm Package Compare versions

Comparing version 0.0.35 to 0.0.36

3

lib-es6/CanvasWidget.d.ts

@@ -6,4 +6,5 @@ import { Widget } from "./Widget";

resize(size: any): this;
target(_: any): any;
target(): any;
target(_: any): this;
exit(domeNode?: any, element?: any): void;
}

@@ -20,3 +20,2 @@ import * as tslib_1 from "tslib";

};
// Properties ---
CanvasWidget.prototype.target = function (_) {

@@ -23,0 +22,0 @@ if (!arguments.length)

@@ -19,3 +19,18 @@ import { Class } from "./Class";

inputType?: string;
internal?: boolean;
}
export declare class Meta {
id: any;
type: any;
origDefaultValue: any;
defaultValue: any;
description: any;
set: any;
ext: IPublishExt;
checkedAssign: any;
constructor(id: any, defaultValue: any, type: any, description: any, set: any, ext?: IPublishExt);
}
export interface IMonitorHandle {
remove(): void;
}
export declare class PropertyExt extends Class {

@@ -28,3 +43,3 @@ protected _id: string;

id(_: string): this;
publishedProperties(includePrivate?: boolean, expandProxies?: boolean): any[];
publishedProperties(includePrivate?: boolean, expandProxies?: boolean): Meta[];
propertyWalker(filter: any, visitor: any): void;

@@ -37,6 +52,4 @@ publishedProperty(id: any): any;

publishWidget(prefix: any, WidgetType: any, id: any): void;
publishProxy(id: any, proxy: any, method?: any, defaultValue?: any): void;
monitorProperty(propID: string, func: (id: string, newVal: any, oldVal: any) => void): {
remove: () => void;
};
publishProxy(id: string, proxy: any, method?: any, defaultValue?: any): void;
monitorProperty(propID: string, func: (id: string, newVal: any, oldVal: any) => void): IMonitorHandle;
monitor(func: (id: string, newVal: any, oldVal: any, source: PropertyExt) => void): {

@@ -43,0 +56,0 @@ remove: () => void;

@@ -164,2 +164,3 @@ import * as tslib_1 from "tslib";

}());
export { Meta };
var MetaProxy = (function () {

@@ -261,5 +262,5 @@ function MetaProxy(id, proxy, method, defaultValue, ext) {

if (isMeta(key)) {
var isPrivate_1 = !privateArr.length || (privateArr.length && privateArr.indexOf(key) >= 0);
var isPrivateItem = !privateArr.length || (privateArr.length && privateArr.indexOf(key) >= 0);
var isException = exceptionsArr.indexOf(key) >= 0;
if (isPrivate_1 && !isException) {
if (isPrivateItem && !isException) {
this[__private_ + key] = true;

@@ -471,3 +472,3 @@ }

if ((monitor.propertyID === undefined || monitor.propertyID === key) && monitor.callback) {
console.log(this.classID() + "->broadcast(" + key + ", " + newVal + ", " + oldVal + ")");
// console.log(`${this.classID()}->broadcast(${key}, ${newVal}, ${oldVal})`);
setTimeout(function (monitor2) {

@@ -474,0 +475,0 @@ monitor2.callback(key, newVal, oldVal, source);

@@ -13,3 +13,7 @@ import { Widget } from "./Widget";

size(_?: any): any;
resize(_size?: any): any;
resize(_size?: {
width: number;
height: number;
}): any;
target(): any;
target(_: any): this;

@@ -16,0 +20,0 @@ enter(domNode: any, element: any): void;

import * as tslib_1 from "tslib";
import { select as d3Select } from "d3-selection";
import { Widget } from "./Widget";
import { svgMarkerGlitch } from "./Platform";
import { Transition } from "./Transition";
import { debounce } from "./Utility";
import { Widget } from "./Widget";
var lerp = function (point, that, t) {

@@ -8,0 +8,0 @@ // From https://github.com/thelonious/js-intersections

@@ -163,13 +163,13 @@ import * as tslib_1 from "tslib";

if (this.zoomable() && this.zoomToolbar()) {
this._buttonToFit
this._buttonMinus
.x(this.width() - iconDiameter / 2 - 4)
.y(iconDiameter / 2 + 4)
.y(this.height() - iconDiameter / 2 - 4)
.render();
this._buttonPlus
.x(this.width() - iconDiameter / 2 - 4)
.y(this._buttonToFit.y() + 4 + iconDiameter)
.y(this._buttonMinus.y() - iconDiameter)
.render();
this._buttonMinus
this._buttonToFit
.x(this.width() - iconDiameter / 2 - 4)
.y(this._buttonPlus.y() + iconDiameter)
.y(this._buttonPlus.y() - iconDiameter - 4)
.render();

@@ -176,0 +176,0 @@ }

@@ -0,1 +1,2 @@

import { Selection as d3Selection } from "d3-selection";
import "d3-transition";

@@ -5,2 +6,3 @@ import { Field, Grid } from "./Database";

import "../src/Widget.css";
export declare type d3SelectionType = d3Selection<SVGElement | HTMLElement, {}, SVGElement | HTMLElement, any>;
export interface IPos {

@@ -14,3 +16,9 @@ x: number;

}
export declare class Widget extends PropertyExt {
export interface BBox {
x: number;
y: number;
width: number;
height: number;
}
export declare abstract class Widget extends PropertyExt {
_idSeed: string;

@@ -58,3 +66,4 @@ protected _tag: string;

scale(_: any): Widget;
visible(_?: any): boolean | Widget;
visible(): boolean;
visible(_: any): this;
display(): boolean;

@@ -77,12 +86,15 @@ display(_: any): this;

syncOverlay(): void;
getBBox(refresh?: boolean, round?: boolean): BBox;
element(): any;
node(): any;
abstract target(): any;
abstract target(_: any): this;
private _prevNow;
render(callback?: any): this;
render(callback?: (w: Widget) => void): this;
lazyRender: (..._dummyArgs: any[]) => void;
enter(_domNode: any, _element: any): void;
preUpdate(_domNode: any, _element: any): void;
update(_domNode: any, _element: any): void;
postUpdate(_domNode: any, _element: any): void;
exit(_domNode: any, _element: any): void;
enter(_domNode: HTMLElement, _element: d3SelectionType): void;
preUpdate(_domNode: HTMLElement, _element: d3SelectionType): void;
update(_domNode: HTMLElement, _element: d3SelectionType): void;
postUpdate(_domNode: HTMLElement, _element: d3SelectionType): void;
exit(_domNode: HTMLElement, _element: d3SelectionType): void;
fields(): Field[];

@@ -89,0 +101,0 @@ fields(_: Field[]): this;

@@ -359,2 +359,12 @@ import * as tslib_1 from "tslib";

};
Widget.prototype.getBBox = function (refresh, round) {
if (refresh === void 0) { refresh = false; }
if (round === void 0) { round = false; }
return {
x: 0,
y: 0,
width: 0,
height: 0
};
};
Widget.prototype.element = function () {

@@ -386,24 +396,24 @@ return this._element;

.attr("id", this._id)
.each(function (context) {
context._element = d3Select(this);
context.enter(this, context._element);
.each(function (context2) {
context2._element = d3Select(this);
context2.enter(this, context2._element);
if (window.__hpcc_debug) {
context.leakCheck(this);
context2.leakCheck(this);
}
})
.merge(elements)
.each(function (context) {
.each(function (context2) {
var element = d3Select(this);
var classed = context.classed();
var classed = context2.classed();
for (var key in classed) {
element.classed(key, classed[key]);
}
context.preUpdate(this, context._element);
context.update(this, context._element);
context.postUpdate(this, context._element);
context2.preUpdate(this, context2._element);
context2.update(this, context2._element);
context2.postUpdate(this, context2._element);
});
elements.exit()
.each(function (context) {
.each(function (context2) {
d3Select(this).datum(null);
context.exit(this, context._element);
context2.exit(this, context2._element);
})

@@ -421,3 +431,3 @@ .remove();

if (widget) {
widgets.push(this[meta.id]());
widgets.push(widget);
}

@@ -424,0 +434,0 @@ break;

import { Widget } from "./Widget";
export declare class WidgetArray extends Widget {
import { PropertyExt } from "./PropertyExt";
export declare class WidgetArray extends PropertyExt {
constructor();

@@ -4,0 +5,0 @@ content: {

import * as tslib_1 from "tslib";
import { Widget } from "./Widget";
import { PropertyExt } from "./PropertyExt";
var WidgetArray = (function (_super) {

@@ -9,3 +9,3 @@ tslib_1.__extends(WidgetArray, _super);

return WidgetArray;
}(Widget));
}(PropertyExt));
export { WidgetArray };

@@ -12,0 +12,0 @@ WidgetArray.prototype._class += " common_WidgetArray";

@@ -6,4 +6,5 @@ import { Widget } from "./Widget";

resize(size: any): this;
target(_: any): any;
target(): any;
target(_: any): this;
exit(domeNode?: any, element?: any): void;
}

@@ -31,3 +31,2 @@ (function (factory) {

};
// Properties ---
CanvasWidget.prototype.target = function (_) {

@@ -34,0 +33,0 @@ if (!arguments.length)

@@ -19,3 +19,18 @@ import { Class } from "./Class";

inputType?: string;
internal?: boolean;
}
export declare class Meta {
id: any;
type: any;
origDefaultValue: any;
defaultValue: any;
description: any;
set: any;
ext: IPublishExt;
checkedAssign: any;
constructor(id: any, defaultValue: any, type: any, description: any, set: any, ext?: IPublishExt);
}
export interface IMonitorHandle {
remove(): void;
}
export declare class PropertyExt extends Class {

@@ -28,3 +43,3 @@ protected _id: string;

id(_: string): this;
publishedProperties(includePrivate?: boolean, expandProxies?: boolean): any[];
publishedProperties(includePrivate?: boolean, expandProxies?: boolean): Meta[];
propertyWalker(filter: any, visitor: any): void;

@@ -37,6 +52,4 @@ publishedProperty(id: any): any;

publishWidget(prefix: any, WidgetType: any, id: any): void;
publishProxy(id: any, proxy: any, method?: any, defaultValue?: any): void;
monitorProperty(propID: string, func: (id: string, newVal: any, oldVal: any) => void): {
remove: () => void;
};
publishProxy(id: string, proxy: any, method?: any, defaultValue?: any): void;
monitorProperty(propID: string, func: (id: string, newVal: any, oldVal: any) => void): IMonitorHandle;
monitor(func: (id: string, newVal: any, oldVal: any, source: PropertyExt) => void): {

@@ -43,0 +56,0 @@ remove: () => void;

@@ -175,2 +175,3 @@ (function (factory) {

}());
exports.Meta = Meta;
var MetaProxy = (function () {

@@ -272,5 +273,5 @@ function MetaProxy(id, proxy, method, defaultValue, ext) {

if (isMeta(key)) {
var isPrivate_1 = !privateArr.length || (privateArr.length && privateArr.indexOf(key) >= 0);
var isPrivateItem = !privateArr.length || (privateArr.length && privateArr.indexOf(key) >= 0);
var isException = exceptionsArr.indexOf(key) >= 0;
if (isPrivate_1 && !isException) {
if (isPrivateItem && !isException) {
this[__private_ + key] = true;

@@ -482,3 +483,3 @@ }

if ((monitor.propertyID === undefined || monitor.propertyID === key) && monitor.callback) {
console.log(this.classID() + "->broadcast(" + key + ", " + newVal + ", " + oldVal + ")");
// console.log(`${this.classID()}->broadcast(${key}, ${newVal}, ${oldVal})`);
setTimeout(function (monitor2) {

@@ -485,0 +486,0 @@ monitor2.callback(key, newVal, oldVal, source);

@@ -13,3 +13,7 @@ import { Widget } from "./Widget";

size(_?: any): any;
resize(_size?: any): any;
resize(_size?: {
width: number;
height: number;
}): any;
target(): any;
target(_: any): this;

@@ -16,0 +20,0 @@ enter(domNode: any, element: any): void;

@@ -7,3 +7,3 @@ (function (factory) {

else if (typeof define === "function" && define.amd) {
define(["require", "exports", "tslib", "d3-selection", "./Widget", "./Platform", "./Transition", "./Utility"], factory);
define(["require", "exports", "tslib", "d3-selection", "./Platform", "./Transition", "./Utility", "./Widget"], factory);
}

@@ -15,6 +15,6 @@ })(function (require, exports) {

var d3_selection_1 = require("d3-selection");
var Widget_1 = require("./Widget");
var Platform_1 = require("./Platform");
var Transition_1 = require("./Transition");
var Utility_1 = require("./Utility");
var Widget_1 = require("./Widget");
var lerp = function (point, that, t) {

@@ -21,0 +21,0 @@ // From https://github.com/thelonious/js-intersections

@@ -174,13 +174,13 @@ (function (factory) {

if (this.zoomable() && this.zoomToolbar()) {
this._buttonToFit
this._buttonMinus
.x(this.width() - iconDiameter / 2 - 4)
.y(iconDiameter / 2 + 4)
.y(this.height() - iconDiameter / 2 - 4)
.render();
this._buttonPlus
.x(this.width() - iconDiameter / 2 - 4)
.y(this._buttonToFit.y() + 4 + iconDiameter)
.y(this._buttonMinus.y() - iconDiameter)
.render();
this._buttonMinus
this._buttonToFit
.x(this.width() - iconDiameter / 2 - 4)
.y(this._buttonPlus.y() + iconDiameter)
.y(this._buttonPlus.y() - iconDiameter - 4)
.render();

@@ -187,0 +187,0 @@ }

@@ -0,1 +1,2 @@

import { Selection as d3Selection } from "d3-selection";
import "d3-transition";

@@ -5,2 +6,3 @@ import { Field, Grid } from "./Database";

import "../src/Widget.css";
export declare type d3SelectionType = d3Selection<SVGElement | HTMLElement, {}, SVGElement | HTMLElement, any>;
export interface IPos {

@@ -14,3 +16,9 @@ x: number;

}
export declare class Widget extends PropertyExt {
export interface BBox {
x: number;
y: number;
width: number;
height: number;
}
export declare abstract class Widget extends PropertyExt {
_idSeed: string;

@@ -58,3 +66,4 @@ protected _tag: string;

scale(_: any): Widget;
visible(_?: any): boolean | Widget;
visible(): boolean;
visible(_: any): this;
display(): boolean;

@@ -77,12 +86,15 @@ display(_: any): this;

syncOverlay(): void;
getBBox(refresh?: boolean, round?: boolean): BBox;
element(): any;
node(): any;
abstract target(): any;
abstract target(_: any): this;
private _prevNow;
render(callback?: any): this;
render(callback?: (w: Widget) => void): this;
lazyRender: (..._dummyArgs: any[]) => void;
enter(_domNode: any, _element: any): void;
preUpdate(_domNode: any, _element: any): void;
update(_domNode: any, _element: any): void;
postUpdate(_domNode: any, _element: any): void;
exit(_domNode: any, _element: any): void;
enter(_domNode: HTMLElement, _element: d3SelectionType): void;
preUpdate(_domNode: HTMLElement, _element: d3SelectionType): void;
update(_domNode: HTMLElement, _element: d3SelectionType): void;
postUpdate(_domNode: HTMLElement, _element: d3SelectionType): void;
exit(_domNode: HTMLElement, _element: d3SelectionType): void;
fields(): Field[];

@@ -89,0 +101,0 @@ fields(_: Field[]): this;

@@ -370,2 +370,12 @@ (function (factory) {

};
Widget.prototype.getBBox = function (refresh, round) {
if (refresh === void 0) { refresh = false; }
if (round === void 0) { round = false; }
return {
x: 0,
y: 0,
width: 0,
height: 0
};
};
Widget.prototype.element = function () {

@@ -397,24 +407,24 @@ return this._element;

.attr("id", this._id)
.each(function (context) {
context._element = d3_selection_1.select(this);
context.enter(this, context._element);
.each(function (context2) {
context2._element = d3_selection_1.select(this);
context2.enter(this, context2._element);
if (window.__hpcc_debug) {
context.leakCheck(this);
context2.leakCheck(this);
}
})
.merge(elements)
.each(function (context) {
.each(function (context2) {
var element = d3_selection_1.select(this);
var classed = context.classed();
var classed = context2.classed();
for (var key in classed) {
element.classed(key, classed[key]);
}
context.preUpdate(this, context._element);
context.update(this, context._element);
context.postUpdate(this, context._element);
context2.preUpdate(this, context2._element);
context2.update(this, context2._element);
context2.postUpdate(this, context2._element);
});
elements.exit()
.each(function (context) {
.each(function (context2) {
d3_selection_1.select(this).datum(null);
context.exit(this, context._element);
context2.exit(this, context2._element);
})

@@ -432,3 +442,3 @@ .remove();

if (widget) {
widgets.push(this[meta.id]());
widgets.push(widget);
}

@@ -435,0 +445,0 @@ break;

import { Widget } from "./Widget";
export declare class WidgetArray extends Widget {
import { PropertyExt } from "./PropertyExt";
export declare class WidgetArray extends PropertyExt {
constructor();

@@ -4,0 +5,0 @@ content: {

@@ -7,3 +7,3 @@ (function (factory) {

else if (typeof define === "function" && define.amd) {
define(["require", "exports", "tslib", "./Widget"], factory);
define(["require", "exports", "tslib", "./PropertyExt"], factory);
}

@@ -14,3 +14,3 @@ })(function (require, exports) {

var tslib_1 = require("tslib");
var Widget_1 = require("./Widget");
var PropertyExt_1 = require("./PropertyExt");
var WidgetArray = (function (_super) {

@@ -22,3 +22,3 @@ tslib_1.__extends(WidgetArray, _super);

return WidgetArray;
}(Widget_1.Widget));
}(PropertyExt_1.PropertyExt));
exports.WidgetArray = WidgetArray;

@@ -25,0 +25,0 @@ WidgetArray.prototype._class += " common_WidgetArray";

{
"name": "@hpcc-js/common",
"version": "0.0.35",
"version": "0.0.36",
"description": "hpcc-js - Viz Common",

@@ -40,7 +40,7 @@ "main": "lib/index.js",

"devDependencies": {
"@hpcc-js/bundle": "^0.0.8",
"@hpcc-js/bundle": "^0.0.9",
"cpx": "^1.5.0",
"rimraf": "^2.6.1",
"typedoc": "^0.7.1",
"typescript": "^2.4.1"
"typescript": "^2.4.2"
},

@@ -47,0 +47,0 @@ "repository": {

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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