Skip to content

Enhance Graph Built-in Features #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 34 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
de8d542
add fontawesome and misc loader packages
utku-ozturk Oct 22, 2024
519b33c
git and npm ignores
utku-ozturk Oct 22, 2024
7898c84
update webpack demo settings for fontawesome
utku-ozturk Oct 22, 2024
b045edf
update demo
utku-ozturk Oct 22, 2024
9fd2197
add zoom in/out styles
utku-ozturk Oct 22, 2024
fe3a779
add essential scale controller and controls components
utku-ozturk Oct 22, 2024
372131f
integrate scales controls
utku-ozturk Oct 22, 2024
85a1cc3
move animation frame funcs. to utilities
utku-ozturk Oct 24, 2024
36e9aee
move setScale to Graph
utku-ozturk Oct 24, 2024
381f789
scale nodes
utku-ozturk Oct 23, 2024
6372332
remove unnecessary scales
utku-ozturk Oct 24, 2024
55c7626
add scale to `traceEdges`
utku-ozturk Oct 24, 2024
320bc5a
initialize state
utku-ozturk Oct 24, 2024
43bc1b4
scale traceEdges
utku-ozturk Oct 28, 2024
8333b9b
scale path offsets
utku-ozturk Oct 28, 2024
9ece73c
add roundScaled util function
utku-ozturk Oct 28, 2024
220b23f
round scaled values
utku-ozturk Oct 28, 2024
3314c20
move most of the scaling calculations to Graph component
utku-ozturk Oct 28, 2024
c9ad110
remove obsolete scale prop
utku-ozturk Oct 29, 2024
e105219
refactor converting prop values
utku-ozturk Oct 29, 2024
d51faee
more refactoring
utku-ozturk Oct 29, 2024
a8ee47a
add showZoomControls prop
utku-ozturk Oct 29, 2024
1c04a02
bump version(0.2.0-beta.0)
utku-ozturk Oct 29, 2024
f5bd12b
remove defaults
utku-ozturk Oct 29, 2024
660c47d
remove ScaleController container
utku-ozturk Oct 29, 2024
a0558df
set ScaleController as depracated
utku-ozturk Oct 29, 2024
eb27cec
set scale controls position
utku-ozturk Oct 29, 2024
c380336
full-functional scale /w hard-coded columnWidth
utku-ozturk Oct 30, 2024
adcb4b5
move scaling into NodesLayer and Nodes
utku-ozturk Oct 30, 2024
3faa8d1
move scaling into EdgesLayer and Edge
utku-ozturk Oct 30, 2024
85f1d6b
optimize `roundScaled`
utku-ozturk Oct 30, 2024
5e8d8b0
set scale default value
utku-ozturk Oct 30, 2024
6c068cf
scale controller style updates
utku-ozturk Oct 30, 2024
8526b2a
bump version 0.2.0-beta.1
utku-ozturk Oct 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
dist
es
demo/demo-compiled.js
demo/webfonts/*

node_modules
.DS_Store
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
demo/demo.js
demo/webfonts/*
node_modules
src/components
src/index.js
Expand Down
3 changes: 2 additions & 1 deletion demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import ReactDOM from 'react-dom';
import _ from 'underscore';
import url from 'url';
import { default as packageJSON } from './../package.json';
import '@fortawesome/fontawesome-free/css/all.css';

// Loaded on index.html, defined as an external in webpack.config.demo.js
import Graph, { GraphParser } from 'react-workflow-viz';
Expand Down Expand Up @@ -180,7 +181,7 @@ class DemoApp extends Component {
onChange={this.handleParsingOptChange} onChangeBasicIO={this.handleChangeBasicIO} />
<RowSpacingTypeSelect rowSpacingType={rowSpacingType} onChange={this.handleRowSpacingTypeChange} />
<GraphParser parsingOptions={fullParseOpts} parentItem={{ name }} steps={steps}>
<Graph rowSpacingType={rowSpacingType} minimumHeight={300} />
<Graph rowSpacingType={rowSpacingType} minimumHeight={300} showZoomControls={true} />
</GraphParser>
</div>
);
Expand Down
Loading