npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@servicetitan/html-sketchapp

v4.2.7

Published

Servicetitan's HTML to Sketch (merged with upstream 4.1.0)

Downloads

42

Readme

html-sketchapp npm version npm downloads

HTML to Sketch export solution customized by Servicetitan's team. Converts each HTML element (node) into one ore more Sketch layers. Stores these layers in asketch.json files (almost-sketch format).

Changes list

Added custom attributes for HTML elements to provide control over internal features of Sketch:

  1. data-sketch-constraints="31" to set resizing constrants, more info here
  2. data-sketch-rotation="18" to control layer's rotation, similar to CSS's instruction transform: 'rotate(18deg) (https://github.com/DWilliames/paddy-sketch-plugin))
  3. data-sketch-textlabel="Placeholder" to add a label on closest text layer
  4. data-sketch-locked to lock layer
  5. data-sketch-ungroup to ungroup layers produced out of such element
  6. data-sketch-padding="10 16" to add padding around layer (utilizing Paddy plugin)
  7. data-sketch-spacing="10 20" to add some spacing between same level layers (utilizing Paddy plugin)

Added some other crucial changes:

  1. Ability to set constraint on text layers
  2. Support of SVG rendering
  3. Support of dashed borders
  4. Support of updatable shared text styles
  5. Support for shared colors with names in Sketch (aka color presets)

Fixes

  • Fix of shadow miscalculation (shadowObj.spread)
  • Fix unexpected line wrapping of texts in Sketch for on half of a pixel rounding
  • Ability to manually set _objectID with setObjectID() on any object
  • Added console.log() message with imported objects count on importing asketch.json in Sketch (asketch2sketch plugin)
  • Added warning for unsupported Sketch styles (different borders, outlines, rotations)

Install html-sketchapp

You can get Servicetitan's version of html-sketchapp from NPM.

npm i @servicetian/html-sketchapp