Coder Social home page Coder Social logo

presvg's People

Contributors

feklee avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

presvg's Issues

Style text scroll bar

Possibilities:

  • CSS (webkit): Take a look at Google mail's scroll bar in Chrome.
  • JavaScript: jScrollPane looks interesting.

In any case: The most important is that the scroll bar works smoothly in all supported browsers and on all devices, including tablets and perhaps mobile phones.

Make it possible to put SVG outside HTML file path

Currently, the SVG file has to have the same base URL as the HTML file into which it is included. See README.md.

Once the SVG file can be positioned anywhere:

  • Use new structure for demo:

    demo.html
    demo/presentation.ai
    demo/presentation.svg
    demo/texts/...
    demo/images/...
    
  • Update README.md.

Don't show duplicate frames in print view

Some presentations contain one frame several times, for example to repeatedly show "the big picture". However, in print mode, showing the same frame several times appears superfluous. Instead the following system could be used:

  • Attache numbers to frames.
  • Reference existing frames by number.

Sample printout structure:

+--(1)
|   |
+---+

  ↓

+--(2)
|   |
+---+

  ↓

 (1)

  ↓

+--(3)
|   |
+---+

Fix Opera, Firefox issue: Navigation fails after closing other window

How to replicate:

  1. Load the presentation.
  2. Open SVG window.
  3. Close SVG window.
  4. Click on the slider. It will jump to the selected position but then go all the way back to the previous position.

The problem is that in step 4, the script tries to also update the path position in the other window. This fails when calling $('#slider').slider('value', pathPos); for that window. Due to the error, script execution is stopped, and consequently for the current window not all code is executed.

Consider rendering animations using SMIL

SVG supports animation by a technology called SMIL. Using SMIL may be a good idea because then the SVG renderer knows explicitly that it should animate. Thereby the renderer is possibly able to display resource friendly and smooth animations.

Make it possible to zoom the virtual canvas

… for example by adding loupe buttons to the navigation bar at the bottom. Or create a navigation control like on Google Maps or Earth, which would allow panning, zooming, and rotating.

Preload videos

… so that they show up quicker. The probably means using the YouTube iframe API. Could mean more resource use, though.

Consider showing warning when connection to synchronized SVG view is lost

Scenario: User opens SVG view, which shows the presentation in a separate window. This view is synchronized with the default view: Any changes in the position within the presentation path are mirrored. However, if the user reloads either the default or the SVG view, then the connection between the windows is lost. They are not in sync anymore.

Make printouts nicer

Perhaps by default print each frame on one page. Example HTML code which I hacked into a specific presentation to achieve that effect:

<style type="text/css" media="print">
    html.printView div.frame, html.printView div.footnoteLinks {
        page-break-after: always;
        page-break-inside: avoid;
        margin-bottom: 20cm;
    }
</style>

Also, consider offering a remove-duplicates option.

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.