Comments (4)
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.
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.
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.
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)
- Local image path is not populating HOT 2
- Auto-height does not work for text or paragraphs HOT 3
- GraphQL Support HOT 1
- Image permissions/rights HOT 1
- Plugin doesn't work with replaced nested symbols HOT 1
- Json iterating per child element, rather than by parent element HOT 2
- JSON Reference for Devs. HOT 1
- Parse/Manipulate Data HOT 4
- Anyone please help calling this value in adobe xd through data populator plugin.
- Condition actions for #show/#hide not working HOT 3
- Bug- Data not populating in placeholders HOT 4
- Feature request- Auto populate option HOT 3
- Add support for populating multiple symbols nested inside another symbol HOT 1
- webp file in sketch JSON input crash HOT 2
- I have no option to load the local JSON file HOT 1
- Data populator major bugs that ruin the experience HOT 3
- Support Prefix & Suffix HOT 2
- Plugin does not seem to work. HOT 5
- Allow DataPopulator to populate artboard names HOT 1
- Bug: Populate with Json dialog box fail to appear (sketch plugin) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from data-populator.