Commit Graph

24 Commits

Author SHA1 Message Date
Aaron van Geffen 33bc262f0a CropEditor: adopt a more Bootstrap-savvy form layout 2023-05-19 12:35:00 +02:00
Aaron van Geffen 8b0459fae4 CropEditor: refactor numeric control initialisation 2023-05-19 12:34:56 +02:00
Aaron van Geffen 5bb8c020bd EditAssetForm: replace widget class with generic content box 2023-03-11 14:31:44 +01:00
Aaron van Geffen 5c4a075231 Constrain aspect ratio conservation to image boundaries as well. 2020-12-30 13:26:31 +01:00
Aaron van Geffen 66a411973a Constrain crop proportions by default, with checkbox to disable. 2020-12-30 13:26:31 +01:00
Aaron van Geffen a83b938f8a Reposition crop boundary when window resizes. 2020-12-30 13:26:31 +01:00
Aaron van Geffen 5344378333 Crop editor: interpret 'cs' as centre-sliced crop.
At some point, I started using 'cs' instead of 'cc'. Let's just support both.
2020-12-30 13:26:31 +01:00
Aaron van Geffen 8147e2b97d Crop editor: do not allow selections starting outside image bounds. 2020-12-30 13:26:31 +01:00
Aaron van Geffen 5599ff8d9b Crop editor: use numeric input boxes with appropriate constraints. 2020-12-30 13:05:23 +01:00
Aaron van Geffen 93884e2e93 Fix initial slicing dimensions in CropEditor.setDefaultCrop.
Subtle bug. This has been in for years... :)
2020-12-30 13:05:22 +01:00
Aaron van Geffen 2a740d8cef Constrain boundary movement to image canvas. 2020-12-30 13:05:22 +01:00
Aaron van Geffen 5e0d4df2f7 Allow moving/dragging the crop boundary.
Currently unconstrained.
2020-12-30 13:05:22 +01:00
Aaron van Geffen e84c4f2b43 Constrain crop selection to image dimensions. 2020-12-30 13:05:22 +01:00
Aaron van Geffen 893d31af52 Proper dragging of the crop bounding rectangle/area. 2020-12-30 13:05:22 +01:00
Aaron van Geffen 5895f4faa6 Rewrite CropEditor.positionBoundary 2020-12-30 13:05:22 +01:00
Aaron van Geffen 8e7a09f3f3 Initial version of crop boundary dragging. 2020-12-30 13:05:22 +01:00
Aaron van Geffen 837c92db44 CropEditor: split setDefaultCrop from setInputValues and rename. 2020-12-30 13:05:22 +01:00
Aaron van Geffen c392105814 Refactor crop editor DOM functions. 2020-12-30 13:05:22 +01:00
Aaron van Geffen 9d95df81fe WIP: finally implement drag events. 2020-12-30 13:05:22 +01:00
Aaron van Geffen d4cc72304e Use flexbox for crop editor box sizing. 2020-12-30 13:05:21 +01:00
Aaron van Geffen 2c68b6a798 Improve crop editor styling. 2020-12-30 13:05:21 +01:00
Aaron van Geffen fd84e1c9f8 Refactor crop editor into a proper class. 2020-12-30 13:05:21 +01:00
Aaron van Geffen cda7f3115c Fix crop editor. 2017-11-09 17:00:36 +01:00
Aaron van Geffen ab0e4efbcb Initial commit.
This is to be the new HashRU website based on the Aaronweb.net/Kabuki CMS.
2017-11-09 17:00:22 +01:00