Skip to main content

Welcome to the change log of Polotno.#

0.34.4 - 2021-10-25#

  • Improve color picker performance
  • Fix issue scroll of workspace jumped after page deleting
  • Skip drop functions from sidepanel into locked object

0.34.3#

  • Rich text renderer fixes
  • New property hideSvgEffects for <Toolbar /> component

0.34.1#

  • Add justify align for text element
  • Fix crashes on some cases of JSON import
  • Experimental rich renderer for text element to support different style options inside one text element
import { unstable_useHtmlTextRender } from 'polotno/config';unstable_useHtmlTextRender(true);
store.activePage.addElement({  type: 'text',  text: 'Polotno is a <span style="color: red;">red</span> and <strong>bold</strong> framework!',  fontSize: 60,  width: 400,});

0.33.2#

  • Add pageBorderColor and activePageBorderColor props for <Workspace />
  • Open unsplash links on a new tab
  • Remove automatic element selection with element has selectable: false.
  • Add more translations

0.33.1 - 2021-09-30#

  • Fix <Workspace /> unmount fail

0.33.0 - 2021-09-29#

  • new experimental admin mode to work with the design store.setRole('admin'). This mode will add additional controls in the toolbar to change some attributes of elements.
  • New selectable property for all elements. When selectable: false element is "invisible" for user's clicks. "admin" role can still select such elements
  • New property alwaysOnTop for all elements
  • new property showInExport for all elements.
  • Hold ctrl or command button to disable snap on drag
  • New hotkeys ctrl+c, ctrl+v, ctrl+x, ctrl+a to work on the workspace
  • Fix store.loadJSON() function. It was not working correctly when an element has 0 in x or y attribute
  • Fix <Workspace /> auto-resize behavior. Now it is using ResizeObserver to adopt its size.
  • New prop backgroundColor for <Workspace /> component
  • Better toolbar for image element. Now it will get shorter if no space available.
  • Various bugs fixes

0.32.5 - 2021-09-20#

  • Fix export quality of some elements
  • Better PDF export
  • new method store.setElementsPixelRatio(ration)

0.32.3 - 2021-09-15#

  • Fix incorrect styles when text is under edit mode

0.32.2 - 2021-09-15#

  • Experimental support for Background Removing function
import { unstable_setRemoveBackgroundEnabled } from 'polotno/config';
unstable_setRemoveBackgroundEnabled(true);

0.31.7 - 2021-09-08#

  • Several quick fixes for rendering and opacity changes

0.31.6 - 2021-09-08#

Technical release with internal bugs fixes and optimizations

  • Optimizing memory usage
  • Fix Firefox crashes on some clipping cases
  • Fix Firefox rendering bugs

0.31.5 - 2021-09-02#

  • Fix <Workspace /> crashes when it is mounted inside too small area
  • Update all internal dependencies.
  • Change highlighting of active page

0.31.3 - 2021-08-30#

  • image element clipping with clipSrc property
  • Fixes for some side panel components API requests
  • Performance fixes
  • Better scrollbar for <Workspace /> component

0.30.1 - 2021-08-23#

  • Several hot fixes

0.30.0 - 2021-08-23#

  • Crash fixes for image and svg elements
  • API to control opened side panel.

0.29.0 - 2021-08-19#

0.28.0 - 2021-08-10#

  • New property cornerRadius for image elements
  • Better typescript support

0.27.0 - 2021-07-30#

  • Experimental masking for svg elements. Usage: svgElement.set({ maskSrc: imageURL }). For now you can't control cropping behavior of image. It will be automatically centered.
  • New global fonts API. For more info take a look into Fonts Tutorial.
  • You can keep previous undo history when you import json. Usage store.loadJSON(json, true).

0.26.2 - 2021-07-22#

  • Fix ColorPicker component crash when it has not access to store.

0.26.1 - 2021-07-20#

  • Hot fix for gradient crash

0.26.0 - 2021-07-20#

  • New gradient options for SVG element colors!
  • Color pickers now suggest colors to reuse from the store
  • Some mobile UX fixes
  • Fix "fit to background" resize bug when image has filters
  • getGoogleFontsListAPI and getGoogleFontImage API. Details in Configuration.
  • Fix weird behavior of filters inputs in the toolbar
  • Better dark theme support for color picker

0.25.7 - 2021-07-08#

  • Fix mobile issues
  • Autofix of bad data on import

0.25.5 - 2021-07-08#

  • Several style fixes.

0.25.3 - 2021-07-07#

  • UI fixes and internal updates. You will need to add additional styles into your webpage:
<link  href="https://unpkg.com/@blueprintjs/popover2@0.11.0/lib/css/blueprint-popover2.css"  rel="stylesheet"/>
  • Experimental mobile layout for Polotno! In order to make it work automatically, you need to use special containers. See UI components docs for samples.

0.24.6 - 2021-07-02#

  • Various hot fixes: better loading indicator, fix infinite templates loading, fix js error on object drop

0.24.3 - 2021-07-01#

  • Drop API for <ImagesGrid /> and side-panel. See (SidePanel Docs)[/docs/side-panel#how-to-use-imagesgrid--component].
  • Fix polotno crash on some data
  • Better templates loading on side panel

0.24.2 - 2021-06-25#

  • Better UI for size panel
  • Font loading fixes

0.24.1 - 2021-06-20#

  • Quick fix for possible crashes of <ImagesGrid /> components in the side panel

0.24.0 - 2021-06-18#

  • New Templates side panel
  • PDF export file size optimizations
  • Improve SVG elements quality
  • Better typescript support

0.23.0 - 2021-06-10#

  • Search in Background tab
  • Add a warning when a font is not loading

0.22.2 - 2021-06-03#

  • General bugs fixes

0.22.1 - 2021-06-02#

  • New UI for "text" tab with templates
  • Center and middle align options
  • Better snap on dragstart of unselected object

0.21.1 - 2021-05-28#

0.20.1 - 2021-05-27#

0.19.1 - 2021-05-25#

  • Scroll and UI hotfixes

0.19.0 - 2021-05-25#

0.18.10 - 2021-05-21#

  • Better crop behavior on image resize
  • Fix crop on resize of SVG elements
  • More basic shapes on elements tab
  • Fix font preview when you upload new font
  • Fix missing color replacement on svg elements
  • Add some warnings for better key usages

0.18.9 - 2021-05-07#

  • Fixed image loading when svg is used as source
  • Fixed whenLoaded detection for svg with color replaced
  • Fixed selection on duplicate

0.18.8 - 2021-05-03#

  • Disable automatic image reloading
  • Added a custom hook to overwrite image loading logic
  • Smaller bundle size

0.18.7 - 2021-04-29#

  • Fix cross origin images loading

0.18.6 - 2021-04-26#

  • Better crop logic on image resize
  • When image is failed to load, polotno will automatically retry to load it

0.18.5 - 2021-04-22#

  • Change font loading detector for the faster screen updating on the initial load

0.18.4 - 2021-04-22#

  • Fix incorrect export when an element is highlighted

0.18.3 - 2021-04-21#

  • Fix cursor jump on text edits
  • Fix error throw in "elements" side panel

0.18.2 - 2021-04-20#

  • Better default crop behavior on image element resize
  • Internal code optimizations

0.18.1 - 2021-04-09#

  • Quick fix for SVG colors detection

0.18.0 - 2021-04-09#

  • Simplify some semi-internal API usage
  • Updated "Elements" panel with default shapes
  • Show warning when <Workspace /> component can't detect its size
  • PDF base64 export
  • Better snap when several objects are selected
  • Internal updates of dependencies

0.17.0 - 2021-03-23#

  • Added fontWeight property for text elements. It can have any CSS fontWeight values
  • fontStyle property of text element is slightly changed. It can accept only values "normal" or "italic"
  • Added a warning when polotno can't export store to an image
  • Better font loading check
  • Some internal refactoring for better components reuse

0.16.0 - 2021-03-12#

  • Breaking. Fonts API is changed. Instead of name you should use fontFamily.
// old:store.addFont({ name: 'Troika', url: path });
// new:store.addFont({ fontFamily: 'Troika', url: path });
  • Fix performance issue for image elements. Polotno should consume a lot less CPU now.
  • Multi-page work fixes
  • Better zoom UX
  • Better color control for text placeholder
  • Fixes for upload button
  • jpg image export
  • Safer key validation flow

0.15.0 - 2021-03-03#

  • Zooming will try to keep canvas position
  • More options for lineHeight property for text element. Now it should support all CSS values
  • New border option for image and svg elements
  • Several bugs fixes

0.14.2 - 2021-03-01#

  • Fix crop button hide on image element click
  • Fix text blink on undo/redo
  • justify align is temporary removed from toolbar of text elements
  • added better loading indicators for image elements

0.14.1 - 2021-02-26#

  • New Magic Resize feature
  • Better touch support
  • Undo/redo fixes
  • Better reset zoom function

0.13.1 - 2021-02-12#

  • Jumping fixes for crop action
  • Fix undo/redo when several shapes are moved
  • Fix some console warnings

0.13.0 - 2021-02-10#

  • Fix resize when several shapes are selected
  • Highlight of elements on mouseover
  • Putting cursor on correct position when text element is selected

0.12.1 - 2021-02-09#

  • Better undo/redo management. The "no change recorded" bug is fixed.
  • Better crop UI on toolbar
  • custom attribute for page
  • some other small bugs fixes

0.12.0 - 2021-02-08#

  • placeholder attribute for text elements. Can be used to simulate placeholder attribute from DOM inputs.

0.11.3 - 2021-02-08#

  • Image crop fixes and fadeout effect for better UI

0.11.2 - 2021-02-04#

  • Fix undo/redo
  • Text element editing fixes
  • cancel/done crop buttons for image element
  • Better shapes selection

0.11.0 - 2021-02-02#

  • Text resize fixes
  • Image crop fixes
  • Better drop from side panel to canvas
  • Align elements fixes
  • Less click to enter "edit mode" for text element

0.10.4 - 2021-01-27#

  • You can drag elements from side panel
  • Better crop UX for image elements
  • Fixed some crashes and bugs

0.10.1 - 2021-01-24#

  • New crop behavior on double click on the image. Very excited about it.
  • image elements has also cropWidth and cropHeight properties.
  • Added Crop button to the top toolbar.

0.9.0 - 2021-01-23#

  • Possible breaking: image elements has no clipDirection any more.
  • Possible breaking: property svgSource for svg elements is renamed to src
  • Cropping abilities by double click on image
  • cropX and cropY properties for image elements. crop value should be from 0 to 1 and means % of original size
  • SVG images will keep ratio on resize
  • Various style fixes
  • hideOpacity option for <Toolbar />

0.8.0 - 2021-01-21#

  • Text element resizing fixes
  • letterSpacing and lineHeight attributes for text elements

0.7.3#

  • Some internal bugs fixes and stability improvements
  • Some fixes for module exports names

0.7.0#

  • Many UI fixes for the toolbar

0.6.5#

  • Much better undo/redo implementation
  • New element.clone() and page.clone() methods
  • New element.toJSON() and page.toJSON() methods
  • Added more hotkeys to <Workspace> component

0.6.2#

  • New filter - Sepia
  • New filter - Grayscale
  • Fixed ability to apply filters to images
  • Added ability to set custom attributes to elements with element.set({ custom: { metaInformation: 'my-data' }})

0.5.3#

  • General bugs fixes and stability improvements

0.5.0#

  • New API for manipulating side panel components
  • New API to change default Google Fonts list
  • New API to change default upload behavior
  • Performance and UI fixes for many side panel components

0.4.4#

  • Fix flip quality of SVG images
  • Slightly change toolbar icons
  • store.deletePages(ids) API
  • pdf export fixes
  • New button "fit image to background" in the toolbar
  • downloadButtonEnabled prop for toolbar component

0.4.3#

  • Reduced bundle size
  • Fixed "More" button on small screens when a text element is selected
  • New loading indicators are added

0.4.1#

  • "Elements" from side panel are real SVG files now
  • Fix "my fonts" add button to filter only font files
  • Animate adding new elements on the canvas

0.4.0#

  • Ability to add custom font file from side panel
  • new store.addFont({ name, url }), store.removeFont(name) and await store.loadFond(name) API.
  • Brand new "Elements" panel on sidebar with https://iconscout.com/ search

0.3.1#

  • Major upgrade for all internal dependencies.. polotno should be used with react@^17. It may not work with react@^16.
  • Sidebar UI - added ability to set custom sizes
  • New Filter - Simple shadows
  • Sidebar UI - fix scroll issues
  • Sidebar UI - background color fixes, ability to set any background

0.3.0#

  • New property for all elements opacity. Add opacity button to the toolbar
  • Added duplicate button to the toolbar
  • flipX and flipY options for image and svg elements
  • Added flip button to the toolbar
  • Added more align and layering options
  • General style fixes and improvements
  • Better font loading

0.2.2#

  • Bug fix - better text editing from the canvas
  • New sidebar panel - Upload!
  • Collapsible toolbar for text (better support for smaller screens)

0.2.0#

  • New feature - locking. element.set({ locked: true }). Locked elements can't be changed from the canvas by an end user.
  • New feature - stroke and strokeWidth for Text element.
  • Better support for exports of multi-page projects.
  • Bug fix - removing elements from the canvas by keyboard will work only on correct focus.
  • Fix the bug with incorrect page focusing.
  • Performance optimizations.
  • Better dark theme support.
  • Better text rendering and fonts load.

0.1.3#

  • Fixes for visual display of vector images

0.1.2#

  • Ready to use list of most popular canvas size
  • Infinite scroll for images component
  • Added more default fonts
  • Images from the side bar are inserted with the correct size
  • Add unsplash photos library