Skip to content

Resolve "Pen presets"

BytesNZ requested to merge 138-pen-presets into dev

Closes #138, #180, #158, #168, #182

Design sketch https://draw.first-draft.xyz/d/138-pen-presets/

  • add strokeCap setting for lines (#180)
  • add text options (#158)
  • add boolean form element type
  • add options form element type
  • fix spelling of thickness in pen settings
  • fix pressing escape after drawing to only clear selection
  • add custom element type for adding pen presets
  • ability to save pen options as pen preset, listed at top of pen options
  • ability to save text options as text preset, listed at top of text options
  • store presets for user in local storage
  • save presets to user on server #147
  • set color on picker to options color if using it #190
  • add setValues function (as will need a single call for undo/redo)
  • ability to set presets at server config level
  • ability set presets at user level #147
  • change styling on options so fit onto small screens
  • map none option to butt for strokeCap paper so can use none as the setting rather than butt
  • Ensure an undefined value passed to the form uses the default value (maybe with a setting) or uses '' for the text value #190
  • add option to unselect drawn object automatically on completion #186
  • add tests for rest of utils functions
  • ensure settings are updated when editing the content of a textbox and change the settings (eg size)
  • use preset as default settings for tool #190
  • Fix updating of text on pan/zoom (#168, #182)
Edited by BytesNZ

Merge request reports

Loading