images to svg
This commit is contained in:
parent
a31e881856
commit
3ba28aa104
734 changed files with 11682 additions and 245 deletions
|
@ -13,7 +13,7 @@ When the page is scrolled to the top, so that the top/left corner of the window
|
|||
|
||||
Here's the picture, the left part is before the scroll, and the right part - after scrolling the page up:
|
||||
|
||||

|
||||

|
||||
|
||||
As the document moved up:
|
||||
- `pageY` - document-relative coordinate of the same point stayed the same, it's counted from the document top (now scrolled out).
|
||||
|
@ -60,7 +60,7 @@ If you scroll the page and repeat, you'll notice that as window-relative button
|
|||
|
||||
Here's the picture of `elem.getBoundingClientRect()` output:
|
||||
|
||||

|
||||

|
||||
|
||||
As you can see, `x/y` and `width/height` fully describe the rectangle. Derived properties can be easily calculated:
|
||||
- `left = x`
|
||||
|
@ -80,7 +80,7 @@ Technically it's possible for `width/height` to be negative, that's useful for
|
|||
|
||||
Here's a rectangle with negative `width` and `height` (e.g. `width=-200`, `height=-100`):
|
||||
|
||||

|
||||

|
||||
|
||||
The rectangle starts at its bottom-right corner and then spans left/up, as negative `width/height` lead it backwards by coordinates.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue