yqlu / sliceformstudio Goto Github PK
View Code? Open in Web Editor NEWAn app to design and generate paper sliceform artwork.
License: MIT License
An app to design and generate paper sliceform artwork.
License: MIT License
When joining shapes, there could be a permissible threshold for the distance so that the shapes would be joined even if the edges were not exactly overlapping but close enough (within that threshold)
This would really help with 3D / spherical sliceforms
Bouncing a strip off a joined edge where there is no compatible pattern across the interface still produces a slit at the boundary instead of a crease.
From the few times I've encountered this, it seems to happen when tile interfaces are incompatible and strips terminate at tile boundaries.
Need to first find a repro.
and possibly other non-Chrome browsers.
Right now strip colors reset every time the user goes back to tile view or plays with extension length, which is a bit unnecessary.
When toggling between multiple tiles with custom patterns, or between multiple superimposed patterns on the same tile
Right now the strip traces through all or none of a tile.
Cropping will allow creation of pieces like https://www.flickr.com/photos/limitedcake/4919989572 where a quarter or a half of a tile is used in the boundary.
Cannot reproduce reliably, but sometimes the drag handler for custom pattern handles can't find the tile the handle belongs to and goes berserk.
var dragPatternHandleEdit = d3.behavior.drag()
.on("dragstart", function(d, i) {
updateUIForCustomTemplate(this.parentNode.__data__, false);
})
.on("drag", function(d, i) {
d.transform = num.translateBy(d.transform, d3.event.dx, d3.event.dy);
d3.select(this).attr("transform", num.getTransform);
var tile = this.parentNode.parentNode.__data__;
The last line is the offending line. Somehow the DOM gets out of sync and detaches the circle handle from the original <g>
?
It would be really nice to serialize designs into json files that could be saved to disk, instead of living in memory and not persisting beyond the current browser session.
Translate things like "width factor" and "strip height" to real, useful units.
It should appear only when a tile with the infer pattern property is selected.
Hi YQ,
I've been having some bugs with the app on Google Chrome (Version 44.0.2403.155 (64-bit)) when running on Ubuntu 14.04. Sometimes I drag a shape from the sidebar to the main view and a replacement doesn't appear. To get the replacement to appear, I just keep clicking around until another shows up. There's no set number of clicks I have to do.
Actual logs from JS console in Chrome (but they kind of suck):
https://gist.github.com/ynasser/83e24f0b0b9f50dbf742
Screenshot of the JS console error output:
Yomna
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.