Live data from Hacker News

Show HN: X-spreadsheet – A JavaScript canvas spreadsheet for web

github.com

11–20 of 108 posts

Re: Show HN: X-spreadsheet – A JavaScript canvas spreadsheet for web

#11

Fun concept, but the cell text is blurry to the point of being a distraction for me, unfortunately. Is this a side effect of rendering to a canvas?

Probably you're using dense screen (with pixelratio > 1), like Apple's retina. You can support it in HTML canvas, but author didn't.

Re: Show HN: X-spreadsheet – A JavaScript canvas spreadsheet for web

#12
post #9
post #3

X Spread Sheet XSS probably not the best abbreviation

I have literally never seen spreadsheet abbreviated as SS. Spreadsheet is one word. Your comment comes off as trying too hard to be negative. Try some actual constructive feedback why don't ya?

He was possibly referring to the XSS "acronym" that the author of the library uses both in the code and in the example. https://github.com/myliang/x-spreadsheet/search?q=xss

Re: Show HN: X-spreadsheet – A JavaScript canvas spreadsheet for web

#13
post #2

Nice! Would be interested in how this compares to e.g. handsontable[1]. What do you think of audreyt's ethercalc[2] myliang? [1] https://github.com/handsontable/handsontable [2] https://github.com/audreyt/ethercalc

1 canvas performance is higher than dom rendering 2 easy to write code

Re: Show HN: X-spreadsheet – A JavaScript canvas spreadsheet for web

#14

This strongly goes against the best practices for Canvas: https://www.w3.org/TR/2dcontext/#best-practices

Yes, but it may be worth effort. See for example this editor: http://evanw.github.io/sky/ and paste there even tens of thousands long text. It will work super smooth, like Sublime Text does. If only browsers provided low level APIs for text, font calculations and accessbility (what they already support internally), those kind of editors would make a lot of sense.

Re: Show HN: X-spreadsheet – A JavaScript canvas spreadsheet for web

#15
Nice work! The UI is really good. In my one of the projects, I was looking for excel kind of functionality - and would like to give it a try. But the biggest value IMO excel offers is ability to define formulas. Is there any plans of adding that functionality?

Re: Show HN: X-spreadsheet – A JavaScript canvas spreadsheet for web

#16
post #4

I think a description of why canvas was used would be nice in the README. My (probably naive) view is that browsers are pretty good at table-ish layouts so it’d be great to know why canvas was chosen.

1 canvas performance is higher than dom rendering

2 easy to write code

github.com/xspreadsheet used table

Re: Show HN: X-spreadsheet – A JavaScript canvas spreadsheet for web

#17
post #4

I think a description of why canvas was used would be nice in the README. My (probably naive) view is that browsers are pretty good at table-ish layouts so it’d be great to know why canvas was chosen.

> My (probably naive) view is that browsers are pretty good at table-ish layouts so it’d be great to know why canvas was chosen. The browser certainly makes this convenient... until you have more than a few thousand cells. At some point even just having the whole table loaded into the DOM is too layout and memory intensive (except on servo, sometimes). When you try, then, to work around those limitations, continuing…

good

Re: Show HN: X-spreadsheet – A JavaScript canvas spreadsheet for web

#18
AFAIK (and in evidence in this case) you can't use the normal "find in page" (control-f) when using canvas. Consistency in functions like find is one of the greatest things about the browser, this approach removes it. Probably (!) an implementation will add its own find, which may be better or worse, but as browsers are best thought of as universal information vehicles, it won't automatically fit into accessibility and extension schemes.

Re: Show HN: X-spreadsheet – A JavaScript canvas spreadsheet for web

#20
post #15

Nice work! The UI is really good. In my one of the projects, I was looking for excel kind of functionality - and would like to give it a try. But the biggest value IMO excel offers is ability to define formulas. Is there any plans of adding that functionality?

will add more formulas in the future
Post reply on HN