News for hackers. Stuff that matters.
Re:RulersGuides.js - Photoshop-like rulers and guides by pfortuny on Thursday September 26, 2013 @06:35AM (#6449883)
If you add some kind of "snap to DOM" ability or whatever, so that the rulers align with "places" already "defined" by the DOM+CSS, it might even be better.

But it may not, obviosly.

Re:RulersGuides.js - Photoshop-like rulers and guides by leeoniya on Thursday September 26, 2013 @11:54AM (#6451587)
i actually have something like this already made (with guides and all) that i've been dragging my feet (no pun intended) to open source since it's a bit rough around the edges. i'll put it up in the next week or so. feel free to watch the repo in the likely case it'll not make it to the front page.

https://github.com/leeoniya/snapDOM.js

Re:RulersGuides.js - Photoshop-like rulers and guides by markrolich on Tuesday October 08, 2013 @02:05AM (#6513322)
I've added that as an experimental feature
Re:RulersGuides.js - Photoshop-like rulers and guides by awjr on Thursday September 26, 2013 @06:45AM (#6449906)
This brings back that sinking feeling when a client gets out the ruler and holds it up to their screen and then down to the printout the designer gave to them. shudder
Re:RulersGuides.js - Photoshop-like rulers and guides by thejosh on Thursday September 26, 2013 @07:55AM (#6450101)
"How many pixels in a centimetre?"
Re:RulersGuides.js - Photoshop-like rulers and guides by erikig on Thursday September 26, 2013 @12:48PM (#6451965)
You owe me a mouthful of hot chocolate buddy...
Re:RulersGuides.js - Photoshop-like rulers and guides by Kiro on Thursday September 26, 2013 @06:42AM (#6449900)
Am I the only one who thinks the vertical lines should be triggered when you click the top ruler and vice versa? Now it's the other way around and it feels counterintuitive.
Re:RulersGuides.js - Photoshop-like rulers and guides by akx on Thursday September 26, 2013 @07:50AM (#6450082)
It's the way Photoshop (and the rest of Adobe's suite) has done it for ages and it's intuitive in the sense that you're creating something of a copy of that ruler and its alignment.
Re:RulersGuides.js - Photoshop-like rulers and guides by lewispollard on Thursday September 26, 2013 @06:50AM (#6449924)
Thought the same, you're likely to click the point on the ruler that you want the guide to appear at.
Re:RulersGuides.js - Photoshop-like rulers and guides by addandsubtract on Thursday September 26, 2013 @07:11AM (#6449983)
Photoshop has been using the drag&drop method for the last 15 years, so I've gotten used to it. I can see your reason behind wanting to click a point on the scale, but adjusting the guide would require you to drag it orthogonal again anyway.
Re:RulersGuides.js - Photoshop-like rulers and guides by lewispollard on Thursday September 26, 2013 @07:57AM (#6450109)
Yeah, after working it out it did feel quite natural - just my first instinct was to click a point
Re:RulersGuides.js - Photoshop-like rulers and guides by HeyItsJames on Thursday September 26, 2013 @11:09AM (#6451266)
My coworker was looking for something like this a few days ago, and we gave up on our search. This is awesome. He's a front-end developer and nearly cried tears of joy when I showed this to him. Thank you from one small dev shop!
Re:RulersGuides.js - Photoshop-like rulers and guides by RokStdy on Thursday September 26, 2013 @12:24PM (#6451799)
This is really superb! I really like the functionality, this is very impressive.
Re:RulersGuides.js - Photoshop-like rulers and guides by gurujust1n on Thursday September 26, 2013 @11:00AM (#6451205)
I have been looking for something like this for a while.
Re:RulersGuides.js - Photoshop-like rulers and guides by cheeaun on Thursday September 26, 2013 @06:39AM (#6449893)
I think the rulers also need to be position:fixed
Re:RulersGuides.js - Photoshop-like rulers and guides by mrbeardy on Thursday September 26, 2013 @07:55AM (#6450100)
That wouldn't help when dealing with content that goes beyond the fold though.
Re:RulersGuides.js - Photoshop-like rulers and guides by diggan on Thursday September 26, 2013 @08:04AM (#6450128)
So the solution would be an option to have it fixed or not.
Re:RulersGuides.js - Photoshop-like rulers and guides by brandonbloom on Thursday September 26, 2013 @10:54AM (#6451151)
Most of the time, adding an option (particularly toggled modes) is a design failure. A much better solution would be to have the ruler be fixed to the border, but scroll along its axis.
Re:RulersGuides.js - Photoshop-like rulers and guides by diggan on Thursday September 26, 2013 @05:35PM (#6453795)
You're telling me it's a design failure to give a choice when you're not giving explanations about why fixed would be better. The word "better" isn't a reason.
Re:RulersGuides.js - Photoshop-like rulers and guides by JoelAnair on Thursday September 26, 2013 @09:14AM (#6450474)
neat.