From 4d10b9a31b3a7c94a281dc7dc8c139151ab0e278 Mon Sep 17 00:00:00 2001 From: Dave Jeffery Date: Tue, 4 Oct 2016 21:20:42 +0100 Subject: [PATCH 1/2] Docs: Correct image.getSize() type signature --- docs/api/native-image.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/api/native-image.md b/docs/api/native-image.md index 606697c319b..b7045035ac3 100644 --- a/docs/api/native-image.md +++ b/docs/api/native-image.md @@ -195,15 +195,17 @@ Notice that the returned pointer is a weak pointer to the underlying native image instead of a copy, so you _must_ ensure that the associated `nativeImage` instance is kept around. +[buffer]: https://nodejs.org/api/buffer.html#buffer_class_buffer + #### `image.isEmpty()` Returns `Boolean` - Whether the image is empty. #### `image.getSize()` -Returns `Integer[]` - The size of the image. - -[buffer]: https://nodejs.org/api/buffer.html#buffer_class_buffer +Returns `Object`: +* `width` Integer +* `height` Integer #### `image.setTemplateImage(option)` From 29b9fbcc9ad9c32115eed5f8cebed4e627e6ec6d Mon Sep 17 00:00:00 2001 From: Dave Jeffery Date: Tue, 4 Oct 2016 21:34:24 +0100 Subject: [PATCH 2/2] Docs: Move buffer link to end of file --- docs/api/native-image.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/native-image.md b/docs/api/native-image.md index b7045035ac3..e2785437c82 100644 --- a/docs/api/native-image.md +++ b/docs/api/native-image.md @@ -195,8 +195,6 @@ Notice that the returned pointer is a weak pointer to the underlying native image instead of a copy, so you _must_ ensure that the associated `nativeImage` instance is kept around. -[buffer]: https://nodejs.org/api/buffer.html#buffer_class_buffer - #### `image.isEmpty()` Returns `Boolean` - Whether the image is empty. @@ -216,3 +214,5 @@ Marks the image as a template image. #### `image.isTemplateImage()` Returns `Boolean` - Whether the image is a template image. + +[buffer]: https://nodejs.org/api/buffer.html#buffer_class_buffer