Code Monkey home page Code Monkey logo

Comments (12)

allmakebelieve avatar allmakebelieve commented on May 23, 2024

P.S. your plugin is by far the most useful Sketch plugin in existence. Thank you so much for developing it:)

from sketch-measure.

davidklaw avatar davidklaw commented on May 23, 2024

I'll second what @allmakebelieve. We're daily users of sketch-measure. I'll take a look right now as well.

from sketch-measure.

allmakebelieve avatar allmakebelieve commented on May 23, 2024

Thanks @davidklaw! Pls let me know if you have any luck :) Should have known better than to use a beta on production work haha..

from sketch-measure.

davidklaw avatar davidklaw commented on May 23, 2024

@allmakebelieve I've found the problem but not the solution :)

These shape layers do not contain the "style" value (fills, borders, etc) as they had previously. When it's building out the label it sets the text color, which works just fine because it's handled differently, and then pulls the layer styles to add a new fill style. This fails because there are no styles. You can see this happening by looking at it in the UI - you can't add a fill or border.

from sketch-measure.

davidklaw avatar davidklaw commented on May 23, 2024

I'm at a standstill. Since "style" is no longer an available property I'm not sure how to add or modify the fill.

from sketch-measure.

utom avatar utom commented on May 23, 2024

Yep~ I'm not sure how to fix in 3.2 beta

from sketch-measure.

davidklaw avatar davidklaw commented on May 23, 2024

@utom @allmakebelieve

layer = [layer embedInShapeGroup]; will add the style property. Tested and confirmed to be working for 3.2 but I haven't checked for backwards compatibility yet - it's late here 🌃 Will try to put in a PR tomorrow unless someone beats me to the punch.

from sketch-measure.

allmakebelieve avatar allmakebelieve commented on May 23, 2024

@davidklaw awesome find. thanks for looking into it.

from sketch-measure.

allmakebelieve avatar allmakebelieve commented on May 23, 2024

@davidklaw did you have any luck in the end? Sorry to bug you - just have a project this'd be really handy for if you had any luck fixing it. Thanks so much.

from sketch-measure.

davidklaw avatar davidklaw commented on May 23, 2024

@allmakebelieve Oh, yes. I should have been more specific. Until a fix is committed go to common.js and add this line inside the else if (isShape(layer)) { line around 80.

layer = [layer embedInShapeGroup];

from sketch-measure.

davidklaw avatar davidklaw commented on May 23, 2024

@allmakebelieve Apparently I wasn't telling the entire story but you can dig around in this fairly straightforward PR. It should fix the problem in the App Store and Beta versions.

@utom

from sketch-measure.

utom avatar utom commented on May 23, 2024

Thank you so much, I had fix it. How did you know this?

from sketch-measure.

Related Issues (20)

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.