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

sigma

Package Overview
Dependencies
Maintainers
2
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.24 to 3.0.0-beta.25

dist/normalization-6ad2dc39.esm.js

1

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

@@ -6,2 +6,3 @@ export { NodeProgram, AbstractNodeProgram, createNodeCompoundProgram } from "./node.js";

export { Program, AbstractProgram } from "./program.js";
export type { ProgramType } from "./program.js";
export type { EdgeLabelDrawingFunction } from "./edge-labels.js";

@@ -8,0 +9,0 @@ export { drawStraightEdgeLabel } from "./edge-labels.js";

@@ -45,1 +45,7 @@ import { Attributes } from "graphology-types";

}
declare class ProgramClass<Uniform extends string = string, N extends Attributes = Attributes, E extends Attributes = Attributes, G extends Attributes = Attributes> extends Program<Uniform, N, E, G> {
getDefinition(): ProgramDefinition<Uniform> | InstancedProgramDefinition<Uniform>;
setUniforms(_params: RenderParams, _programInfo: ProgramInfo): undefined;
}
export type ProgramType<Uniform extends string = string, N extends Attributes = Attributes, E extends Attributes = Attributes, G extends Attributes = Attributes> = typeof ProgramClass<Uniform, N, E, G>;
export {};

22

dist/declarations/src/sigma.d.ts

@@ -6,3 +6,3 @@ import Graph, { Attributes } from "graphology-types";

import { Settings } from "./settings.js";
import { CameraState, CoordinateConversionOverride, Coordinates, Dimensions, EdgeDisplayData, Extent, NodeDisplayData, PlainObject, SigmaEvents, TypedEventEmitter } from "./types.js";
import { CameraState, CoordinateConversionOverride, Coordinates, Dimensions, EdgeDisplayData, Extent, NodeDisplayData, PlainObject, RenderParams, SigmaEvents, TypedEventEmitter } from "./types.js";
export default class Sigma<N extends Attributes = Attributes, E extends Attributes = Attributes, G extends Attributes = Attributes> extends TypedEventEmitter<SigmaEvents> {

@@ -58,4 +58,2 @@ private settings;

constructor(graph: Graph<N, E, G>, container: HTMLElement, settings?: Partial<Settings<N, E, G>>);
private createCanvas;
private createCanvasContext;
private registerNodeProgram;

@@ -65,3 +63,2 @@ private registerEdgeProgram;

private unregisterEdgeProgram;
private createWebGLContext;
private resetWebGLTexture;

@@ -96,2 +93,17 @@ private bindCameraHandlers;

private addEdgeToProgram;
getRenderParams(): RenderParams;
createCanvas(id: string, options?: {
beforeLayer?: string;
} | {
afterLayer?: string;
}): HTMLCanvasElement;
createCanvasContext(id: string): this;
createWebGLContext(id: string, options?: {
preserveDrawingBuffer?: boolean;
antialias?: boolean;
hidden?: boolean;
picking?: boolean;
canvas?: HTMLCanvasElement;
}): WebGLRenderingContext;
killLayer(id: string): this;
getCamera(): Camera;

@@ -114,3 +126,3 @@ setCamera(camera: Camera): void;

updateSetting<K extends keyof Settings<N, E, G>>(key: K, updater: (value: Settings<N, E, G>[K]) => Settings<N, E, G>[K]): this;
resize(): this;
resize(force?: boolean): this;
clear(): this;

@@ -117,0 +129,0 @@ refresh(opts?: {

@@ -65,2 +65,3 @@ /// <reference types="node" />

matrix: Float32Array;
invMatrix: Float32Array;
downSizingRatio: number;

@@ -115,2 +116,6 @@ minEdgeThickness: number;

export type SigmaAdditionalEvents = {
beforeClear(): void;
afterClear(): void;
beforeProcess(): void;
afterProcess(): void;
beforeRender(): void;

@@ -117,0 +122,0 @@ afterRender(): void;

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

Copyright (C) 2013-2024, Alexis Jacomy, Guillaume Plique https://www.sigmajs.org
Copyright (C) 2013-2024, Alexis Jacomy, Guillaume Plique, Benoît Simard https://www.sigmajs.org

@@ -3,0 +3,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),

{
"name": "sigma",
"version": "3.0.0-beta.24",
"version": "3.0.0-beta.25",
"description": "A JavaScript library aimed at visualizing graphs of thousands of nodes and edges.",

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

},
"gitHead": "721ac7e4dd02e00e828cd1538dc2310ed446809a"
"gitHead": "f626a61f66825780774829c429ae69c08382f414"
}

@@ -56,3 +56,3 @@ [![Build Status](https://github.com/jacomyal/sigma.js/workflows/Tests/badge.svg)](https://github.com/jacomyal/sigma.js/actions)

- **GitHub Project:** The source code and collaborative development efforts for Sigma.js are hosted on [GitHub](https://github.com/sigma).
- **GitHub Project:** The source code and collaborative development efforts for Sigma.js are hosted on [GitHub](https://github.com/jacomyal/sigma.js).
- **Website:** The official website, [sigmajs.org](https://sigmajs.org), kindly designed by [Robin de Mourat](https://github.com/robindemourat/) from the [Sciences-Po médialab](https://medialab.sciencespo.fr/en/) team, showcases the library's capabilities.

@@ -59,0 +59,0 @@ - **Documentation:** A detailed documentation, built with [Docusaurus](https://docusaurus.io/), is available at [sigmajs.org/docs](https://sigmajs.org/docs). It provides extensive guides and API references for users.

@@ -1,4 +0,4 @@

export { A as ANIMATE_DEFAULTS, h as animateNodes, a as createElement, c as createNormalizationFunction, o as cubicIn, r as cubicInOut, p as cubicOut, e as easings, j as getCorrectionRatio, d as getMatrixImpact, g as getPixelRatio, b as graphExtent, i as identity, l as linear, m as matrixFromCamera, w as multiply, f as multiplyVec2, q as quadraticIn, n as quadraticInOut, k as quadraticOut, t as rotate, s as scale, u as translate, v as validateGraph, z as zIndexOrdering } from '../../dist/normalization-8e7b2e97.esm.js';
export { A as ANIMATE_DEFAULTS, h as animateNodes, d as createElement, c as createNormalizationFunction, o as cubicIn, r as cubicInOut, p as cubicOut, e as easings, j as getCorrectionRatio, b as getMatrixImpact, g as getPixelRatio, a as graphExtent, i as identity, l as linear, m as matrixFromCamera, w as multiply, f as multiplyVec2, q as quadraticIn, n as quadraticInOut, k as quadraticOut, t as rotate, s as scale, u as translate, v as validateGraph, z as zIndexOrdering } from '../../dist/normalization-6ad2dc39.esm.js';
export { H as HTML_COLORS, d as colorToArray, c as colorToIndex, e as extractPixel, f as floatColor, g as getPixelColor, i as indexToColor, p as parseColor, r as rgbaToFloat } from '../../dist/colors-2f6d17f0.esm.js';
export { a as assign, b as assignDeep, e as extend, i as isPlainObject } from '../../dist/data-31990a76.esm.js';
import 'graphology-utils/is-graph';

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

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