utom / sketch-measure Goto Github PK
View Code? Open in Web Editor NEWMake it a fun to create spec for developers and teammates
Home Page: http://utom.design/measure
License: MIT License
Make it a fun to create spec for developers and teammates
Home Page: http://utom.design/measure
License: MIT License
Good Morning / Afternoon / Night (depending on your timezone :)!
As you probably know, Sketch will switch its scripting backend from JSTalk to CocoaScript in the upcoming version 3.0.2.
As a result of this change, some plugins will stop working unless you fix them.
Guess what? Yours seems to be one of them. But worry not! We've identified some of the issues, and the fixes are easy to do (so far :)
Please take a look at the info we've compiled at https://github.com/sketchplugins/cocoascript-migration/, make your changes, and test your scripts with the latest beta. Please don't hesitate to get in touch if you need more help!
Sorry about the extra work, and thank you for your contribution to the amazing Sketch Plugins community :)
Ale M — Bohemian Coding
Hi i'm glad that you guys are adding this function, very handy.
i understand this particular function is in beta, but thought i'd share a bug with you.
spec export function works fine but for some pages, it creates blank html documents.
i have tried to get rid of one elements at a time and re-exporting and found out that a type layer (paragraph, custom fonts) is causing the issue.
I have other custom fonts exporting ok so i'm not sure if the font is the issue?
Would be great if you guys could take a look at any bugs around font layer with spec export.
thanks for great work guys!
Thanks for the great plugin. I use it almost every day - this is such a time-saver!
I noticed that I'm always using different positions for labels, especially for object "Properties". So I came up with an idea how to make the whole process 50% faster and save even more time:
It would be great to implement it to every label positioning setting. What do you think?
When I run the plugin on an object with an inner shadow, and only want the Inner Shadow properties, it doesn't generate the "measures" (properties box).
The plugin does not work correctly in Sketch Beta 3.2 as there have been changes to addLayerOfType("rectangle"). Not sure how to fix it yet.
All of the measure tools will immediately crash sketch after I updated to the latest version.
Hi,
I was using Measure on a few Artboards just fine. For some reason now if I choose an object and GET SIZE, Sketch sits there, shows these black boxes over the screen, and then ultimately crashes.
I copied a few Artboards into a new Sketch file and it seems like 1 Artboard is causing the issues. If the Artboard is present in the file, it will crash Sketch. On that Artboard I deleted all the spec folders as well. It still crashes.
Thoughts?
Hello Utom,
Unfortunately, I've downloaded the measure plugin and it doesn't work on 3.3.3 :(
Take a look at this video proof: http://take.ms/NlU1c
Best!
Ivan
This would be valuable to create one set of designs with specs and be able to export them both with and without the specs.
Hi I also use https://github.com/marcosvidal/Sketch-Notebook
And the toggle feature is better then having to group all the measurement layers and unview.
Size and distance tools are positioned at (0, 0) on the artboard and lack the proper text label for me in Sketch 3.1.
I'd like to be able to assign, let's say a opaque rectangle used to show spacing, and actual 'Spacing' label as you would do now by selecting 2 objects and doing 3. Measure Spacing.
I love how your plugin differentiates 'Spacing' and 'Size' labels and style. But sometimes I want to create a rectangle to show spacing, select it, then go to 3. Measure spacing and have the label appear. This doesn't work tho, because the spacing only works if you select 2 objects.
If I create my spacing rectangle, and hit 2. Get size, that would get me the correct size with label. But the label would be the 'Size' type label, with a different color. I want that label to be the 'Spacing' type label. To get around this currently, I could just change the Size label style to match, but this isn't ideal.
I'm wondering if maybe by default, if you only select 1 object and hit 3. Measure Spacing, it would act just like 2. Get size, but would instead show the Spacing type label.
Does this make sense?
When working with Style guide it's often more useful for my developers when I just call out the style that's being used instead of defining the typeface, size, & color every time. I've built my template's styles and names to map perfectly to the CSS styles being used in the code so it would be a simple translation for them. I'd love to be able to select "Text Style" as one of the options under the properties window.
What do you think?
it would be great if the plugin would remember the unit chosen the last time when placing new measures. You can store some information in the defaults and read from them:
var defaults = [NSUserDefaults standardUserDefaults],
default_values = [NSMutableDictionary dictionary]
[default_values setObject:"bar" forKey:"foo"]
[defaults registerDefaults:default_values]
log([defaults objectForKey:"foo"])
tip from @bomberstudios
I'm using Sketch beta version of 8715. I found that this plugin not work under this sketch version. Hope you can fix this problem. Thanks!
Very often developers need to know the corner radius. It would be very helpful to include it into documentation made by sketch measure.
Thanks.
As a designer I'm not the most technically comfortable fiddle with deeply embedded application files of software.
Perhaps a single (or two) click install would be nice.
Thanks for the great plugin btw!
The latest update to Sketch (3.1) changed how multiple selection works in the application. Instead of having separate selection rectangles for each selected element, multiple selection is visualized by drawing a rectangle big enough to fit all the selected elements.
The selection rectangles is what the plugin seems to have operated on, which means it now fizzles and creates a "temp" object when in previous version it would have created a proper distance marker.
For some reason, the sizes tools broke as well — while it creates a properly placed overlayer, the other objects (size markers) are all undefined object in the top left of the canvas.
I love this plugin but am encountering an issue. I've already used it to annotate much of my design, however now when I go to get properties of something, nothing happens. I use ⌃ + ⇧ + 4 and the box for properties does not appear at all. It doesn't work when I go to the plugins menu rather than using the shortcuts either.
I'm attaching a gif showing that I'm able to get the size of an element but not the properties.
Currently the user input box only responds to a single value. If I want to generate margin measurements for 4 sides, I have to run the plugin 4 times.
It would be a huge time saver if I could simply input multiple values and have it generate multiple measurements at once.
Plugin is great. The only thing I cant figure out is how to measure the space between elements? Like in your example, the space between the graphic and the text.
Aw, what happened to the little arrows? I miss those where I can point them to each element. Any plans to bring them back somehow? It was great when you can decide which edge the arrow went too! :)
First: thanks a lot for this f*'$%& great plugin! Great work!
If you have some time, it would be nice, if you add a word count value to the output. I’ve found this solution on Github:
https://github.com/sketchplugins/plugin-requests/blob/master/Count%20Characters%20in%20Selection.sketchplugin
Perhaps this can help you out.
Regards Andreas
The label backgrounds no longer appear in the latest beta of Sketch (released today).. any chance it's an easy fix? I can't open my files any longer with the older version of sketch so am a bit stuck :)
It would be great to be able to update an existing measure, in case the size / font of a layer changes : )
BTW: congratulations for the plugin, this is really amazing.
If a label would be positioned off an artboard, it should be repositioned to be within the artboard instead.
Sorry, the plugin has never worked for me after several installs. I must be doing something wrong?
Love the shared styles for the labels, but am always changing the character spacing from the default value of 2 to 0.
Would be easier if 0 was the default.
Is there any update comming for the Beta 3.3?
I find myself manually grouping all measurement elements into a single layer that I can turn on and off.
It would be helpful if these elements were automatically put into a layer called something like "Specs" so their visibility can be easily controlled.
There's very little organization for the specs and they can (as sketch does) generate off the art boards. In addition, there's gotta be some recognition for the fact that designers create responsive layouts. Need the ability to generat percentages based on the artboard/specified dimensions. Thanks!
Right now the color settings (style guide) reset for each time I restart Sketch. Would be great if those could be saved in the general settings of the plugin.
Thanks.
Right now, the retina setting sets measurements in points, but labels everything as pixels. If they were truly pixels @2x, they would be twice those values.
The solution would be to either double the values and keep the pixel unit of measurement.
Or keep the values, and label everything in pts.
Was wondering why the current Line property comes up as a percentage? Think it would be better to have it display pixels, especially for CSS purposes.
What do you think?
In get property, when Font Typeface is selected, it no longer outputs the typeface info.
Would be nice to be able to create arbitrary labels anchored to layers for generic notes on design specs.
So right now, when something fails (e.g. trying to measure distance between a layer and a group etc), there is no indication as to why "nothing has happened", or what to do in order to rectify the situation.
On a more minor (but related) note, if you select no layers (or only 1 when measuring distance) and then invoke a measure command, you get a not so helpful dialog that says "Make sure you've selected layers that."
the plugin doesn't seem to work in Sketch 3.1 anymore. It usually puts out just "type something" in the top left corner of the artboard.
For the Measure Sizes command, I've noticed that you're using the frame
property of the layer to get its position and size, which does not return the actual boundary of a rotated layer. I think it would be great if you could get the values from absoluteRect
by default so it takes rotation into account.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.