3.2.1 (2026-01-23)
- target and container size initialization order should not affect base transform calculations (#190) (52afd14)
3.2.0 (2026-01-20)
- add update angle action (#189) (3e50924)
- allow a zoom init level which transforms the image relative to the center of the container (#186) (6536d80)
- make 1D side resize handle easier to use (#188) (138e5fb)
3.1.0 (2026-01-08)
3.0.0 (2025-11-21)
- getStyle, getReadOnly, renderLabel, getOverlayOpacity callback props on
RoiListhave changed their contract. - rename
allowRotatetodisplayRotationHandleonRoiList. The old option did not have a good name because it was only controlling the ability to rotate by showing and hiding the handle. There are other ways now to rotate an ROI.
- add commitRoiBoundaryStrategy configuration (#172) (b4a7c3a)
- add new rotate_selected mode (#171) (ad3578f)
- add option not to commit when updating through actions api (#168) (168dc05)
- add options to customize the number of grid lines in select ROIs (#170) (ba318fc)
- allow boundary strategy to be passed when updating rois programmatically (#177) (863c925)
2.0.1 (2025-11-03)
2.0.0 (2025-11-03)
- the API for lifecycle callbacks has changed, but still support the same features
1.5.0 (2024-06-04)
1.4.2 (2024-05-22)
1.4.1 (2024-05-18)
1.4.0 (2024-05-15)
1.3.0 (2024-05-10)
- add getRectanglePoints method to committed roi (ca58b1a)
1.2.0 (2024-04-09)
- pan with middle or right mouse (f4df4ed)
- prevent context menu from appearing when using right click (c4a45de)
1.1.0 (2024-03-22)
- export helper to help appropriately build image styles (98b4b6c)
1.0.1 (2024-03-21)
1.0.0 (2024-03-12)
- make round the default commit box strategy
0.16.1 (2024-03-06)
- add missing on rotate callback (c6e0595)
- make sure handler has a default color (a2791ce)
- make sure initial roi values get rounded and bounded (8c790f3)
- improve organization of stories (9ad7106)
- make sure committed rois are displayed even if roi coordinates are not integers (0025d06)
0.16.0 (2024-03-06)
0.15.0 (2024-03-04)
- the ROI coordinates are no longer floored to an integer.
x,y,widthandheightare all floating point numbers.RoiActiontype renamed toReactRoiActionto avoid name conflict.
- add getOverlayOpacity prop which allows to darken the container around the ROI (#120) (91615df)
- rotate ROIs (#122) (4e25be5)
0.14.0 (2024-02-02)
- action callback defined as props of the provider instead of the container. Action callbacks like onDrawFinish no longer responsible for making the action.
- set initial zoom level and add onAfterZoomChange callback (d819099)
0.13.1 (2024-02-01)
0.13.0 (2024-02-01)
- change mouse event to pointer for extended devices compatibility (732031e)
0.12.1 (2024-01-31)
- use strict types (5c1094c)
0.12.0 (2024-01-29)
- add getNewRoiData prop to initialize roi data on draw (fde6a87)
- on create, move and resize hooks (99c3782)
- preserve spaces in label (039084a)
0.11.0 (2024-01-23)
- allow custom svg to be produced which enables filling roi with custom patterns (c236822)
0.10.1 (2024-01-23)
- reset TargetImage style properties which can influence it's dimensions (92e5f3c)
0.10.0 (2024-01-23)
- introduce new hybrid mode
- add option to initial config to configure initial mode (1641606)
- introduce new hybrid mode (26f71ed)
- send the container size only when it has a non-zero size (aed07f9)
0.9.0 (2024-01-22)
- always use target coordinate system in rois and snap roi to pixel (#93)
0.8.1 (2024-01-10)
0.8.0 (2023-12-15)
0.7.0 (2023-12-08)
- there are no keyboard shortcuts anymore, those must be configured by the user
- add noUnselection prop to prevent unselect by clicking in the container outside of any ROI (b42f894)
- add selectRoi action (8fa6c81)
- initial selection of an ROI (597133f)
- remove react-kbs, add cancelAction aciton and add TargetImage component (#76) (ee07373)
0.6.1 (2023-12-01)
0.6.0 (2023-11-24)
- pan without the alt key (6647c62)
- correct leaking event listener (937d005)
- use correct cursor during action after releasing the alt key (5467213)
0.5.0 (2023-11-23)
- the initial configuration is now passed as a single prop to RoiProvider
- do not scale handlers with zoom level (6ce10ac)
- provide different initial rescaling strategies (4537913)
- show corner handles inside of ROI boundaries (f83ef2a)
0.4.0 (2023-11-22)
- roi label must be a string and cannot be a ReactNode anymore
- getStyle prop changed
- rename useRoiActions to useActions
- do not export useRois hook
- add className support (#44) (c51728f)
- add readOnly ROI (#58) (b22ec6a)
- add renderLabel prop for more flexibility (7856372)
- add zoom action (#60) (09f70b3)
- add ZoomLevel on provider (#62) (60f4e29)
- change corner appearance (99a15f8)
- customize resize handler color (97ab51b)
- fit the target inside of the container (9374eb9)
- improve default style of roi (5fdce8f)
- pass data about readonly and scale in getStyle callback (6d28ad1)
- improve interactions when using browser zoom (ecb14e5)
- make sure selected roi is rendered on top of other rois (#46) (6963ba3), closes #37
- prevent scrolling while zooming (3162404)
- rescale roi before updating (#42) (c7068d0)
- unselect roi when cancelling a draw action (a947c09)
- add scroll stories (556c9c2)
- add stories who update a label (67ff936)
- fix layout of zoom story (26c12ef)
0.3.0 (2023-09-08)
- hide content overflowing the container (c99f839)
- intiated roi with styled label (bdbdd3b)
0.2.0 (2023-08-28)
- add API implementation close #20 (#21)
0.1.0 (2023-07-06)
- add preview github action (ee66266)
- allow to work with images and div elements close #18 (#19) (3cf310f)
0.0.2 (2023-06-29)
- remove private (61c81cf)
- 0.0.1 (9bb690e)