ldd / fantasy-map-generator Goto Github PK
View Code? Open in Web Editor NEWMinimal fantasy map generator
License: Other
Minimal fantasy map generator
License: Other
I'm a canvas noob - could you add an example to the readme showing how to create an SVG element that I could pass in to drawMap
?
I tried just tossing <svg id="map"></svg>
into my body, but passing the element in to drawMap
resulted in
Uncaught TypeError: svg.selectAll is not a function
at drawPaths (view.js:126)
at Object.drawMap (visualize.js:20)
at (index):16
which I'm pretty sure is the result of me not knowing what I'm doing.
If I import the web build in Chrome 56, terrain.min.js
throws an error:
Uncaught ReferenceError: Invalid left-hand side expression in postfix operation
If I comment out the webpack.optimize.UglifyJsPlugin
instantiation in webpack.web.config.js
, then terrain.min.js
doesn't throw any errors.
the README.md should have a link to the demo.
As shown here, and mentioned in the reddit thread
an SVG feGaussianBlur effect could eventually be added to the demo
See #1. Even if a fix is provided, uglify should be optional.
In order to fix this, I'll probably use a webpack env variable.
Right now npm contains the node build (main.js
) but not the web or web worker builds of the module. Are you assuming this module will be bundler-only? If so, you could drop the webpack scripts for the other builds to simplify things.
typing 2^10
should be an acceptable input for the number of points in the demo, make a map with 1024 points.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.