diff --git a/demo/gif/1 (copy).xcf b/demo/gif/1 (copy).xcf new file mode 100644 index 0000000..5d4d948 Binary files /dev/null and b/demo/gif/1 (copy).xcf differ diff --git a/demo/gif/1.xcf b/demo/gif/1.xcf index 7f5eea0..7aee5bb 100644 Binary files a/demo/gif/1.xcf and b/demo/gif/1.xcf differ diff --git a/demo/gif/2.xcf b/demo/gif/2.xcf new file mode 100644 index 0000000..b8d040b Binary files /dev/null and b/demo/gif/2.xcf differ diff --git a/demo/gif/3.xcf b/demo/gif/3.xcf new file mode 100644 index 0000000..06a7654 Binary files /dev/null and b/demo/gif/3.xcf differ diff --git a/demo/gif/4.xcf b/demo/gif/4.xcf new file mode 100644 index 0000000..b3dcef8 Binary files /dev/null and b/demo/gif/4.xcf differ diff --git a/demo/gif/5.xcf b/demo/gif/5.xcf new file mode 100644 index 0000000..3aa69fd Binary files /dev/null and b/demo/gif/5.xcf differ diff --git a/demo/gif/6.xcf b/demo/gif/6.xcf new file mode 100644 index 0000000..cb37d41 Binary files /dev/null and b/demo/gif/6.xcf differ diff --git a/demo/gif/Screenshot from 2021-05-04 00-57-50.png b/demo/gif/Screenshot from 2021-05-04 00-57-50.png new file mode 100644 index 0000000..4bfb088 Binary files /dev/null and b/demo/gif/Screenshot from 2021-05-04 00-57-50.png differ diff --git a/demo/gif/Screenshot from 2021-05-04 00-58-02.png b/demo/gif/Screenshot from 2021-05-04 00-58-02.png new file mode 100644 index 0000000..0f9c4d4 Binary files /dev/null and b/demo/gif/Screenshot from 2021-05-04 00-58-02.png differ diff --git a/demo/gif/Screenshot from 2021-05-04 00-58-08.png b/demo/gif/Screenshot from 2021-05-04 00-58-08.png new file mode 100644 index 0000000..6641aaa Binary files /dev/null and b/demo/gif/Screenshot from 2021-05-04 00-58-08.png differ diff --git a/demo/gif/Screenshot from 2021-05-04 00-58-29.png b/demo/gif/Screenshot from 2021-05-04 00-58-29.png new file mode 100644 index 0000000..5371343 Binary files /dev/null and b/demo/gif/Screenshot from 2021-05-04 00-58-29.png differ diff --git a/demo/gif/Screenshot from 2021-05-04 00-59-02.png b/demo/gif/Screenshot from 2021-05-04 00-59-02.png new file mode 100644 index 0000000..4aec155 Binary files /dev/null and b/demo/gif/Screenshot from 2021-05-04 00-59-02.png differ diff --git a/demo/gif/Screenshot from 2021-05-04 00-59-07.png b/demo/gif/Screenshot from 2021-05-04 00-59-07.png new file mode 100644 index 0000000..7361504 Binary files /dev/null and b/demo/gif/Screenshot from 2021-05-04 00-59-07.png differ diff --git a/demo/gif/extrude.png b/demo/gif/extrude.png new file mode 100644 index 0000000..8ba4e7b Binary files /dev/null and b/demo/gif/extrude.png differ diff --git a/demo/gif/extrude.xcf b/demo/gif/extrude.xcf index 723702d..884cc82 100644 Binary files a/demo/gif/extrude.xcf and b/demo/gif/extrude.xcf differ diff --git a/demo/gif/in.mp4 b/demo/gif/in.mp4 new file mode 100644 index 0000000..66187bf Binary files /dev/null and b/demo/gif/in.mp4 differ diff --git a/demo/gif/sculpt.gif b/demo/gif/sculpt.gif index 4222c0e..f9a36f9 100644 Binary files a/demo/gif/sculpt.gif and b/demo/gif/sculpt.gif differ diff --git a/demo/gif/sculpt.xcf b/demo/gif/sculpt.xcf index f204118..68a68f3 100644 Binary files a/demo/gif/sculpt.xcf and b/demo/gif/sculpt.xcf differ diff --git a/demo/gif/sketch.mp4 b/demo/gif/sketch.mp4 new file mode 100644 index 0000000..7994f54 Binary files /dev/null and b/demo/gif/sketch.mp4 differ diff --git a/demo/gif/sketch.xcf b/demo/gif/sketch.xcf index 96e3f64..77e77aa 100644 Binary files a/demo/gif/sketch.xcf and b/demo/gif/sketch.xcf differ diff --git a/demo/user-guide.md b/demo/user-guide.md index dba4bcf..01a8aaf 100644 --- a/demo/user-guide.md +++ b/demo/user-guide.md @@ -1,5 +1,24 @@ +const basicWorkflowTS = [ + 10, 'Sketching on a plane', + 10, 'Extruding a sketch to a solid', + 10, 'Sketch on a face of a solid', + 10, 'Peforming boolean operation between solids', +] + +const editWorkflowTS = [ + 10, 'opening a file from disk', + 10, 'editing an existing sketch', + 10, 'accepting the edit and exiting', +] + +const exportTS = [ + 10, 'selecting a body for export', + 10, 'initiate export', + 10, 'loading exported stl into 3dprint slicer', + 10, 'result', +] diff --git a/dist/extrude.png b/dist/extrude.png index 601e727..8ba4e7b 100644 Binary files a/dist/extrude.png and b/dist/extrude.png differ diff --git a/dist/sculpt.gif b/dist/sculpt.gif index 4222c0e..f9a36f9 100644 Binary files a/dist/sculpt.gif and b/dist/sculpt.gif differ diff --git a/dist/sketch.mp4 b/dist/sketch.mp4 new file mode 100644 index 0000000..dcbe602 Binary files /dev/null and b/dist/sketch.mp4 differ diff --git a/dist/sketch.png b/dist/sketch.png index 1664316..c93e54d 100644 Binary files a/dist/sketch.png and b/dist/sketch.png differ diff --git a/src/react/clip.jsx b/src/react/clip.jsx index 5bdb963..627eb40 100644 --- a/src/react/clip.jsx +++ b/src/react/clip.jsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect, useRef, useCallback, useReducer } from "react" +import React from "react" import { MdCancel } from 'react-icons/md' @@ -12,7 +12,6 @@ export const Clip = ({ setClip, clip }) => { width = Math.min(width * 0.9, 1024) const top = (window.innerHeight - (width / 1.6) - 32) / 2 - // console.log(width, width/1.6, window.innerHeight, top) return (