Giter VIP home page Giter VIP logo

descartesian's Introduction

Iha!

cover

  • 👯 I'm interested in computer theory, compilers and image processing
  • 📫 How to reach me: @jaovem, [email protected]
  • 😄 Pronouns: he/him

So long, and thanks for all the fish

descartesian's People

Contributors

dependabot[bot] avatar leviosar avatar

Watchers

 avatar

descartesian's Issues

Entrypoint doesn't export the Descartesian class

What's happening?

Right now, we only have 1 class to render the cartesian plane, it can be found on /src/assets/ts/Descartesian.ts or in /src/assets/js/Descartesian.js for transpiled version. The class is being exported by default.

We also have an entrypoint, located at /src/index.js who imports the class and later exports the same class like that:

import Descartesian from './js/Descartesian'
export default Descartesian

The problem is when you're importing the module on another application, using import Descartesian from 'descartesian' it returns e blank object {} instead of a constructor. I've spent a lot of time trying to figure out what's going on and testing with different methods of exporting and importing, but the problem continues. If anyone could give me a hand on this i would appreciate.

Right now, i'm using a little workaround to get the package running, instead of exporting on the entrypoint, i'm adding it to a global scope within the browser

if(window !== undefined){
    window.Descartesian = Descartesian
}

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.