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

gent-diagram

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gent-diagram - npm Package Compare versions

Comparing version 0.1.0 to 0.3.0

2

lib/ErrorEvent.js

@@ -27,4 +27,2 @@ "use strict";

var CIRCLE_SIZE = 21;
var SMALL_CIRCLE_SIZE = 8;
var PROGRESS_RADIUS = 7;
var LinkEvent = function (_a) {

@@ -31,0 +29,0 @@ var edge = _a.edge, properties = _a.properties;

3

lib/index.d.ts
/// <reference types="react" />
declare const VisualProcess: ({ schema, state, onClick, customTheme, }: {
declare const VisualProcess: ({ schema, state, customTheme, }: {
schema: any;
state?: any;
onClick?: (id: string) => void;
customTheme?: any;
}) => JSX.Element;
export default VisualProcess;

@@ -61,3 +61,3 @@ "use strict";

if (current && current.task === taskId && current.subtask !== 'timeout') {
switch (state.current.state) {
switch (state.current.status) {
case 'error':

@@ -83,3 +83,3 @@ return theme.taskErrorBackground;

var VisualProcess = function (_a) {
var schema = _a.schema, state = _a.state, onClick = _a.onClick, customTheme = _a.customTheme;
var schema = _a.schema, state = _a.state, customTheme = _a.customTheme;
var theme = __assign(__assign({}, DEFAULT_THEME), customTheme);

@@ -144,10 +144,3 @@ var _b = react_1.useMemo(function () {

var Element = defaultElements[node.type];
return (react_1["default"].createElement(Element, { key: node._id, data: node,
// state={tasksRev.filter(t => id === t.nodeId)}
clickable: onClick
? {
onClick: function () { return onClick(node._id); },
className: 'clickable'
}
: null, place: {
return (react_1["default"].createElement(Element, { key: node._id, data: node, place: {
y: graphNode.y - graphNode.height / 2,

@@ -154,0 +147,0 @@ x: graphNode.x - graphNode.width / 2,

{
"name": "gent-diagram",
"version": "0.1.0",
"version": "0.3.0",
"description": "Gent diagram visualisation in React",
"scripts": {
"build": "tsc"
"build": "tsc",
"prepare": "tsc"
},

@@ -8,0 +9,0 @@ "repository": {

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