Giter VIP home page Giter VIP logo

literallycanvas-core's Introduction

Literally Canvas v1.0.0

Literally Canvas is an extensible, open source (BSD-licensed), HTML5 drawing widget. Its only dependencies are React.js and its core lib which has been split up into a separate module literallycanvas-core.

Get help on our mailing list by sending an email to [email protected] or by visiting Google Groups.

Along with the CSS, JS, and image assets, this is all it takes:

<div class="my-drawing"></div>
<script>
  LC.init(document.getElementsByClassName('my-drawing')[0]);
</script>

State of the project

No one is maintaining this project. If you report a bug, the ticket will be a helpful place for discussion, but no one will fix it unless you submit a pull request. Feature requests will likewise be ignored.

Pull requests will be merged promptly if they are basically OK.

Developing

Setup: npm install --dev

Watching and serving: gulp dev

Browse to localhost:8080/demo and modify demo/index.html to test code in progress.

To generate a production-ready .js file, run gulp and pull out either lib/js/literallycanvas.js or lib/js/literallycanvas.min.js.

literallycanvas-core's People

Contributors

andiemmadavieswilcox avatar ankona avatar anx-ckreuzberger avatar arian avatar brent-clintel avatar campaul avatar darkdimius avatar emilsedgh avatar fluke avatar ggomez91 avatar idolize avatar irskep avatar jasoniangreen avatar joequant avatar konfiot avatar ksornberger avatar mandabrown avatar mbergal avatar paaskehare avatar planck-ho avatar sahibjotsaggu avatar semantic-release-bot avatar timenabletc 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

Watchers

 avatar  avatar

literallycanvas-core's Issues

Trailing Comma Compiler Issues

Suggestion: Remove trailing commas in arguments of functions / arguments lists.

Reason: This feature is only available in ES8/ES2017 and when compiling for a lower version it throws various hard to see errors. The default target in the tsconfig for Angular 8 is es6 so these errors come up when using this library with TypeScript in Angular (and I'm sure others).

ToDo: Remove trailing commas here:

Base.js line 39
canvasRenderer.js many - drop it into https://jshint.com to find
fontMetrics.js > line 114
svgRenderer many - use jsHint or something similar to find
Util.js line 143
TextRenderer line 102, 125, 144-155
LiterallyCanvas.js many - use JSHint
RenderSnapshotToImage.js line 53, 73
RenderSnapshotToSVG.js line 36, 43
Shapes.js many - use JSHint
Pan.js line 31
Polygon.js JSHint
SelectShape.js line 112, 123
Text.js JSHint

Opinion: There's nothing really gained by having them (?) but a lot lost by including them as far as compatibility when used with default settings in popular frameworks.

Investigate while(true)

@irskep While I think of it, what's the deal with this. I only noticed as I'm looking into some linting and it was not happy with this line.

I couldn't actually manage to get the code to run through this path yet.

How can this possibly work like this? I don't see anything async in there, so it can't be an event loop. Surely this would just instantly block everything?

bug: scrolling while painting

Scrolling won't be stopped during touch events because of a chrome change

[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080
touchMoveListener @ bindEvents.js?5d8d:64

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.