HTML to Sketch export solution
Handle adding swatches to document (https://github.com/html-sketchapp/html-sketchapp/pull/210)
Linear gradient: support all angles (https://github.com/html-sketchapp/html-sketchapp/pull/208)
import {SMART_LAYOUT} from '@brainly/html-sketchapp/html2asketch/helpers/utils';
symbol.setGroupLayout(SMART_LAYOUT.HORIZONTALLY_CENTER);
z-index
(by @jostermanAtPEW)const doc = new Document();
const boxNode = document.querySelector('box');
const boxLayer = nodeToSketchLayers(boxNode)[0];
boxLayer.setName('Box');
doc.addLayerStyle(boxLayer); // π
asketch2sketch
directly, you can now specify not to clear the page and shared styles (by @KimDal-hyeong)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})
.
background-size
- #17before: after:
.getSymbolInstance
no longer requires you to provide width and height and defaults to the MasterSymbol size--file
flag to e2e test, so that it's easier to run single testsbefore:
after:
nodeTreeToSketchGroup
by @calebdwilliams (#103) - (this means support for web components π)public setHasClippingMask(hasClippingMask: boolean): void;
ShapeGroup
by @mxmulpublic setPosition(position: Position): void;
Bitmap
by @mxmulexport default class Bitmap extends Base {
constructor(props: BitmapProps);
}
before: after: