Barret Schloerke
1d0edd2ad0
Initialize brush dims for renderImage objects ( #2198 )
...
* wait for image to be loaded in browser before initializing handlers
reverts similar behavior in 3354a47e8a
* default the height and width to the image clientHeight and clientWidth
* use raw image clientWidth and clientHeight instead of container clientWidth and clientHeight
prevents being able to brush on non image areas
2018-09-26 13:29:42 -04:00
Barret Schloerke
3a0a6cdbbb
Add css and image locations to plot click and brush events ( #2183 )
2018-09-17 15:25:34 -04:00
Winston Chang
121bfcb984
Import old brush after image has loaded
2018-08-07 15:11:43 -05:00
Winston Chang
265de66946
Make sure not to have multiple reset event handlers
2018-08-07 14:51:23 -05:00
Winston Chang
79c5c9f95e
Add isnan() function for IE
2018-08-07 14:51:23 -05:00
Winston Chang
3354a47e8a
Add width/height to coordmap instead of using naturalWidth/Height
...
This eliminates the need to use an on load callback.
2018-08-07 14:51:23 -05:00
Winston Chang
a1e1416d7a
More consistent use of img to css conversion functions
2018-08-07 10:48:42 -05:00
Winston Chang
ec12caaeba
Include x and y pixelratio in coordinfo
2018-08-06 12:51:08 -05:00
Winston Chang
5bbf2aa57a
Use canonical CSS property name
...
Firefox doesn't support shorthand properties like "border-left", but instead
requires "border-left-width".
2018-08-06 12:51:08 -05:00
Winston Chang
84ad9997da
Reposition div when resized (without new image)
2018-08-06 12:51:08 -05:00
Winston Chang
9f6ce87443
Remove redundant isEquivalent function
2018-08-06 12:51:08 -05:00
Winston Chang
c366c10ae1
Initialize coordmap only after image loads
2018-08-06 12:51:07 -05:00
Winston Chang
950df1e25c
Add support for scaled images and brushing
2018-08-06 12:51:07 -05:00
Winston Chang
909bfa8c14
Allow plot interaction to handle scaled images
2018-08-06 12:51:07 -05:00
Joe Cheng
722e5fb5f7
Modify internal JS to use Shiny.setInputValue, {priority: "event"}
2018-04-18 12:05:18 -07:00
Winston Chang
7492db592b
Round brush coordinates to 14 digits. Fixes #1634
2017-03-31 10:42:43 -05:00
Winston Chang
2133b0f498
Use === in Javascript
2016-10-26 21:01:36 -05:00
Joe Cheng
360c1d5953
Add ability to reset brush with session$resetBrush/Shiny.resetBrush
2016-05-25 15:37:27 -07:00
Winston Chang
5331aa08a7
Fixes for eslint
2016-03-18 14:15:36 -05:00
Winston Chang
189f9589d4
Unset attributes in img that aren't present in new data
2016-02-09 16:02:39 -06:00
Winston Chang
6ab65e2031
Fix plot flickering on Safari and Firefox. Closes #776
...
Previously, a new img tag was added when a new plot was sent, but now it uses
the same img tag and changes the src attribute.
2016-02-09 11:08:25 -06:00
Winston Chang
2f25d25eec
Use setAttribute() function to set image attributes. Fixes #936
2016-01-06 15:03:18 -06:00
Joe Cheng
129714b044
Allow shared brush IDs
2015-09-09 12:12:47 -07:00
Winston Chang
6fc0bac106
Properly use hoverClip option
2015-05-13 11:42:18 -05:00
Winston Chang
2ce45eab06
Hovering: add option to send NULL when mouse is outside
2015-05-13 11:08:16 -05:00
Winston Chang
074c24aa10
Show brush only after mouse starts moving
2015-05-11 22:31:56 -05:00
Winston Chang
a2841f7cf2
Allow selectBrush to operate in just x or y direction
2015-05-01 11:28:43 -05:00
Winston Chang
5cd014f7e6
Fix restoring brush with new coordmap panel data format
2015-05-01 09:56:24 -05:00
Winston Chang
eae2b40898
Add nearPoints() function
2015-04-29 11:48:33 -05:00
Winston Chang
3f3c131737
Automatically find var names for brush selection
2015-04-27 17:04:07 -05:00
Winston Chang
2b227fcca5
Send variable mappings in coordmap
2015-04-27 15:22:43 -05:00
Winston Chang
8386404b25
Capture and display coordmap errors
2015-04-25 09:38:40 -04:00
Winston Chang
a093afb630
More informative comments
2015-04-23 11:53:31 -05:00
Winston Chang
85b2fc503d
Make brush div 1px larger
2015-04-20 15:06:00 -05:00
Winston Chang
854730f258
Fix restoring brush with facets in IE8/9
2015-04-17 12:15:38 -05:00
Winston Chang
9c4f73f314
Respect falsy opts for imageOutput
2015-04-16 23:43:20 -05:00
Winston Chang
e1fa491af7
Fix panel matching logic
2015-04-16 23:40:08 -05:00
Winston Chang
b909a3e05c
Allow brush resizing
2015-04-16 23:40:07 -05:00
Winston Chang
a47898a2c4
Fix min/max order for reversed scales
2015-04-16 23:40:07 -05:00
Winston Chang
a5b1f020ae
Simplify sendBrushInfo
2015-04-16 23:40:07 -05:00
Winston Chang
e9cd1bef43
Send brush data when reset
2015-04-16 23:40:07 -05:00
Winston Chang
7b17ce5de1
Fix brush import for reverse scales
2015-04-16 23:40:07 -05:00
Winston Chang
ffb1b06bf4
Use 'expand' parameter
2015-04-16 23:40:06 -05:00
Winston Chang
21e9ffec97
Cleaner coordmap initialization
2015-04-16 23:40:06 -05:00
Winston Chang
7cfaa2adfc
Move clipToBounds from coordmap to panel
2015-04-16 23:40:06 -05:00
Winston Chang
e9f78f6ace
Restore brush even when scales change
2015-04-16 23:40:06 -05:00
Winston Chang
4d074c6fa9
Fix log scaling
2015-04-16 23:40:06 -05:00
Winston Chang
0b3c2e198e
Add functions to coordmap object
2015-04-16 23:40:06 -05:00
Winston Chang
48cd7200cc
Partial implementation of scale/inv
2015-04-16 23:40:06 -05:00
Winston Chang
d925702b98
Fix height/width calculation of brush div
2015-04-16 23:40:06 -05:00