Entry points specific to Vector Graphics Effect plugins

##renderEditingCanvasPreview(canvas, sourceShapes, transformMatrix, env)

Render a preview of the effect in the host application's editing UI.

The canvas parameter is a Canvas object similar to the HTML5 Canvas API. (See renderIcon() discussion elsewhere.)

getIOSLinkedDataSlotsByPropertyName()

Create properties to the class interface and write needed code to update the values from data slots.

Example:

this.getIOSLinkedDataSlotsByPropertyName = function() {
  var map = {};
  if (this._data.dataSlotName) {
    map['position'] = this._data.dataSlotName;
  }
  return map;
}

getIOSImports()

Write additional imports to the implementation of the generated class.

Example:

this.getIOSImports = function() {
  return [
    '"mylib.h"'
  ];
}

writeIOSDrawRectMethod(className, transformStr, staticPaths, width, height, exporter)

Example:

this.writeIOSDrawRectMethod = function (className, transformStr, pathsInitCode, baseW, baseH, exporter) {
  return ""
    + "- (void)drawRect:(CGRect)dirtyRect\n"
    + "{\n"
    + "    // custom drawing code\n"
    + "}\n"
    + "\n"
    + "// additional methods\n";
}

getAndroidLinkedDataSlotsBySetterMethodName()

Write needed code to update the values from data slots.

Example:

this.getAndroidLinkedDataSlotsBySetterMethodName = function() {
  var map = {};
  if (this._data.dataSlotName) {
    map['setPosition'] = this._data.dataSlotName;
  }
  return map;
}

getAndroidImports()

Write additional imports to the implementation of the generated class.

Example:

this.getAndroidImports = function() {
  return [
    "android.app.Activity"
  ];
}

writeAndroidOnDrawMethod(className, staticPaths, canvasWidth, canvasHeight, baseWidth, baseHeight, transformStr, exporter)

Example:

this.writeAndroidOnDrawMethod = function (className, pathsInitCode, canvasW, canvasH, baseW, baseH, transform, exporter) {
  return ""
    + "    @Override\n"
    + "    protected void onDraw(Canvas canvas) {\n"
    + "        // custom drawing code\n"
    + "    }\n"
    + "    \n"
    + "    // additional methods\n";
  }