Skip to content

v3.2.0

Choose a tag to compare

@kdzwinel kdzwinel released this 03 Jun 17:11
· 67 commits to master since this release
cddadda

Fixes

  • support for Sketch 50 - fix text color issue ( #97 ) and shared text styles issue
  • scale SVG instead of resizing it (correctly calculates border radius)

before-after

  • fix issue where text inside of symbols was not editable sometimes
  • fix shadow obj spread miscalculation by @yakunins 👏
  • fix support for data: images by @simon360 👏
  • fix ability to set constraints on text layers by @burakukula 👏

Improvements

  • ID setter for SymbolMaster (public setId(id: string);)
  • ability to add additional custom data to every symbol, layer, etc.
public setUserInfo(key: string, value: any, scope?: string): void;
public getUserInfo(key: string, scope?: string): any;

this info can then be pulled by other Sketch plugin and used e.g. to prepare more useful handoff for developers (e.g. including names/code of symbols used by designer).

  • allow to explicitly set size of Symbol instead of always automatically calculating it based on its children
new SymbolMaster({x: 10, y: 10, width: 100, height: 200}); //symbol size explicitly set
new SymbolMaster({x: 10, y: 10}); //symbol size will be automatically calculated based on its children sizes