Commit graph

232 commits

Author SHA1 Message Date
0cb18092ee feat: magic wand tool 2025-01-19 13:22:54 +00:00
fb90ae5f26 feat: hold alt with lasso tool to remove blocks from selection 2025-01-19 12:50:22 +00:00
fdabe89dd5 feat: add blockmatic icon and color to menubar 2025-01-18 23:09:32 +00:00
89d8a93964 fix: rectangle select negative dragging for x and y 2025-01-18 22:50:47 +00:00
5b05a8a95c feat: radius in selection tools 2025-01-18 22:45:34 +00:00
e0d25bb222 feat: lasso tool 2025-01-18 22:36:03 +00:00
4ca631d4d2 fix: remove adjacent lines in selection 2025-01-18 22:35:43 +00:00
19663353c8 fix: update edit menu to commit 527e29c4 2025-01-18 22:02:24 +00:00
527e29c448 refactor: use coordinate array for selection
allows upcoming feature for users to select non-rectangular blocks
2025-01-18 21:59:42 +00:00
2037ad8722 fix: use useRef() for oldTool instead of useState() 2025-01-18 21:54:35 +00:00
dcf4cea0c4 fix: use alphafilter on grid 2025-01-17 23:00:14 +00:00
feb82f2b17 feat: edit menu - cut and clear selection 2025-01-17 22:04:34 +00:00
5b8a859f60 feat: press key "delete" to remove blocks in selection 2025-01-17 22:03:55 +00:00
fdcd73c748 refactor: move "move" tool code to onToolUse() 2025-01-17 13:25:03 +00:00
3c40a51d42 fix: better implementation of ae9f8500 2025-01-17 13:25:03 +00:00
ae9f8500e7 fix: limit placing blocks to selection 2025-01-15 22:19:36 +00:00
603e3537db fix: remove trail on move tool
todo: fix overlapping blocks
2025-01-15 21:46:55 +00:00
630d122e2e feat: functionality for move tool
need to work on removing the trail of blocks
2025-01-14 20:12:29 +00:00
776ff73bf1 feat: add bare-bones cursor and rectangle select tool
they do not currently move blocks
2025-01-14 18:02:42 +00:00
f4ca910d4c refactor: remove image context 2025-01-12 21:07:59 +00:00
aa58b31269 feat: add text to index page under "See the difference" heading and other changes 2025-01-12 20:45:24 +00:00
8a5182fa13 fix: change scale for solid textures and clean up 2025-01-12 14:25:59 +00:00
0104ea6712 feat: add sign, footer to index page and refactor 2025-01-11 23:48:44 +00:00
d078bae747 feat: open schematic (.schem)
todo: fix exporting .schem
2025-01-11 20:55:17 +00:00
b48d691573 fix: missing id property in save schem dialog 2025-01-11 19:36:07 +00:00
0c0251426b feat: unsaved changes alert
might make it not show up if user has saved or not edited/done anything
2025-01-10 23:12:00 +00:00
e5ee9c81a9 fix: convert id array to single string in block data 2025-01-10 21:22:55 +00:00
2500a00e21 fix: replace file.bytes() with file.arrayBuffer() 2025-01-10 21:06:54 +00:00
612d519068 feat: open schematic (.litematic)
known bug: blobs of air blocks in some schematics
2025-01-10 21:01:28 +00:00
trafficlunar
0c22cef780 fix: add key to open image dialog block selector 2025-01-10 20:05:09 +00:00
trafficlunar
9e534ac92c fix: change default cursor on canvas to crosshair 2025-01-10 20:03:58 +00:00
trafficlunar
46648d92da refactor: fix spelling mistakes 2025-01-07 20:08:39 +00:00
trafficlunar
26fb017d2d fix: remove duplicate blocks in pallete in litematic export 2025-01-07 19:40:11 +00:00
trafficlunar
9a8c74071a feat: block properties for .schem files
warning: .schem files are extremely buggy
2025-01-05 21:56:20 +00:00
trafficlunar
37be502e1a feat: export as .schem
todo: block properties
todo: fix bug with air blocks
2025-01-04 22:51:15 +00:00
trafficlunar
2df5496b46 fix: add theme icon to index page 2025-01-02 20:59:42 +00:00
trafficlunar
8a43d9978b feat: add hover effect to image and change image based on theme 2025-01-02 20:59:23 +00:00
trafficlunar
84666baa6c chore: add copyright notice under image comparison 2025-01-02 20:48:49 +00:00
trafficlunar
e73ab06319 feat: add image comparison to index page 2025-01-01 19:36:02 +00:00
trafficlunar
6892f0b9ca fix: remove context menu on canvas 2024-12-31 20:35:09 +00:00
trafficlunar
acfd638d2c feat: resizable tool settings window 2024-12-31 19:39:52 +00:00
trafficlunar
c8cccd8bf7 fix: change height warning depending on version 2024-12-30 20:40:42 +00:00
trafficlunar
258f1d332a fix: reimplement missing texture 2024-12-29 23:27:16 +00:00
trafficlunar
f401ef3cfa fix: 68ca27e2 - missing file from commit 2024-12-29 19:59:42 +00:00
trafficlunar
f90efe15b6 fix: remove unused imports 2024-12-29 19:42:01 +00:00
trafficlunar
0bfe70809d feat: use programmer art textures when on versions 1.13 and below 2024-12-29 19:40:24 +00:00
trafficlunar
dca9e43e99 fix: remove blockData variable in Blocks.tsx 2024-12-28 21:49:49 +00:00
trafficlunar
b395f9d00c fix: use fileName for the download file name in save image dialog 2024-12-28 21:47:19 +00:00
trafficlunar
6996c9a310 feat: part 2 of redesign of open image dialog 2024-12-28 21:46:52 +00:00
trafficlunar
a7e5dfd3d6 feat: set version dialog 2024-12-28 21:07:12 +00:00
trafficlunar
cf83d2fc7c fix: height issues in open image dialog 2024-12-28 20:35:13 +00:00
trafficlunar
25f519074a feat: part 1 of redesign of open image dialog 2024-12-28 20:21:35 +00:00
trafficlunar
c1ef155867 refactor: bunch of tool settings changes 2024-12-28 17:35:29 +00:00
trafficlunar
5804853395 fix: add air block and fix transparency on images 2024-12-28 16:57:50 +00:00
trafficlunar
5c856d55c4 fix: change aspect ratio calculations (again) 2024-12-28 16:34:22 +00:00
trafficlunar
602b9b201d fix: 1 pixel off in selected block component 2024-12-27 22:55:11 +00:00
trafficlunar
1721d08cf3 feat: blocks replacer 2024-12-27 22:52:01 +00:00
trafficlunar
0f3df546c2 feat: exporting to image 2024-12-27 22:15:07 +00:00
trafficlunar
19e0330c19 fix: exporting to .litematic errors 2024-12-27 22:10:45 +00:00
trafficlunar
d6473ba930 fix: change aspect ratio calculations in OpenImage dialog 2024-12-27 21:42:30 +00:00
trafficlunar
e4719200d3 fix: update data to 1.21.4 2024-12-27 21:42:30 +00:00
trafficlunar
a5bea3b585 fix: change colors based on which color scheme 2024-12-26 23:32:25 +00:00
trafficlunar
99bfd58c49 feat: toggle tool settings 2024-12-26 22:14:57 +00:00
trafficlunar
ab88691838 feat: color picker 2024-12-26 20:01:42 +00:00
trafficlunar
6ddcd1bbdf fix: findBlockFromRgb() 2024-12-26 20:00:35 +00:00
trafficlunar
abd869bf0a feat: eyedropper tool 2024-12-26 19:21:58 +00:00
trafficlunar
7803275267 feat: tool radius 2024-12-24 20:43:03 +00:00
trafficlunar
933b287f9a fix: use pixi stage for selected block component 2024-12-24 20:12:40 +00:00
trafficlunar
c9d1b8b44a feat: block selector 2024-12-24 20:12:25 +00:00
trafficlunar
78b762a361 refactor: move missing texture into context 2024-12-24 20:12:03 +00:00
trafficlunar
e862e5754b feat: rendering for block selector 2024-12-24 17:44:22 +00:00
trafficlunar
1acc50012f fix: fill on blockmatic text svg 2024-12-24 17:43:50 +00:00
trafficlunar
e3ae0de165 fix: broken selected block component 2024-12-24 17:41:43 +00:00
trafficlunar
bea25fc115 refactor: convert missing texture into a data url 2024-12-23 13:29:16 +00:00
trafficlunar
2772577a7b fix: make textures solid color at smaller scales 2024-12-23 13:19:27 +00:00
trafficlunar
ab3d36257e fix: add block properties 2024-12-22 21:18:09 +00:00
trafficlunar
41ab349e43 feat: add loading indicator 2024-12-22 21:17:43 +00:00
trafficlunar
efd32a830b fix: remove average_colors.json 2024-12-22 16:08:12 +00:00
trafficlunar
3e00029466 fix: saving as .litematic file includes properties 2024-12-21 23:42:55 +00:00
trafficlunar
5629a77a7e fix: cursor information show block name instead of texture name 2024-12-21 23:42:55 +00:00
trafficlunar
94e560a60d fix: update spritesheet and data 2024-12-21 16:54:07 +00:00
trafficlunar
09cdd58963 feat: github link in app top right corner 2024-12-20 23:29:46 +00:00
trafficlunar
b769978c90 chore: add shadcn-ui/scroll-area 2024-12-20 23:07:26 +00:00
trafficlunar
56111a99cb feat: set scale dialog 2024-12-20 23:06:54 +00:00
trafficlunar
1cd970367e fix: add cancel button to dialogs 2024-12-20 22:56:06 +00:00
trafficlunar
15e10334dc fix: infinity and NaN errors when no blocks are existant 2024-12-20 22:49:23 +00:00
trafficlunar
38bf1cd85c feat: clear all blocks button 2024-12-20 22:46:14 +00:00
trafficlunar
d37574b90f fix: add more properties to canvas context 2024-12-20 22:45:54 +00:00
trafficlunar
3019db6f06 fix: change height warning to 384 from 320 2024-12-20 22:15:28 +00:00
trafficlunar
560ca4e429 feat: exporting to .litematic
this took like 2 days

todo:
- fix other blocks
- block properties
2024-12-20 22:02:27 +00:00
trafficlunar
b8f55b401f refactor: move canvasSize and blocks to context 2024-12-20 22:01:03 +00:00
trafficlunar
afc53f48a2 feat: add selected block indicator 2024-12-18 21:22:26 +00:00
trafficlunar
a2f03bbaf0 feat: add tooltips to toolbar 2024-12-18 21:20:57 +00:00
trafficlunar
e7fd155c50 refactor: remove word Context from file names in context folder 2024-12-17 20:47:18 +00:00
trafficlunar
0321afa65f fix: reimplement view culling (5def8fb1) 2024-12-17 20:43:22 +00:00
trafficlunar
ec1afe39e4 fix: tiles limit 2024-12-17 20:42:31 +00:00
trafficlunar
f359555d1a fix: add .gif and .svg to dropzone accepted files 2024-12-17 19:17:54 +00:00
trafficlunar
61a1b4f148 fix: replace with tilemap 2024-12-17 19:17:13 +00:00
trafficlunar
c38307a127 fix: show missing texture on error 2024-12-15 14:31:32 +00:00
trafficlunar
5def8fb126 fix: view culling 2024-12-15 14:19:46 +00:00
trafficlunar
340271f14b fix: cursor being set wrong 2024-12-15 14:19:39 +00:00
trafficlunar
57064e71c7 feat: zoom tool 2024-12-15 13:46:28 +00:00
trafficlunar
ceb87c2088 refactor: move components into folders 2024-12-15 13:45:53 +00:00
trafficlunar
1dbb126b90 feat: keybinds to enable/toggle tools 2024-12-14 23:41:48 +00:00
trafficlunar
d9690eb619 fix: reimplement changing cursor based on tool 2024-12-14 23:41:34 +00:00
trafficlunar
2da5ba7af3 fix: replace blockmatic text with svg 2024-12-14 23:11:20 +00:00
trafficlunar
0a8c5f43d7 fix: make minimum zoom 10% from 25% 2024-12-14 23:00:45 +00:00
trafficlunar
bebf8aaba4 feat: open images 2024-12-14 22:57:50 +00:00
trafficlunar
98e6354a6e feat: design open image dialog 2024-12-14 22:38:22 +00:00
trafficlunar
370ec76c9b feat: add dialogs to menubar
can't put dialogs inside menubar components so we import each dialog
dynamically
2024-12-14 22:38:22 +00:00
trafficlunar
c4c7986a71 fix: center canvas on zoom slider change 2024-12-14 20:18:26 +00:00
trafficlunar
f89fe702e9 fix: zooming on canvas setting cursor to corner of block 2024-12-14 20:11:51 +00:00
trafficlunar
8fdf63724d feat: add homepage 2024-12-14 19:30:13 +00:00
trafficlunar
d7eee0d2ea feat: add canvas border setting 2024-12-13 22:45:01 +00:00
trafficlunar
30beead56c feat: add grid 2024-12-13 22:31:03 +00:00
trafficlunar
f2b3910432 refactor: split menubar into multiple components 2024-12-13 22:30:46 +00:00
trafficlunar
adae559d01 fix: reimplement zooming to mouse position 2024-12-13 17:10:50 +00:00
trafficlunar
c0df9e0816 feat: add canvas information component
shows canvas size, scale, and a slider to change the scale
2024-12-13 17:09:33 +00:00
trafficlunar
f0770860d9 fix: allow slider to be vertical 2024-12-13 17:07:55 +00:00
trafficlunar
03958b3262 chore: add shadcn-ui/slider component 2024-12-13 16:44:29 +00:00
trafficlunar
de06203d31 refactor: rewrite and organize project
still need to add other features from before rewrite
2024-12-12 22:38:53 +00:00
trafficlunar
63d81a45f2 fix: use spritesheets instead of loading every image individually 2024-12-07 16:45:04 +00:00
trafficlunar
a75ef6b09a feat: add default blocks on new project 2024-12-06 15:56:22 +00:00
trafficlunar
5ba53ac805 fix: add alpha channel
will probably make this toggleable due to differences in images
2024-12-06 15:50:11 +00:00
trafficlunar
b30ba187e9 chore: pixi.js rewrite 2024-12-06 15:45:58 +00:00
trafficlunar
f0445c208b feat: add toolbar 2024-12-05 21:17:46 +00:00
trafficlunar
c836c26a05 feat: add information of cursor into corner 2024-12-05 20:57:33 +00:00
trafficlunar
ecc5c1b6ea feat: add very slow image to blocks implementation 2024-12-04 20:35:50 +00:00
trafficlunar
f0b0f306e4 fix: preload all block images 2024-12-04 20:00:33 +00:00
trafficlunar
e1b3f3a091 feat: add cursor onto tiles 2024-12-04 18:26:03 +00:00
trafficlunar
98b901ca75 feat: add block tiles 2024-12-04 18:25:44 +00:00
trafficlunar
a536253511 feat: add dark and light mode 2024-12-03 20:26:14 +00:00