wiederkehr / sketch-get-shape-area

Sketch plugin to calculate the area of a two-dimensional shape.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sketch Get Shape Area

Installation

  • Download the latest release of the plugin
  • Un-zip
  • Double-click on sketch-get-shape-area.sketchplugin

Development Guide

This plugin was created using skpm. For a detailed explanation on how things work, checkout the skpm Readme.

Usage

Install the dependencies

npm install

Once the installation is done, you can run some commands inside the project folder:

npm run build

To watch for changes:

npm run watch

Additionally, if you wish to run the plugin every time it is built:

npm run start

Debugging

To view the output of your console.log, you have a few different options:

  • Use the sketch-dev-tools
  • Run skpm log in your Terminal, with the optional -f argument (skpm log -f) which causes skpm log to not stop when the end of logs is reached, but rather to wait for additional data to be appended to the input

Publishing

skpm publish <bump>

(where bump can be patch, minor or major)

skpm publish will create a new release on your GitHub repository and create an appcast file in order for Sketch users to be notified of the update.

You will need to specify a repository in the package.json:

...
+ "repository" : {
+   "type": "git",
+   "url": "git+https://github.com/ORG/NAME.git"
+  }
...

About

Sketch plugin to calculate the area of a two-dimensional shape.


Languages

Language:JavaScript 100.0%