hecht-software / psd-to-html-exporter Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/psd-to-html-exporter
Automatically exported from code.google.com/p/psd-to-html-exporter
IE9 CSS absolute positioning is falling apart. Why not to improve script for
using relative positions or javascript hacks?
Original issue reported on code.google.com by [email protected]
on 31 Jul 2013 at 7:11
I modified the outLayer expression to apply replacement to spaces also.
I added \s before ] in regexp
var outLayer = {
left: layer.bounds[0].value,
top: layer.bounds[1].value,
width: layer.bounds[2].value - layer.bounds[0].value,
height: layer.bounds[3].value - layer.bounds[1].value,
name: layer.name.replace(/[:\/\\*\?\"\<\>\|\s]/g, "-"),
style: "",
content: null
};
Original issue reported on code.google.com by [email protected]
on 31 Jul 2013 at 6:42
Got no experience with code.google.com, but I believe I found a fix for the
isVisible todo / bug in the script, so posting it here. The problem is, the
script exports all (even invisible) layers and groups. In the script the
visibility detection doesn't work so it's set to true for all layers. To export
only visible ones, you need to fix:
for(var i = 1; i <= layers.length; ++i) {
index = layers.length - i;
layer = layers[index];
mLayer = layers[index]; <---- this line
change it to:
mLayer = mLayers[index];
Then in renderLayer, change the uncommented //#TODO line to:
var isVisible = mLayer.visible;
And delete the isVisible = true; below. That should fix the issue and export
only visible layers.
Original issue reported on code.google.com by [email protected]
on 21 Sep 2012 at 7:28
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.