[node] Add map.cancel()

Cancels an ongoing rendering.
This commit is contained in:
Thiago Marcos P. Santos
2017-04-10 20:34:39 +03:00
committed by Thiago Marcos P. Santos
parent d767545f72
commit 51ebb96b1d
5 changed files with 167 additions and 11 deletions

View File

@@ -41,6 +41,7 @@ public:
static void Loaded(const Nan::FunctionCallbackInfo<v8::Value>&);
static void Render(const Nan::FunctionCallbackInfo<v8::Value>&);
static void Release(const Nan::FunctionCallbackInfo<v8::Value>&);
static void Cancel(const Nan::FunctionCallbackInfo<v8::Value>&);
static void AddClass(const Nan::FunctionCallbackInfo<v8::Value>&);
static void AddSource(const Nan::FunctionCallbackInfo<v8::Value>&);
static void AddLayer(const Nan::FunctionCallbackInfo<v8::Value>&);
@@ -61,6 +62,7 @@ public:
void renderFinished();
void release();
void cancel();
static RenderOptions ParseOptions(v8::Local<v8::Object>);