Releases: html-sketchapp/html-sketchapp
Releases · html-sketchapp/html-sketchapp
v4.5.0 (13 Jan 2021)
v4.4.1
v4.4.0
Improvements
- ability to use Smart Layout in Symbols (https://www.sketch.com/docs/symbols/smart-layout/)
import {SMART_LAYOUT} from '@brainly/html-sketchapp/html2asketch/helpers/utils';
symbol.setGroupLayout(SMART_LAYOUT.HORIZONTALLY_CENTER);
- ability to apply floating numbers on lineHeight values (by @cy-park)
v4.3.0
Fixes
- Project dependency updates by @burakukula ⚒
- Absolutely positioned nodes are now correctly sorted by their
z-index
(by @jostermanAtPEW)
API Improvements
- ability to create layer styles by @daynekilheffer
const doc = new Document();
const boxNode = document.querySelector('box');
const boxLayer = nodeToSketchLayers(boxNode)[0];
boxLayer.setName('Box');
doc.addLayerStyle(boxLayer); // 🆕
- when using
asketch2sketch
directly, you can now specify not to clear the page and shared styles (by @KimDal-hyeong)
v4.2.0
Fixes
Fix color handling to work with Sketch v.53 ⚒
Improvements
- adding
isLocked
method useful to locking the layer, which will prevent it from being editable from the Overrides panel.
v4.1.0
Fixes
Project dependency updates ⚒
Improvements
setId
methods that can be used to create permanent object_IDs for keeping existing Sketch libraries in sync between updates added by @macintoshhelper 👌- Update issue templates thx to @kdzwinel 🤓
v4.0.1
Fixes
- Fix compatibility with Sketch version 52
- Fixed rendering of elements with fixed position by @KimDal-hyeong
- Update licence year to 2018 by @shnibl
v4.0.0
Breaking
Default blur of inner shadow was changed from 1px to 0 - #119 . If you were depending on the default value be sure to update all .addInnerShadow({…})
calls to .addInnerShadow({…, blur: 1})
.
Improvements
- new logo by Patrycja Rozmus ❤️
- support for
background-size
- #17
- super handy ‘Paste’ command in the plugin - #124 by @markdalgleish
- plugin is again part of the npm package - #121
- plugin now has an icon
- calling
.getSymbolInstance
no longer requires you to provide width and height and defaults to the MasterSymbol size - add
--file
flag to e2e test, so that it's easier to run single tests
Fixes
- plugin: if SVG layer or Text layer import fails it doesn't break the whole import (broken layers are skipped instead)
v3.3.1
v3.3.0
Improvements
- shadow DOM support for
nodeTreeToSketchGroup
by @calebdwilliams (#103) - (this means support for web components 🎉) - support for multiple shadows by @KimDal-hyeong (#110) - (this means you can go crazy with shadows 🎉)
API Improvements
- ability to set clipping mask by @mxmul and @burakukula
public setHasClippingMask(hasClippingMask: boolean): void;
- ability to set position of the
ShapeGroup
by @mxmul
public setPosition(position: Position): void;
- new type of object -
Bitmap
by @mxmul
export default class Bitmap extends Base {
constructor(props: BitmapProps);
}
Fixes
- removed unnecessary wrappers around SVG by @burakukula
- electron support of font-weight by @KimDal-hyeong
- fix broken support for "error images" by @kdzwinel (thanks @hlambert for reporting!)
- e2e tests splitted from one big file into N smaller ones, instructions improved, debugging improved by @kdzwinel
- contribution guidelines added by @kdzwinel