Giter Club home page Giter Club logo

tseasycanvas's Introduction

TsEasyCanvas

Dessins de graphiques dans canvas HTML en TypeScript.

Projet ayant pour but d'expérimenter TypeScript.

Conversion du canvas utilisé dans le projet Golf (https://tp-ssh1.dep-informatique.u-psud.fr/~alherit/L3S5_projet_web/golf/index.php) en une simple api en TypeScript.

alt text

Compilation

tsc -p tsconfig.json

Utilisation

Lancer le .html dans votre navigateur.

Documentation en cours d'écriture.

Changelog :

Version Alpha 190826.1 :

  • Ajout de la possibilité de construire un Canvas avec une liste de couleurs perso.

  • Ajout d'accesseurs pour la liste de couleurs.

  • Système de "old ctx.font" retiré (désuet ici).

  • Changement de taille des chiffres du repère refonctionne.

  • L'affichage du texte canvas fonctionne.

  • Ajout de la méthode "origine_au_centre()" [-> Projet Golf].

  • Ajout de la fonction "init_canvas()" dans canvas.ts permettant d'initialiser le canvas,

    modification de l'element canvas dans l'index.html sans les events,

    ajout d'un fichier "examples.ts" pour mettre des exemples d'utilisations du canvas.

  • Ajout d'options dans la colonne option dans le index.html :

    Origine au milieu [-> Projet Golf]

    Afficher le cadrillage [-> Projet Golf]

    Afficher le repère [-> Projet Golf]

    Taille des chiffres sur les axes [-> Projet Golf]

    Pas appliqué aux graduations [-> Projet Golf]

    Taille des points [-> Projet Golf]

    Taille des lignes reliant les points [-> Projet Golf]

    Affichage texte

    Zoom

  • Ajout de vérifications dans set_zoom().

tseasycanvas's People

Contributors

alexlher avatar

Watchers

 avatar

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.