You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a custom live app that utilizes images. I've got images uploading and rendering via the quip.apps.ImageRecord type (using its chooseFile() function). However, a number of questions:
How do I detect the size of the image? I tried imageRecord.getOriginalImageWidth() in the render() of my component, but that returns null.
Per the issue title, do I need to implement my own resizing functionality, or, is this provided by quip.apps.ui.Image? If so, how do I use this? In the documentation I see onEditingModeChanged and onResizingModeChanged, but how do I actually get into editing/resizing mode?
The text was updated successfully, but these errors were encountered:
I'm trying to create a custom live app that utilizes images. I've got images uploading and rendering via the
quip.apps.ImageRecord
type (using itschooseFile()
function). However, a number of questions:How do I detect the size of the image? I tried
imageRecord.getOriginalImageWidth()
in therender()
of my component, but that returns null.Per the issue title, do I need to implement my own resizing functionality, or, is this provided by
quip.apps.ui.Image
? If so, how do I use this? In the documentation I seeonEditingModeChanged
andonResizingModeChanged
, but how do I actually get into editing/resizing mode?The text was updated successfully, but these errors were encountered: