newsdev / ai2html

A script for Adobe Illustrator that converts your Illustrator artwork into an html page.
http://ai2html.org
Other
898 stars 146 forks source link

Specifying artboard custom breakpoint and responsiveness doesn't work #124

Closed kevinschaul closed 5 years ago

kevinschaul commented 5 years ago

With an artboard name of small:600:fixed, I would expect the artboard's custom breakpoint to be set at 600 and its responsiveness to be set to fixed. This does not seem to be working in my testing.

I think this is related to the parseObjectName() function, which seems to get hung up when the artboard name contains multiple colons:

parseObjectName('small:600:fixed') => { "600:fixed": true }

I would expect this to return { "width": 600, "fixed" true }.

mbloch commented 5 years ago

The way it works now is, you use a single colon followed by comma-delimited parameters. So you would go: small:600,fixed

kevinschaul commented 5 years ago

Ah, check that out! Thanks for the help.