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

sigma

Package Overview
Dependencies
Maintainers
0
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sigma - npm Package Compare versions

Comparing version 3.0.0-beta.20 to 3.0.0-beta.21

dist/index-0d8c156c.esm.js

6

dist/declarations/src/rendering/index.d.ts

@@ -15,7 +15,7 @@ export { NodeProgram, AbstractNodeProgram, createNodeCompoundProgram } from "./node.js";

export { default as NodePointProgram } from "./programs/node-point/index.js";
export { default as EdgeArrowProgram } from "./programs/edge-arrow/index.js";
export { default as EdgeArrowHeadProgram } from "./programs/edge-arrow-head/index.js";
export { default as EdgeClampedProgram } from "./programs/edge-clamped/index.js";
export * from "./programs/edge-arrow-head/index.js";
export * from "./programs/edge-clamped/index.js";
export { createEdgeArrowProgram, default as EdgeArrowProgram } from "./programs/edge-arrow/index.js";
export { default as EdgeLineProgram } from "./programs/edge-line/index.js";
export { default as EdgeRectangleProgram } from "./programs/edge-rectangle/index.js";
export { default as EdgeTriangleProgram } from "./programs/edge-triangle/index.js";
import { Attributes } from "graphology-types";
import { EdgeDisplayData, NodeDisplayData, RenderParams } from "../../../types.js";
import { EdgeProgram } from "../../edge.js";
import { ProgramInfo } from "../../utils.js";
declare const UNIFORMS: readonly ["u_matrix", "u_sizeRatio", "u_correctionRatio", "u_minEdgeThickness"];
export default class EdgeArrowHeadProgram<N extends Attributes = Attributes, E extends Attributes = Attributes, G extends Attributes = Attributes> extends EdgeProgram<(typeof UNIFORMS)[number], N, E, G> {
getDefinition(): {
VERTICES: number;
VERTEX_SHADER_SOURCE: string;
FRAGMENT_SHADER_SOURCE: string;
METHOD: 4;
UNIFORMS: readonly ["u_matrix", "u_sizeRatio", "u_correctionRatio", "u_minEdgeThickness"];
ATTRIBUTES: ({
name: string;
size: number;
type: 5126;
normalized?: undefined;
} | {
name: string;
size: number;
type: 5121;
normalized: boolean;
})[];
CONSTANT_ATTRIBUTES: {
name: string;
size: number;
type: 5126;
}[];
CONSTANT_DATA: number[][];
};
processVisibleItem(edgeIndex: number, startIndex: number, sourceData: NodeDisplayData, targetData: NodeDisplayData, data: EdgeDisplayData): void;
setUniforms(params: RenderParams, { gl, uniformLocations }: ProgramInfo): void;
}
export {};
import { EdgeProgramType } from "../../edge.js";
export type CreateEdgeArrowHeadProgramOptions = {
lengthToThicknessRatio: number;
widenessToThicknessRatio: number;
};
export declare const DEFAULT_EDGE_ARROW_HEAD_PROGRAM_OPTIONS: CreateEdgeArrowHeadProgramOptions;
export declare function createEdgeArrowHeadProgram<N extends Attributes = Attributes, E extends Attributes = Attributes, G extends Attributes = Attributes>(inputOptions?: Partial<CreateEdgeArrowHeadProgramOptions>): EdgeProgramType<N, E, G>;
declare const EdgeArrowHeadProgram: EdgeProgramType<Attributes, Attributes, Attributes>;
export default EdgeArrowHeadProgram;

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

import { Attributes } from "graphology-types";
import { EdgeProgramType } from "../../edge.js";
declare const EdgeArrowProgram: EdgeProgramType;
import { CreateEdgeArrowHeadProgramOptions } from "../edge-arrow-head/index.js";
export declare function createEdgeArrowProgram<N extends Attributes = Attributes, E extends Attributes = Attributes, G extends Attributes = Attributes>(inputOptions?: Partial<CreateEdgeArrowHeadProgramOptions>): EdgeProgramType<N, E, G>;
declare const EdgeArrowProgram: EdgeProgramType<Attributes, Attributes, Attributes>;
export default EdgeArrowProgram;
import { Attributes } from "graphology-types";
import { EdgeDisplayData, NodeDisplayData } from "../../../types.js";
import EdgeRectangleProgram from "../edge-rectangle/index.js";
export default class EdgeClampedProgram<N extends Attributes = Attributes, E extends Attributes = Attributes, G extends Attributes = Attributes> extends EdgeRectangleProgram<N, E, G> {
getDefinition(): {
VERTEX_SHADER_SOURCE: string;
ATTRIBUTES: ({
name: string;
size: number;
type: 5126;
normalized?: undefined;
} | {
name: string;
size: number;
type: 5121;
normalized: boolean;
})[];
CONSTANT_ATTRIBUTES: {
name: string;
size: number;
type: 5126;
}[];
CONSTANT_DATA: number[][];
VERTICES: number;
FRAGMENT_SHADER_SOURCE: string;
METHOD: 4;
UNIFORMS: readonly ["u_matrix", "u_zoomRatio", "u_sizeRatio", "u_correctionRatio", "u_minEdgeThickness"];
};
processVisibleItem(edgeIndex: number, startIndex: number, sourceData: NodeDisplayData, targetData: NodeDisplayData, data: EdgeDisplayData): void;
}
import { EdgeProgramType } from "../../edge.js";
import { CreateEdgeArrowHeadProgramOptions } from "../edge-arrow-head/index.js";
export type CreateEdgeClampedProgramOptions = Pick<CreateEdgeArrowHeadProgramOptions, "lengthToThicknessRatio">;
export declare const DEFAULT_EDGE_CLAMPED_PROGRAM_OPTIONS: CreateEdgeClampedProgramOptions;
export declare function createEdgeClampedProgram<N extends Attributes = Attributes, E extends Attributes = Attributes, G extends Attributes = Attributes>(inputOptions?: Partial<CreateEdgeClampedProgramOptions>): EdgeProgramType<N, E, G>;
declare const EdgeClampedProgram: EdgeProgramType<Attributes, Attributes, Attributes>;
export default EdgeClampedProgram;
{
"name": "sigma",
"version": "3.0.0-beta.20",
"version": "3.0.0-beta.21",
"description": "A JavaScript library aimed at visualizing graphs of thousands of nodes and edges.",

@@ -93,3 +93,3 @@ "homepage": "https://www.sigmajs.org",

},
"gitHead": "d92460da440f1847e93d2786f5b3261352bfc293"
"gitHead": "81eaa4edd6a2e2a51431acf344b32f7c110fdb1a"
}

@@ -5,3 +5,3 @@ 'use strict';

var index = require('../../dist/index-02fdfc6f.cjs.dev.js');
var index = require('../../dist/index-5093f733.cjs.dev.js');
var inherits = require('../../dist/inherits-4172bb27.cjs.dev.js');

@@ -284,5 +284,5 @@ var colors = require('../../dist/colors-a4626581.cjs.dev.js');

exports.AbstractProgram = index.AbstractProgram;
exports.EdgeArrowHeadProgram = index.EdgeArrowHeadProgram;
exports.DEFAULT_EDGE_ARROW_HEAD_PROGRAM_OPTIONS = index.DEFAULT_EDGE_ARROW_HEAD_PROGRAM_OPTIONS;
exports.DEFAULT_EDGE_CLAMPED_PROGRAM_OPTIONS = index.DEFAULT_EDGE_CLAMPED_PROGRAM_OPTIONS;
exports.EdgeArrowProgram = index.EdgeArrowProgram;
exports.EdgeClampedProgram = index.EdgeClampedProgram;
exports.EdgeProgram = index.EdgeProgram;

@@ -293,2 +293,5 @@ exports.EdgeRectangleProgram = index.EdgeRectangleProgram;

exports.Program = index.Program;
exports.createEdgeArrowHeadProgram = index.createEdgeArrowHeadProgram;
exports.createEdgeArrowProgram = index.createEdgeArrowProgram;
exports.createEdgeClampedProgram = index.createEdgeClampedProgram;
exports.createEdgeCompoundProgram = index.createEdgeCompoundProgram;

@@ -295,0 +298,0 @@ exports.createNodeCompoundProgram = index.createNodeCompoundProgram;

@@ -5,3 +5,3 @@ 'use strict';

var index = require('../../dist/index-268476ee.cjs.prod.js');
var index = require('../../dist/index-5cc463a5.cjs.prod.js');
var inherits = require('../../dist/inherits-fd41da79.cjs.prod.js');

@@ -284,5 +284,5 @@ var colors = require('../../dist/colors-d415fc58.cjs.prod.js');

exports.AbstractProgram = index.AbstractProgram;
exports.EdgeArrowHeadProgram = index.EdgeArrowHeadProgram;
exports.DEFAULT_EDGE_ARROW_HEAD_PROGRAM_OPTIONS = index.DEFAULT_EDGE_ARROW_HEAD_PROGRAM_OPTIONS;
exports.DEFAULT_EDGE_CLAMPED_PROGRAM_OPTIONS = index.DEFAULT_EDGE_CLAMPED_PROGRAM_OPTIONS;
exports.EdgeArrowProgram = index.EdgeArrowProgram;
exports.EdgeClampedProgram = index.EdgeClampedProgram;
exports.EdgeProgram = index.EdgeProgram;

@@ -293,2 +293,5 @@ exports.EdgeRectangleProgram = index.EdgeRectangleProgram;

exports.Program = index.Program;
exports.createEdgeArrowHeadProgram = index.createEdgeArrowHeadProgram;
exports.createEdgeArrowProgram = index.createEdgeArrowProgram;
exports.createEdgeClampedProgram = index.createEdgeClampedProgram;
exports.createEdgeCompoundProgram = index.createEdgeCompoundProgram;

@@ -295,0 +298,0 @@ exports.createNodeCompoundProgram = index.createNodeCompoundProgram;

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

import { f as NodeProgram, g as EdgeProgram } from '../../dist/index-2ec8ee70.esm.js';
export { i as AbstractEdgeProgram, A as AbstractNodeProgram, k as AbstractProgram, l as EdgeArrowHeadProgram, E as EdgeArrowProgram, m as EdgeClampedProgram, g as EdgeProgram, e as EdgeRectangleProgram, N as NodeCircleProgram, f as NodeProgram, P as Program, j as createEdgeCompoundProgram, h as createNodeCompoundProgram, c as drawDiscNodeHover, b as drawDiscNodeLabel, d as drawStraightEdgeLabel, n as getAttributeItemsCount, o as getAttributesItemsCount, s as killProgram, q as loadFragmentShader, r as loadProgram, p as loadVertexShader, t as numberToGLSLFloat } from '../../dist/index-2ec8ee70.esm.js';
import { f as NodeProgram, g as EdgeProgram } from '../../dist/index-0d8c156c.esm.js';
export { i as AbstractEdgeProgram, A as AbstractNodeProgram, k as AbstractProgram, D as DEFAULT_EDGE_ARROW_HEAD_PROGRAM_OPTIONS, u as DEFAULT_EDGE_CLAMPED_PROGRAM_OPTIONS, E as EdgeArrowProgram, g as EdgeProgram, e as EdgeRectangleProgram, N as NodeCircleProgram, f as NodeProgram, P as Program, t as createEdgeArrowHeadProgram, l as createEdgeArrowProgram, v as createEdgeClampedProgram, j as createEdgeCompoundProgram, h as createNodeCompoundProgram, c as drawDiscNodeHover, b as drawDiscNodeLabel, d as drawStraightEdgeLabel, m as getAttributeItemsCount, n as getAttributesItemsCount, r as killProgram, p as loadFragmentShader, q as loadProgram, o as loadVertexShader, s as numberToGLSLFloat } from '../../dist/index-0d8c156c.esm.js';
import { _ as _inherits, a as _classCallCheck, b as _callSuper, d as _createClass } from '../../dist/inherits-8fbdedb5.esm.js';

@@ -4,0 +4,0 @@ import { f as floatColor } from '../../dist/colors-2f6d17f0.esm.js';

@@ -5,3 +5,3 @@ 'use strict';

var index = require('../../dist/index-02fdfc6f.cjs.dev.js');
var index = require('../../dist/index-5093f733.cjs.dev.js');
var data = require('../../dist/data-d0a8f6df.cjs.dev.js');

@@ -8,0 +8,0 @@ require('../../dist/inherits-4172bb27.cjs.dev.js');

@@ -5,3 +5,3 @@ 'use strict';

var index = require('../../dist/index-268476ee.cjs.prod.js');
var index = require('../../dist/index-5cc463a5.cjs.prod.js');
var data = require('../../dist/data-7e3d4a4a.cjs.prod.js');

@@ -8,0 +8,0 @@ require('../../dist/inherits-fd41da79.cjs.prod.js');

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

import { d as drawStraightEdgeLabel, b as drawDiscNodeLabel, c as drawDiscNodeHover, N as NodeCircleProgram, E as EdgeArrowProgram, e as EdgeRectangleProgram } from '../../dist/index-2ec8ee70.esm.js';
import { d as drawStraightEdgeLabel, b as drawDiscNodeLabel, c as drawDiscNodeHover, N as NodeCircleProgram, E as EdgeArrowProgram, e as EdgeRectangleProgram } from '../../dist/index-0d8c156c.esm.js';
import { a as assign } from '../../dist/data-31990a76.esm.js';

@@ -3,0 +3,0 @@ import '../../dist/inherits-8fbdedb5.esm.js';

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

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

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

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

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