gent-diagram
Advanced tools
Comparing version 0.1.0 to 0.3.0
@@ -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; |
/// <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": { |
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
32631
719