forked from lilkraftwerk/lineboi3000
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Final docs update and plot mode fixes (#19)
* Final docs update * Prettier formatting
- Loading branch information
1 parent
d329f5b
commit e405df0
Showing
33 changed files
with
600 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,23 @@ | ||
 | ||
 | ||
|
||
### **lineboi3000 is a way cool graphical interface for drawing, painting, adding EFX, and then sending your designs to a pen plotter or creating animations.** {docsify-ignore} | ||
### **lineboi3000 is a way cool graphical interface for drawing, painting, adding EFX, and then sending your designs to a pen plotter or creating animations.** | ||
|
||
BETA - click here for known issues and caveats | ||
 | ||
|
||
\*\*\* For full documentation, visit the [Docs Page](http://username.github.io/repository) | ||
## Getting Started | ||
|
||
### Install | ||
|
||
`yarn` or `npm i` to install all dependencies | ||
|
||
### Run The App | ||
|
||
`yarn dev` or `npm dev` to run the dev server (devtools open, and Webpack rebuilds on changes to files) | ||
|
||
## Full documentation lives [HERE](http://username.github.io/repository) | ||
|
||
 | ||
|
||
 | ||
|
||
 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# Plot Mode | ||
# Gif Mode | ||
|
||
 | ||
Docs for Gif Mode coming soon | ||
|
||
 | ||
|
||
## Example Output | ||
|
||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,46 @@ | ||
# Plot Mode | ||
|
||
 | ||
Once you've added EFX, you can send the result to a pen plotter in `Plot Mode` | ||
|
||
**NOTE**: I've tested all of this locally and it works fine. However, this is all beta, so I can't promise there aren't bugs or issues. I would run small tests with your plotter to make sure it's all good before doing anything serious. | ||
|
||
 | ||
|
||
## Layer Controls | ||
|
||
The same controls in [Plot Mode](/draw-mode#layer-controls) apply to layers in EFX Mode. | ||
|
||
## Plotter Status | ||
|
||
 | ||
|
||
This shows the current status of the pen plotter. Possible states are: | ||
|
||
- **SEARCHING**: lineboi3000 is checking for the Plotter | ||
- **DISCONNECTED**: No pen plotter was found | ||
- **SIMULATED**: CNCServer is connected but no Plotter was found. Plot actions will be simulated | ||
- **CONNECTED**: A bona fide Pen Plotter was found. Plot actions will be sent to the real plotter | ||
|
||
## Plot Actions | ||
|
||
 | ||
|
||
- **PLOT**: Start Plotting all lines on visible layers. | ||
|
||
## Pen Actions | ||
|
||
- **PEN UP/DOWN**: Move the pen up or down to the set height | ||
- **SET HEIGHTS**: Lock in the heights in the below options. | ||
- **PARK PEN**: Set pen state as X:0, Y:O and move | ||
- **RETURN PEN TO START**: Delete Pen status and reset it to default position | ||
|
||
To set heights, move the options below, then click `SET HEIGHTS`, then press `PEN UP` or `PEN DOWN` to check the output. Once the heights are set, the app will use those values when plotting. | ||
|
||
## Plot Options | ||
|
||
 | ||
|
||
- **OPTIMIZE LINE ORDER**: Order Plot lines to reduce the amount of pen travel, by finding the nearest next line to plot after finishing a given line. As a note I've seen slightly "off" results with this that might have to do with the physical difference between the sides of the pen tip,. | ||
- **PEN UP HEIGHT**: Height when the pen is in Up state. 0 is highest. | ||
- **PEN DOWN HEIGHT**: Height when the pen is in Down state. 1 is lowest. | ||
- **SCALE**: Scale of the plotted lines in percent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import React from 'react'; | ||
import { connect } from 'react-redux'; | ||
|
||
import styles from './PlotHeader.styles.css'; | ||
|
||
export const PlotHeader = ({ | ||
currentPlotPercentage, | ||
totalPlotLineCount, | ||
currentPlotLineIndex, | ||
plotting | ||
}) => { | ||
const plotComplete = currentPlotPercentage === 100; | ||
const textString = plotting ? 'PLOTTING' : 'NOT PLOTTING'; | ||
const plottingClass = plotting | ||
? styles.currentlyPlotting | ||
: styles.notCurrentlyPlotting; | ||
|
||
return ( | ||
<div className={styles.plotHeaderContainer}> | ||
<div className={styles.plotMessage}> | ||
<div className={[styles.plotInfo, plottingClass].join(' ')}> | ||
{plotComplete ? 'DONE' : textString} | ||
</div> | ||
<div className={styles.plotInfo}> | ||
<div className={styles.plotInfoTitle}>lines done</div> | ||
<div className={styles.plotInfoBody}> | ||
{currentPlotLineIndex} | ||
</div> | ||
</div> | ||
<div className={styles.plotInfo}> | ||
<div className={styles.plotInfoTitle}>total lines</div> | ||
<div className={styles.plotInfoBody}> | ||
{totalPlotLineCount} | ||
</div> | ||
</div> | ||
<div className={styles.plotInfo}> | ||
<div className={styles.plotInfoTitle}>percent done</div> | ||
<div className={styles.plotInfoBody}> | ||
{Math.round(currentPlotPercentage)}% | ||
</div> | ||
</div> | ||
</div> | ||
<div | ||
style={{ width: `${currentPlotPercentage}%` }} | ||
className={styles.loadingContainer} | ||
> | ||
<div | ||
className={ | ||
plotComplete | ||
? styles.finishedPlot | ||
: styles.loadingBackground | ||
} | ||
/> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
const mapStateToProps = (state) => { | ||
return { | ||
...state.plotReducer | ||
}; | ||
}; | ||
|
||
export default connect(mapStateToProps)(PlotHeader); |
Oops, something went wrong.