Comparing version 3.0.0-beta.39 to 3.0.0
@@ -13,3 +13,6 @@ import { CameraState, TypedEventEmitter } from "../types.js"; | ||
maxRatio: number | null; | ||
enabledZooming: boolean; | ||
enabledPanning: boolean; | ||
enabledRotation: boolean; | ||
clean: ((state: CameraState) => CameraState) | null; | ||
private nextFrame; | ||
@@ -16,0 +19,0 @@ private previousState; |
import { Attributes } from "graphology-types"; | ||
import { EdgeLabelDrawingFunction, EdgeProgramType, NodeHoverDrawingFunction, NodeLabelDrawingFunction, NodeProgramType } from "./rendering/index.js"; | ||
import { EdgeDisplayData, NodeDisplayData } from "./types.js"; | ||
import { AtLeastOne, EdgeDisplayData, NodeDisplayData } from "./types.js"; | ||
export interface Settings<N extends Attributes = Attributes, E extends Attributes = Attributes, G extends Attributes = Attributes> { | ||
@@ -62,3 +62,12 @@ hideEdgesOnMove: boolean; | ||
maxCameraRatio: null | number; | ||
enableCameraZooming: boolean; | ||
enableCameraPanning: boolean; | ||
enableCameraRotation: boolean; | ||
cameraPanBoundaries: null | true | AtLeastOne<{ | ||
tolerance: number; | ||
boundaries: { | ||
x: [number, number]; | ||
y: [number, number]; | ||
}; | ||
}>; | ||
allowInvalidContainer: boolean; | ||
@@ -65,0 +74,0 @@ nodeProgramClasses: { |
@@ -71,2 +71,3 @@ import Graph, { Attributes } from "graphology-types"; | ||
private handleSettingsUpdate; | ||
private cleanCameraState; | ||
private renderLabels; | ||
@@ -140,2 +141,3 @@ private renderEdgeLabels; | ||
updateSetting<K extends keyof Settings<N, E, G>>(key: K, updater: (value: Settings<N, E, G>[K]) => Settings<N, E, G>[K]): this; | ||
setSettings(settings: Partial<Settings<N, E, G>>): this; | ||
resize(force?: boolean): this; | ||
@@ -142,0 +144,0 @@ clear(): this; |
@@ -8,2 +8,5 @@ import { EventEmitter } from "events"; | ||
}; | ||
export type AtLeastOne<T, U = { | ||
[K in keyof T]: Pick<T, K>; | ||
}> = Partial<T> & U[keyof U]; | ||
export type NonEmptyArray<T> = [T, ...T[]]; | ||
@@ -10,0 +13,0 @@ export interface Coordinates { |
{ | ||
"name": "sigma", | ||
"version": "3.0.0-beta.39", | ||
"version": "3.0.0", | ||
"description": "A JavaScript library aimed at visualizing graphs of thousands of nodes and edges.", | ||
@@ -93,3 +93,3 @@ "homepage": "https://www.sigmajs.org", | ||
}, | ||
"gitHead": "e1ec97d88185f2e6d94a17abc5c007723b317c3c" | ||
"gitHead": "f0187cb13da41310bf375caf7105db2f18bc89d2" | ||
} |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var index = require('../../dist/index-f81ac934.cjs.dev.js'); | ||
var data = require('../../dist/data-d0a8f6df.cjs.dev.js'); | ||
var data = require('../../dist/data-24ae515b.cjs.dev.js'); | ||
require('../../dist/inherits-3d03d999.cjs.dev.js'); | ||
@@ -81,3 +81,6 @@ require('../../dist/colors-fe6de9d2.cjs.dev.js'); | ||
maxCameraRatio: null, | ||
enableCameraZooming: true, | ||
enableCameraPanning: true, | ||
enableCameraRotation: true, | ||
cameraPanBoundaries: null, | ||
// Lifecycle | ||
@@ -84,0 +87,0 @@ allowInvalidContainer: false, |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var index = require('../../dist/index-a45faf79.cjs.prod.js'); | ||
var data = require('../../dist/data-7e3d4a4a.cjs.prod.js'); | ||
var data = require('../../dist/data-881001cd.cjs.prod.js'); | ||
require('../../dist/inherits-bddcfb5f.cjs.prod.js'); | ||
@@ -81,3 +81,6 @@ require('../../dist/colors-ee2e2828.cjs.prod.js'); | ||
maxCameraRatio: null, | ||
enableCameraZooming: true, | ||
enableCameraPanning: true, | ||
enableCameraRotation: true, | ||
cameraPanBoundaries: null, | ||
// Lifecycle | ||
@@ -84,0 +87,0 @@ allowInvalidContainer: false, |
import { d as drawStraightEdgeLabel, b as drawDiscNodeLabel, c as drawDiscNodeHover, N as NodeCircleProgram, E as EdgeArrowProgram, e as EdgeRectangleProgram } from '../../dist/index-4d79933a.esm.js'; | ||
import { a as assign } from '../../dist/data-31990a76.esm.js'; | ||
import { a as assign } from '../../dist/data-11df7124.esm.js'; | ||
import '../../dist/inherits-c41b88d9.esm.js'; | ||
@@ -76,3 +76,6 @@ import '../../dist/colors-beb06eb2.esm.js'; | ||
maxCameraRatio: null, | ||
enableCameraZooming: true, | ||
enableCameraPanning: true, | ||
enableCameraRotation: true, | ||
cameraPanBoundaries: null, | ||
// Lifecycle | ||
@@ -79,0 +82,0 @@ allowInvalidContainer: false, |
@@ -21,2 +21,6 @@ 'use strict'; | ||
/** | ||
* Returns a type similar to Partial<T>, but with at least one key set. | ||
*/ | ||
/** | ||
* Custom event emitter types. | ||
@@ -23,0 +27,0 @@ */ |
@@ -21,2 +21,6 @@ 'use strict'; | ||
/** | ||
* Returns a type similar to Partial<T>, but with at least one key set. | ||
*/ | ||
/** | ||
* Custom event emitter types. | ||
@@ -23,0 +27,0 @@ */ |
@@ -17,2 +17,6 @@ import { _ as _inherits, a as _createClass, b as _classCallCheck, c as _callSuper, d as _assertThisInitialized } from '../../dist/inherits-c41b88d9.esm.js'; | ||
/** | ||
* Returns a type similar to Partial<T>, but with at least one key set. | ||
*/ | ||
/** | ||
* Custom event emitter types. | ||
@@ -19,0 +23,0 @@ */ |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var colors = require('../../dist/colors-fe6de9d2.cjs.dev.js'); | ||
var data = require('../../dist/data-d0a8f6df.cjs.dev.js'); | ||
var data = require('../../dist/data-24ae515b.cjs.dev.js'); | ||
require('graphology-utils/is-graph'); | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var colors = require('../../dist/colors-ee2e2828.cjs.prod.js'); | ||
var data = require('../../dist/data-7e3d4a4a.cjs.prod.js'); | ||
var data = require('../../dist/data-881001cd.cjs.prod.js'); | ||
require('graphology-utils/is-graph'); | ||
@@ -10,0 +10,0 @@ |
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-36f3d509.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-beb06eb2.esm.js'; | ||
export { a as assign, b as assignDeep, e as extend, i as isPlainObject } from '../../dist/data-31990a76.esm.js'; | ||
export { a as assign, b as assignDeep, e as extend, i as isPlainObject } from '../../dist/data-11df7124.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
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
977176
21018
0