Giter Site home page Giter Site logo

sketch-flowexporter's Introduction

Flow Exporter Icon

Flow Exporter plugin for Sketch 49+

This plugin exports prototype flows (artboards you link together) to HTML, which you can then host using any web host (such as Firebase Hosting) and share with users, design stakeholders, etc.

Installation

Build instructions

This plugin was created using skpm. For a detailed explanation on how things work, checkout the skpm Readme.

sketch-flowexporter's People

Contributors

c5inco avatar lanfei avatar romannurik avatar skpm-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sketch-flowexporter's Issues

Hotspots inside symbol masters aren't exported

Can be reproduced by doing File > New from Template > Prototyping Tutorial in Sketch and exporting... the tab bar at the bottom isn't interactive in the exported prototype.

Should be easy-ish to fix at first glance..

Width fixed at 1440px

Hi,

I noticed that width is fixed at 1440px in index.html
Do you know if I can change it, and how ?

Regards
Fran6koS

How to set a page as the first page?

Hello,
I am really appreciate this plugin, and it is easy to use. But I don's know how to select a specific page as the first page?
For example, I am designing a website, which includes a login page and a home page. I exported the artboards from Sketch with Sketch-FlowExporter,and then, I opened the index file with browser. The website started from home page, not login page, which was not I expected.

How to set a specific page as the first page?

Hello,
I am really appreciate this plugin, and it is easy to use. But I don's know how to select a specific page as the first page?
For example, I am designing a website, which includes a login page and a home page. I exported the artboards from Sketch with Sketch-FlowExporter,and then, I opened the index file with browser. The website started from home page, not login page, which was not I expected.

How to select an artboard?

First of all, this is a great plugin. Very helpful. I have a couple of (probably dumb) questions:

How do you select a different artboard in the exported prototype site? I only see one of my prototype flows.

How do you specify which artboard to export?

Export starts on random artboard

Hi,

I am experiencing the behavior, that the plugin export starts with a "random" chosen artboard, not with the artboard that is the on top of the sketch layer list, neither with the one sorted by alphabet. Is this a bug or just a not defined behavior within your plugin?

Respect the "Maintain scroll position" property

If I'm not mistaken, the setting of the "Maintain scroll position after click" checkbox does not influence the scrolling behavior within the exported prototype. However, for certain use cases this could be very beneficial.

image

I imagine that each hotspot could have an additional property/flag, indicating if the "Maintain scroll position after click" flag is true or false. Based on that flag, the hotspot click event would send along the current scroll position or simply reset them to zero.

Nice to have: The user can choose in the "Set Prototype Export Options", if the setting for maintaining the scroll position should be preserved during the prototype export.

PS, this open pull request on the SketchAPI would probably be needed/make things simpler.

Exporting prototypes fail due to error when trying to analyze/flatten symbols

Sorry, for adding another one… 😅

Description
As of Sketch 80+ the export fails, due to some error in the /command-export-html.js. It seems like the plugin has some trouble analyzing the Sketch document.

Outcome

  • The export fails and no error or success message is displayed within Sketch.
  • The export destination (folder) only contains an image of the first screen. Indicating that the export failed already on the first screen/artboard.
  • Within the Sketch document, the element that lead to the failure of the export (e.g. an navigation header symbol), has been duplicated and detached from the original symbol.

Screenshots
Below I've added two screen grabs from the Sketch DevTools console:
image
image

How to export a specific page in a multi-page Sketch project?

Sorry if I'm missing something here, but I couldn't figure out how to export a specific page in a multi-page project.

For example, if I have a project with 5 pages and I want to export the 5th page, it seems like the only way to do that is by temporarily moving the 5th page into the 1st position (so that the exporter will find it first)?

Just wondering if there was an easier way to do this.

Not exporting multi-page Prototype

Open new file from Prototype Tutorial template. Create a new page, move Watch List and Player artboards to new page. Preview works fine but FlowExporter exports only one artboard, no others, no html.

fs.rmdirSync() doesn't delete non-empty directories

Hello there... I'm back on your GitHub trying to learn how to write sketch plugins... this repo has been the most useful (I'm trying to write a Sketch-to-VectorDrawable plugin).

Anyway... I have been reading your code and I noticed that there is a call to fs.rmdirSync() that doesn't seem to handle the case where the deleted directory is non-empty:

https://github.com/romannurik/Sketch-FlowExporter/blob/master/src/command-export-html.js#L114

Just wondering if that was intentional...

Plugin only exports png

I love the idea of this plugin. Unfortunately, I can't get it to work.

System: MacOS 10.13.3
Version: Sketch 49.1

Steps to replicate

  1. Add the prototyping links.
    Added link

  2. Test prototype in Sketch to make sure the flow works. (optional)

  3. Set a page as a starting point.
    Starting page

  4. Plugins > Flow Exporter > Export prototype to HTML

  5. Confirm folder for export

Result
Folder with pngs.

Example
Export Folder

Expected result
A HTML file that I can open in a browser.

Exporting fails for prototypes with deeply nested symbols

It seems that since updating to Sketch 75+ the export fails, if the prototype includes deeply nested/complex symbols (2+ levels of nesting). Below I've added a screen grab of the error I get in the console (using skpm log -f).

sketch-error

Flow Exporter not working in Sketch 53

When you try to export your Sketch prototype from Sketch 53+ it only exports the first page of the prototype and does not attempt to create the index.html or any links. I have tried changing names of the artboards, the export parameters for the artboards and even breaking the links into hotspots, but nothing seems to fix this issue. We love using this Plugin, but for now have to switch to using "Exporter" which is not as good.
Please fix this ASAP.
Thanks
Mark Bertinetti

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.