Skip to content

Releases: html-sketchapp/html-sketchapp

v4.5.0 (13 Jan 2021)

13 Jan 10:58
0535720
Compare
Choose a tag to compare

Features

  • Handle adding swatches to document (#210)
    image

  • Linear gradient: support all angles (#208)
    image

Bug fixes

  • Change closest matching font algorithm (#212)

v4.4.1

30 Sep 08:39
Compare
Choose a tag to compare

Fixes

  • support for Sketch >= v64 - replaced unmaintained dep with fork (ffe2e1f)
  • support for external svg images on xcode 11+ (e37e62a)

v4.4.0

15 Nov 12:01
bb8f677
Compare
Choose a tag to compare

Improvements

import {SMART_LAYOUT} from '@brainly/html-sketchapp/html2asketch/helpers/utils';

symbol.setGroupLayout(SMART_LAYOUT.HORIZONTALLY_CENTER);

smart-layout

  • ability to apply floating numbers on lineHeight values (by @cy-park)

v4.3.0

23 Aug 15:34
4a1e9af
Compare
Choose a tag to compare

Fixes

  • Project dependency updates by @burakukula
  • Absolutely positioned nodes are now correctly sorted by their z-index (by @jostermanAtPEW)

API Improvements

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

02 Mar 07:27
3d04df2
Compare
Choose a tag to compare

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

17 Dec 20:41
0fb3b82
Compare
Choose a tag to compare

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

24 Oct 10:28
661cd27
Compare
Choose a tag to compare

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

26 Jul 21:39
Compare
Choose a tag to compare

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 ❤️
html-sketchapp
  • support for background-size - #17

before:

after:

  • 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

25 Jun 10:25
Compare
Choose a tag to compare

Fixes

  • Remove unwanted blur from one-side borders introduced in 3.3.0

Improvements

  • Add e2e test for one-side borders

v3.3.0

22 Jun 11:59
Compare
Choose a tag to compare

Improvements

  • basic background-position support by @mxmul (#109) (this means support for image sprites 🎉)

before:
amazon-before

after:
amazon-after

  • 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

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

before:

after:

screen shot 2018-06-22 at 13 40 36