Giter VIP home page Giter VIP logo

Comments (4)

bgohsman avatar bgohsman commented on May 14, 2024

I believe I have figured out what I am doing wrong. Looking at only one demo, I assumed that SVGs were treated the same as any other image type and, as such, would use the same placeholder. However, looking through the code for populate(), I found that it looks for specific iconPlaceholders with the pattern {{*}}. Which tells me that I probably need double curly brackets on my placeholders for SVGs. I'll make that change later this afternoon and see how it goes.

from data-populator.

bgohsman avatar bgohsman commented on May 14, 2024

Using the example from demo.sketch [the icon on a ListItem in the "contacts" example] definitely behaved differently, but Sketch still crashed. I could see the rows get generated. I could see the icon placeholders but the actual SVG icon did not load into them. The view appeared to zoom out, almost as if I'd hit Command + 1. And then Sketch crashed. For the moment, I'm just going to use PNG versions of the icons and generate SVG assets for development.

If it helps, I am running Sketch 3.6.1 (26313) on El Capitan 10.11.3.

from data-populator.

nitrada avatar nitrada commented on May 14, 2024

Yeah, it's double brackets. But also, the SVG stuff is a bit shaky, since loading external SVGs is more complex than loading an image.

from data-populator.

bgohsman avatar bgohsman commented on May 14, 2024

That makes sense. For our purposes, it's working great just using PNG files. Then we export icons as SVG for the dev team. This has already saved hours as design iteration progresses. Being able to update a single object and then re-populate a layout [in my case, a table full of rows of data] has been a very good thing.

from data-populator.

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.