Skip to content

Releases: digirati-co-uk/canvas-panel

v0.2.0

02 May 15:40
Compare
Choose a tag to compare
  • Fixes /lib bundle that was breaking imports.
  • Dependency updates

v0.1.2

25 Jan 10:03
Compare
Choose a tag to compare

Bug fix release

  • Fixes SNYK-JS-FLATMAPSTREAM-72637 critical issue (#362)
  • Range slide regressions after dependency update (#352)
  • Thumbnail list component - alpha (#370)
  • fixed the broken examples caused by the DLCS account flush (#387)
  • Removed IDs on SVG icons (#379)
  • Passthrough editable annotation props (#383)
  • Fix for scroll bug (#385)
  • Updated manifesto (#380)
  • Fix for editable annotation selection (#390)
  • Fixed range highlight spacing (#388)
  • Fixed slideshow fullscreen height (#409)
  • Changed ssh github link to https for manifesto fork (#420)
  • Various dev-dependency updates

v0.1.0

12 Nov 11:29
Compare
Choose a tag to compare

This release contains a few new plugins, some stability with the core components and a milestone with our developer stories. This release updates all dependencies to their latest versions, with the exception of Lerna (development only). If you are using peer dependencies anywhere, like React, please check that they are compatible. This library is tested with the latest version of React, which as of release is [email protected]

New packages

New core features

  • Resizable annotation that allows you to create an annotation, resize it and move it on a canvas. A core component migrated from our Annotation Studio project. New demos of this will be available soon.
  • Range navigation provider allows you to use a range and highlighting annotations to create an alternative order through your content. This falls back to the order of the sequence or manifest order, so can be used with user input.
  • Responsive is a utility component for targeting different devices with different UI components. You can swap out whole trees or just single components. Note: this targets true devices, not screen sizes.
  • OpenSeadragonViewport - you can now subscribe to many more events from OSD controlled by Canvas panel core. These include: onConstrain, onUnconstrain, onDragStart, onDragStop. The component will also pass down panning boolean to children components if the image is panning. These are timed correctly so that you can control the UI of OSD before it renders. This makes for some fine-grained control over the UI and experience. This is demoed in the mobile version of the slideshow.
  • Static image viewer can now accept a className for styling. This component is still very basic and will require extra work to make it a full-fat viewing alternative to OSD, with support for annotations planned.
  • Exposed new utility for parsing annotations selectors/targets into x, y, w, h and uri. parseSelectorTarget(target)

Fixes

  • Current canvas in the canvas provider can now be either an index or a string ID of a canvas
  • LocaleString now supports presentation 2 and 3
  • OpenSeadragon can now queue up events if the viewer is not in a ready state. This allows you to set viewport bounds before the OSD has had time to render.
  • Zoom in and out on OSD now respects that size of the image and the constraints, so you cannot zoom in or out further than the OSD configuration.
  • NaN is no longer passed as height to Static Image Viewer
  • Viewport component now updates when you pass in a new canvas (previously you would have to set a key)

Breaking changes (core)

  • FullScreen component now passes a ref attribute in its render props. This should attach to the element you want to fullscreen. It will not work (but will post a console message) without it.
  • Full page viewport - the behaviour of this has changed, you may need to change the sizing or CSS around this component. See changes here in the render method.
  • Passing 0 to a viewer event now is immediate, instead of default (300ms). To get this default you now have to pass null or undefined. Some internal components relied on this behaviour.
  • Sized Viewport - this now defaults to 100% height if you do not pass in a height. Before it would default to auto and would result in some buggy behaviour when trying to measure the available room to render.
  • Node version required is now v8.12.x