GithubHelp home page GithubHelp logo

lucaorio / sketch-resize Goto Github PK

View Code? Open in Web Editor NEW
63.0 63.0 2.0 3.83 MB

Resize (not scale) multiple layers at once via shortcut.

License: MIT License

JavaScript 31.20% HTML 19.35% CSS 49.46%
sketch sketch-app sketch-plugin sketch-plugins

sketch-resize's People

Contributors

lucaorio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

usermonk

sketch-resize's Issues

[Feature Request] Resize from current dimensions

This plugin would be really useful if it could use the object's current width or height as a wildcard for math operations.

Let's say I have 3 rectangles with the dimensions:
32x32, 64x32, 128x32.

I want to make them all 32 pixels wider. So in the width field:
Width = '%w+32'
and would get:
64x32, 96x32, 160x32.

Or, I could use the width value in the height field to get proportioned objects:
Height = '%w*9/16'
and would get:
32x18, 64x36, 128x72

That'd be awesome, right?

Add support for Top, Bottom, Left, Right anchors

Ciao Luca,awesome job with the plugin. Kudos to you.

I was wondering if it's possible in a next release to have the resizing anchoring point support.
Currently using the Sketch UI I'm able to set the anchor point from which the resizing action propagates by just adding one of the following t=Top, b= Bottom, l=:Left ,r=Right.

Add %w+8r will add 8 new pixels on the lefthand side of the object keeping the right point anchored (hence the R)

Is this something you'd consider?

Not working in Sketch 74.1

The plugin doesn't open when the resize command is given.

Sketch 74.1
macOS 11.5.1
sketch-resize 2.1.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.