Commit graph

306 commits

Author SHA1 Message Date
Dennis Kobert
155518cfdb Disable dev tools by default 2023-03-05 11:37:17 +01:00
Keavon Chambers
49a0a57975 Merge branch 'asdf' into tauri-restructure-lite 2023-03-05 10:45:00 +01:00
Dennis Kobert
731d5fc1f6 Bump version of vite-plugin-wasm 2023-03-04 14:53:35 +01:00
Dennis Kobert
42f7d4e99e Exclude graphite-wasm from the optimizeDeps and switch back to target --bundler 2023-03-04 13:35:02 +01:00
Dennis Kobert
8e836d3043 Use target web 2023-03-04 12:00:58 +01:00
Keavon Chambers
e6a97fae63 Formatting 2023-03-03 21:27:47 -08:00
Dennis Kobert
9b0a5d7d83 Postpone first run until first file save 2023-03-04 01:10:08 +01:00
Dennis Kobert
bdea3ff46c Remove cd from cargo watch command 2023-03-04 01:05:38 +01:00
Dennis Kobert
53a32e50b8 Move vite-svg-loader to dev dependencies 2023-03-04 00:38:54 +01:00
Keavon Chambers
24bfd65617 Re-add hint in case build fails in dev 2023-03-03 15:35:39 -08:00
Dennis Kobert
30ef695c48 Change dev port to 8080 2023-03-04 00:31:51 +01:00
Dennis Kobert
f2e3373d69 Add wasm pack plugin 2023-03-04 00:14:43 +01:00
Keavon Chambers
7c7670e76f Merge commit '4ea3802df1' into asdf 2023-03-03 14:56:31 -08:00
Keavon Chambers
57b4fb2f60 Add npm start command to package.json 2023-03-03 14:56:08 -08:00
Dennis Kobert
73e7fff0a8 Build wasm once before starting the server 2023-03-03 23:52:04 +01:00
Keavon Chambers
a1d12b2382 Fix enlarged Graphite logo splash 2023-03-03 12:46:54 -08:00
Dennis Kobert
c9124a61c5 Replace fork with concurrently command 2023-03-03 20:00:05 +01:00
Keavon Chambers
0b3a9c02de Merge commit '6139e807d0' into tauri-restructure-lite 2023-03-03 14:28:56 +01:00
Keavon Chambers
6139e807d0 Fix graph scrolling bug from #1021
And replicate those changes to the Svelte version.
2023-03-03 02:28:52 -08:00
Dennis Kobert
104745cd41 Fix gpu support 2023-03-02 17:24:32 +01:00
Dennis Kobert
35021d0798 Don't watch frontend files when using tauri 2023-03-02 17:24:31 +01:00
Dennis Kobert
04d9f8638e Migrate vue code base to vite 2023-03-02 17:24:31 +01:00
Dennis Kobert
91e4038f3a Start migrating vue to use vite 2023-03-02 17:24:30 +01:00
Dennis Kobert
32dbe606f2 Don't watch frontend files when using tauri 2023-02-24 12:16:15 +01:00
Dennis Kobert
b74489d828 Migrate vue code base to vite 2023-02-24 12:16:14 +01:00
Dennis Kobert
7991488469 Start migrating vue to use vite 2023-02-24 12:16:14 +01:00
multisn8
7a52e50a94 Add 'Zoom with Scroll' input navigation scheme to preferences (#1021)
* Add use_scroll_as_zoom field to preference handler

* Add {Create,Delete}Mapping variants to message

* Revert "Add {Create,Delete}Mapping variants to message"

This reverts commit 0ba74754c9fb0c78d0b590c96e1d4fe2cfdd13e7.

* Revert "Add use_scroll_as_zoom field to preference handler"

This reverts commit d30f7c9edfa6d6e156939ca07f4db81f288975fd.

* Add basic scroll_as_zoom mapping

* Create overengineered mapping patch abstraction

* Add (for now passthrough) input layout manager

* Actually handle ModifyLayout messages (untested)

* Add backend preferences <-> layout manager comms

* Add scroll-as-zoom to actual preferences UI

* Rename LayoutManager -> KeyMapping

* Add Input section to preferences and title case

* Add scrollAsZoom frontend handling code (untested)

* Handle frontend <-> preferences comms

* (broken) Move scrollAsZoom persistence into state

* Fix scrollAsZoom having no effect on node graph

* Remove debugging helpers

* Fix confusion between horizontal and vertical

* Rename feature

* Move new message handler into folder

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
2023-02-24 07:18:04 +01:00
Dennis Kobert
63b9b670a1 Change tauri build directory back to ../dist (#1033) 2023-02-16 15:43:21 +01:00
Keavon Chambers
f0ad4c91d3 Replace "Edit" icon with final version 2023-02-12 20:02:15 -08:00
Keavon Chambers
33b5c0f5f4 Svelte: Fix FontInput component infinite loop 2023-02-12 01:01:40 -08:00
0HyperCube
1b0e1b9bdf Update Imaginate to output bitmap data to the graph via Image Frame node (#1001)
* Multiple node outputs

* Add new nodes

* gcore use std by default to allow for testing

* Allow multiple node outputs

* Multiple outputs to frontend

* Add ImageFrameNode to node registry

* Minor cleanup

* Basic transform implementation

* Add some logging to image encoding

* Fix ImageFrameNode

* Add transform input to Imaginate node (#1014)

* Add transform input to imaginate node

* Force the resolution to be edited with no transform

* Add transform to imaginate generation

* Fix compilation

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>

* Add labels to node outputs

* Fix seed; disable mask when transform is disconnected; add Imaginate tooltips

* Rename 'Input Multiple' node to 'Input'

* Code review

* Replicate to Svelte

* Show only the primary input chain in the Properties panel

---------

Co-authored-by: Dennis Kobert <dennis@kobert.dev>
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2023-02-11 08:56:31 +00:00
Keavon Chambers
d456640bb8 Fix regressions in previous PR 2023-02-09 11:53:14 -08:00
locriacyber
bf21cbf3ce Fix text overflow in text/radio buttons (#1004)
* [frontend] Clip button text, show ellipsis on overflow

* Fix CSS rules, replicate to Vue

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
2023-02-09 09:16:54 +00:00
Keavon Chambers
202b0ee6ed Remove Color struct from document-legacy (#1012) 2023-02-07 17:31:50 -08:00
0HyperCube
64e62699fc Replace the image layer type with an Image node (#948)
* Use builder pattern for widgets

* Arguments to new function

* Add node graph when dragging in image

* Fix duplicate import

* Skip processing under node graph frame if unused

* Reduce node graph rerenders

* DUPLICATE ALL frontend changes into other frontend

* DUPLICATE more changes to another frontend

* Code review

* Allow importing SVG files as bitmaps

Co-authored-by: Keavon Chambers <keavon@keavon.com>
2023-01-27 10:01:09 +00:00
Keavon Chambers
66e8325362 Update project readme and MSRV 2023-01-24 01:33:30 -08:00
Keavon Chambers
fb10e5194e Svelte: Fix calling DOM API functions on the actual elements 2023-01-13 17:17:38 -08:00
Keavon Chambers
bf1a3e3daf Clean up imports and warnings in Rust code 2023-01-13 12:45:14 -08:00
Keavon Chambers
5ca6b3fafa Fix build scripts so a failure returns a nonzero exit code 2023-01-02 22:04:13 -08:00
0HyperCube
df44e8d978 Fix dragging nodes (#936) 2023-01-02 14:38:43 +00:00
0HyperCube
2bcc3d3baf Improve history states (#932)
* Add some more history states

* Fix undo whilst drawing

* Paste image history

* Toggle output and preview history

* Code review nits

* Remove extra '{'

* Fix typo

* Fix about.toml

Co-authored-by: Keavon Chambers <keavon@keavon.com>
2023-01-01 22:02:44 +00:00
Dennis Kobert
79ad3e7908 Restructure GPU compilation execution pipeline (#903)
* Restructure gpu compilation execution pipeline

* Add compilation server/client infrastructure

* Add wgpu executor
2022-12-31 02:52:04 +01:00
mfish33
be32f7949f Ability to debounce inputs going to the backend (#913)
added debouncer to slow updates to the backend

Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-12-30 17:30:47 -05:00
0HyperCube
750ef06cba Add a 'Preserve Aspect Ratio' checkbox to Properties panel (#923)
* Add the link button

* Transform around pivot

* Remove log

* Fix tests

* Add a hacky two-line layout for the checkbox

Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-12-28 23:21:03 +00:00
0HyperCube
dbd6a032f7 Add a button to refresh the input (#926)
* Add a button to refresh the input

* Align left of refresh button

Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-12-28 21:02:03 +00:00
0HyperCube
c552edd525 Node 'Disable' and 'Preview' UX improvements (#918)
* Don't allow disabling input or output nodes

* Shortcuts to show and preview node

* Update preview tooltip and label

Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-12-28 19:38:35 +00:00
Keavon Chambers
0c9f457866 Rename some Imaginate parameters 2022-12-27 14:30:54 -08:00
0HyperCube
559c05f2a9 Save the layouts, even when in the welcome screen (#916) 2022-12-27 21:24:18 +00:00
0HyperCube
d742b05d3a Diff simple layout changes to avoid excessive DOM replacements (#910)
* Add UI diffs to rust

* Clean up some js

* Fix lints

* Fix test

* Remove one unnecessary keyword

* Rename to widget path

* Rename new_val to new_value

* Rename newVal to layoutGroup in createLayoutGroup

* Extract get_widget_path to a function

* Base skipping on the layout rather than the target

* Rename to ResendActiveWidget

* Switch info to trace

* Add a link to the documentation about Object.assign

* knitpick js changes

* Add more comments to diff functions

Co-authored-by: mfish33 <maxmfishernj@gmail.com>
2022-12-25 18:56:35 +00:00
0HyperCube
8d7e6c530e Add preview and disable buttons for nodes (#905)
* Add preview and disable button

* Fix tests

Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-12-25 10:28:18 +00:00