React Archer Versions Save

🏹 Draw arrows between React elements 🖋

v4.3.0

9 months ago

Features

v4.2.3

1 year ago

Features

  • Expose ArcherContainerRef type for TypeScript. You may now use the ArcherContainer ref properly with TypeScript.
const archerRef = useRef<ArcherContainerRef>(null)

return (
  <ArcherContainer ref={archerRef}>{children}</ArcherContainer>
)

v4.2.2

1 year ago

Bugfixes

v4.2.1

1 year ago

Bugfixes

v4.2.0

1 year ago

This release includes improvements in the code regarding the elements registration. It will fix bugs regarding this.

Please try this release if you had non refreshing elements issues 😊

Bugfixes

  • No issues to link here, but some refreshing/registration bugs are fixed by the refactorings that this release includes.

v4.1.0

1 year ago

Bugfixes

  • Fixes a long-standing issue #38

    • we now encode the arrow IDs so that they can be any string (no more restrictions with alphanumeric characters)
    • we don't use the whole URL to display the arrow marker. :warning: This breaks on some older Safari versions, but this will solve an issue for all browsers when your app has # in the URL.
  • If we fail to draw an arrow, we don't draw it to (0, 0) anymore. We simply don't draw it.

v4.0.1

1 year ago

Bugfixes

v4.0.0

1 year ago

Breaking changes

  • Dropped support of flow types. You may open a PR if you want to implement it with the new Typescript codebase (it's been dropped because the library was migrated from flow to typescript).

Changes

No new features. This is a technical upgrade, no added functionnalities.

What has been done:

  • migration to typescript
  • migration to react hooks instead of class components
  • lots of refactoring. Components were split up, lots of renaming and extracted methods for the sake of clarity. Some tests have been made more robust, too.

This will make contributions easier :blush: It might solve some bugs accidentally. It might also introduce new ones, do not hesitate to create issues if it does!

No rewriting of the drawing logic has been made, though. The library still has the same limitations of v3. Working on it will be easier starting from today, though :wink:

Bugfixes

  • Fix a typing problem with React 18 using typescript

v3.3.0

2 years ago

Features

v3.2.2

2 years ago

Fixes