@hpcc-js/common
Advanced tools
Comparing version 3.1.0 to 3.2.0
{ | ||
"name": "@hpcc-js/common", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "hpcc-js - Viz Common", | ||
@@ -10,3 +10,5 @@ "type": "module", | ||
"default": "./dist/index.js" | ||
} | ||
}, | ||
"./dist/*": "./dist/*", | ||
"./font-awesome/*": "./font-awesome/*" | ||
}, | ||
@@ -29,3 +31,2 @@ "module": "./dist/index.js", | ||
"build": "run-p gen-types bundle", | ||
"stamp": "node ../../node_modules/@hpcc-js/bundle/src/stamp.js", | ||
"lint": "eslint ./src", | ||
@@ -40,3 +41,3 @@ "lint-fix": "eslint --fix src/**/*.ts", | ||
"dependencies": { | ||
"@hpcc-js/util": "^3.1.0", | ||
"@hpcc-js/util": "^3.2.0", | ||
"@types/d3-array": "1.2.12", | ||
@@ -59,3 +60,3 @@ "@types/d3-brush": "1.1.8", | ||
"devDependencies": { | ||
"@hpcc-js/esbuild-plugins": "^1.2.0", | ||
"@hpcc-js/esbuild-plugins": "^1.3.0", | ||
"colorbrewer": "1.5.7", | ||
@@ -91,3 +92,3 @@ "d3-array": "^1", | ||
"homepage": "https://github.com/hpcc-systems/Visualization", | ||
"gitHead": "3f6146539f487dca08a35cdd5f94ca29609b4343" | ||
"gitHead": "658c50fd965a7744ba8db675ba6878607c44d5e2" | ||
} |
export const PKG_NAME = "@hpcc-js/common"; | ||
export const PKG_VERSION = "3.1.0"; | ||
export const BUILD_VERSION = "2.107.0"; | ||
export const PKG_VERSION = "3.2.0"; | ||
export const BUILD_VERSION = "3.2.0"; |
@@ -94,4 +94,2 @@ import { IList } from "./IList.ts"; | ||
} | ||
// anchor: { (): string; (_: string): List; }; | ||
} | ||
@@ -98,0 +96,0 @@ List.prototype._class += " common_List"; |
@@ -127,3 +127,3 @@ import * as _colorbrewer from "colorbrewer"; | ||
}; | ||
ordinal.id = function (_) { | ||
ordinal.id = function (_?) { | ||
if (!arguments.length) return id; | ||
@@ -133,3 +133,3 @@ id = _; | ||
}; | ||
ordinal.colors = function (_) { | ||
ordinal.colors = function (_?) { | ||
if (!arguments.length) return colors; | ||
@@ -150,3 +150,3 @@ colors = _; | ||
}; | ||
ordinal.switch = function (_id, _colors) { | ||
ordinal.switch = function (_id?, _colors?) { | ||
if (id === _id) { | ||
@@ -245,3 +245,3 @@ return this; | ||
}; | ||
rainbow.id = function (_) { | ||
rainbow.id = function (_?) { | ||
if (!arguments.length) return id; | ||
@@ -251,3 +251,3 @@ id = _; | ||
}; | ||
rainbow.colors = function (_) { | ||
rainbow.colors = function (_?) { | ||
if (!arguments.length) return colors; | ||
@@ -267,3 +267,3 @@ colors = _; | ||
}; | ||
rainbow.switch = function (_id, _colors) { | ||
rainbow.switch = function (_id?, _colors?) { | ||
if (id === _id) { | ||
@@ -270,0 +270,0 @@ return this; |
@@ -496,3 +496,3 @@ import { hashSum } from "@hpcc-js/util"; | ||
if (type === "propertyArray") { | ||
this[id] = function (_) { | ||
this[id] = function (_?) { | ||
if (!arguments.length) return this[__prop_ + id]; | ||
@@ -509,4 +509,4 @@ this[__prop_ + id] = _.map(item => { | ||
} else { | ||
this[id] = function (_) { | ||
if (!arguments.length) return this[__prop_ + id]; | ||
this[id] = function (_?) { | ||
if (!arguments.length) return this[__prop_ + id] ?? this[id + "_default"](); | ||
this[__prop_ + id] = _; | ||
@@ -537,3 +537,3 @@ return this; | ||
}; | ||
this[id + "_default"] = function (_) { | ||
this[id + "_default"] = function (_?) { | ||
if (!arguments.length) return this[__default_ + id] !== undefined ? this[__default_ + id] : meta.defaultValue; | ||
@@ -600,3 +600,3 @@ if (_ === "") { | ||
this[__meta_ + id] = new MetaProxy(id, proxy, method, defaultValue); | ||
this[id] = function (_) { | ||
this[id] = function (_?) { | ||
if (!arguments.length) return defaultValue === undefined || this[id + "_modified"]() ? this[proxy][method]() : defaultValue; | ||
@@ -619,3 +619,3 @@ if (defaultValue !== undefined && _ === defaultValue) { | ||
}; | ||
this[id + "_default"] = function (_) { | ||
this[id + "_default"] = function (_?) { | ||
if (!arguments.length) return this[proxy][method + "_default"](); | ||
@@ -622,0 +622,0 @@ this[proxy][method + "_default"](_); |
@@ -167,3 +167,3 @@ import { rgb as d3Rgb } from "d3-color"; | ||
// Properties --- | ||
move(_, transitionDuration?) { | ||
move(_?, transitionDuration?) { | ||
const retVal = this.pos(_); | ||
@@ -170,0 +170,0 @@ if (arguments.length) { |
@@ -332,2 +332,3 @@ import { event as d3Event, mouse as d3Mouse } from "d3-selection"; | ||
.attr("height", this.height()) | ||
.style("fill", "transparent") | ||
.on("mousedown", () => { | ||
@@ -334,0 +335,0 @@ if (d3Event.shiftKey && this.mouseMode() === "zoom") { |
@@ -17,3 +17,3 @@ import { easeCubicInOut as d3CubicInOut } from "d3-ease"; | ||
duration(_) { | ||
duration(_?) { | ||
if (!arguments.length) return this._duration; | ||
@@ -24,3 +24,3 @@ this._duration = _; | ||
delay(_) { | ||
delay(_?) { | ||
if (!arguments.length) return this._delay; | ||
@@ -31,3 +31,3 @@ this._delay = _; | ||
ease(_) { | ||
ease(_?) { | ||
if (!arguments.length) return this._ease; | ||
@@ -34,0 +34,0 @@ this._ease = _; |
@@ -161,3 +161,3 @@ import { isArray } from "@hpcc-js/util"; | ||
_skipBringToTop; | ||
skipBringToTop(_) { | ||
skipBringToTop(_?) { | ||
if (!arguments.length) return this._skipBringToTop; | ||
@@ -224,3 +224,3 @@ this._skipBringToTop = _; | ||
} | ||
selection(_) { | ||
selection(_?) { | ||
if (!arguments.length) { | ||
@@ -423,3 +423,3 @@ return this.selection2().map(row => JSON.stringify(row)); | ||
export function template(tpl: string, _args) { | ||
export function template(tpl?: string, _args?) { | ||
if (!tpl) return ""; | ||
@@ -426,0 +426,0 @@ let args; |
@@ -10,2 +10,4 @@ import { select as d3Select } from "d3-selection"; | ||
export { Field }; | ||
export type IPrimative = boolean | number | string | object; | ||
@@ -316,4 +318,4 @@ export type IFieldType = "boolean" | "number" | "string" | "dataset" | "object" | "any"; | ||
scale(): number; | ||
scale(_): Widget; | ||
scale(_?): number | Widget { | ||
scale(_): this; | ||
scale(_?): number | this { | ||
if (!arguments.length) return this._widgetScale; | ||
@@ -320,0 +322,0 @@ this._widgetScale = _; |
export declare const PKG_NAME = "@hpcc-js/common"; | ||
export declare const PKG_VERSION = "3.1.0"; | ||
export declare const BUILD_VERSION = "2.107.0"; | ||
export declare const PKG_VERSION = "3.2.0"; | ||
export declare const BUILD_VERSION = "3.2.0"; |
@@ -31,3 +31,3 @@ import { ISize, Widget } from "./Widget.ts"; | ||
constructor(); | ||
move(_: any, transitionDuration?: any): this; | ||
move(_?: any, transitionDuration?: any): this; | ||
_enableOverflow: boolean; | ||
@@ -34,0 +34,0 @@ enableOverflow(): boolean; |
@@ -7,6 +7,6 @@ export declare class Transition { | ||
constructor(widget: any); | ||
duration(_: any): any; | ||
delay(_: any): any; | ||
ease(_: any): any; | ||
duration(_?: any): any; | ||
delay(_?: any): any; | ||
ease(_?: any): any; | ||
apply(selection: any): any; | ||
} |
@@ -31,3 +31,3 @@ import { Selection as d3SelectionT } from "d3-selection"; | ||
_skipBringToTop: any; | ||
skipBringToTop(_: any): any; | ||
skipBringToTop(_?: any): any; | ||
_initialSelection: (d: any) => boolean; | ||
@@ -39,3 +39,3 @@ enter(elements: any): void; | ||
selected(domNode: any): boolean; | ||
selection(_: any): string[] | this; | ||
selection(_?: any): string[] | this; | ||
selection2(): any[]; | ||
@@ -51,3 +51,3 @@ selection2(isSelected: (d: any) => boolean): this; | ||
export declare function templateFields(tpl: string): string[]; | ||
export declare function template(tpl: string, _args: any): string; | ||
export declare function template(tpl?: string, _args?: any): string; | ||
export declare function naturalSort(data: any, order: any, idx: any, sortCaseSensitive: any): any; | ||
@@ -54,0 +54,0 @@ export declare function multiSort(data: any, sortBy: any): any; |
@@ -6,2 +6,3 @@ import "d3-transition"; | ||
import "../src/Widget.css"; | ||
export { Field }; | ||
export type IPrimative = boolean | number | string | object; | ||
@@ -90,3 +91,3 @@ export type IFieldType = "boolean" | "number" | "string" | "dataset" | "object" | "any"; | ||
scale(): number; | ||
scale(_: any): Widget; | ||
scale(_: any): this; | ||
visible(): boolean; | ||
@@ -93,0 +94,0 @@ visible(_: any): this; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13040
3659134
92
5
Updated@hpcc-js/util@^3.2.0