Comments (4)
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.
The example have worked after the remove of "text/babelsbergscript" from the code of layout.html.
from babelsberg-js.
@iliicho7 so you only wanted fabric.js, not the constraints provided by babelsberg?
from babelsberg-js.
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)
- DeltaBlue throws no error HOT 1
- verbose flag HOT 1
- stronger/weaker stays HOT 1
- Watch for function changes
- Source Code Transformation for Unified Notation
- unconstraint is not restoring the accessors properly
- Cassowary.js HOT 4
- Dynamic scope for functions
- bower package for babelsberg.mini.prototype.js HOT 1
- More info about bundled z3.js HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babelsberg-js.