Giter Club home page Giter Club logo

Comments (4)

onsetsu avatar onsetsu commented on August 16, 2024

Babelsberg supports a standalone version that works without the lively-kernel environment. You should include prototype.js (Version 1.7.2.0), babelsberg.core.js and then any solver library you want to use, in that particular order.

One thing that might went wrong is that Chrome by default does not allow to access your local files (which is required for http requests by BabelsbergScript). You can allow the access by starting Chrome with the following flags:
--flag-switches-begin --allow-file-access-from-files --flag-switches-end

from babelsberg-js.

selir27 avatar selir27 commented on August 16, 2024

The example have worked after the remove of "text/babelsbergscript" from the code of layout.html.

from babelsberg-js.

timfel avatar timfel commented on August 16, 2024

@iliicho7 so you only wanted fabric.js, not the constraints provided by babelsberg?

from babelsberg-js.

selir27 avatar selir27 commented on August 16, 2024

My goal is to use babelsberg and fabric.js and to experiment with the constraints. If it is possible without http server.

Firstly, I tried the example online from babelsberg.github.io. It worked in Chrome and Internet Explorer for Windows Mobile. No success with Firefox.

Secondly, I downloaded the example locally on my computer. It did not worked with Chrome. I opened this issue in github.

Thirdly, I removed the mime type (type="text/babelsbergscript") from script tags pointing to source file layout.js in layout.html. (Sorry, I was not able to paste the whole line here, because the html tags are not visible in this comment system.)

After the removal, the example works and the constraints still work in Chrome. At least with Cassowary, when I change the angle of the blue rectangle, it can move only according to the restrictions. The other rectangles also follow the restrictions.
Anyway, if there is a problem, I will fall back to use a web server.

from babelsberg-js.

Related Issues (11)

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.