screenshot
Version two supplies better functionss and clipping tech.
Add extra methods to the Scene to capture screenshots of the canvas.
Meta Data
| dependencies | () |
| unused_keys | ('title',) |
| unknown_keys | ('files', 'categories') |
| files | ['', 'image-edge-detection.js', 'offscreen.js'] |
| categories | ['screenshot'] |
| filepath_exists | True |
| path | screenshot |
| filepath | screenshot.js |
| clean_files | ('image-edge-detection.js', 'offscreen.js') |
-
ClassDeclarationclass
Screenshot
extends Noneclass comments:files: image-edge-detection.js offscreen.js categories: screenshot --- Version two supplies better functionss and clipping tech. Add extra methods to the `Scene` to capture screenshots of the canvas."image/jpeg"-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])Call the `canvas.toBlob` function to screenshot the canvas. Provide a callback to override the internal onScreenshot method capture function toBlob(function(blob){})
-
method
downloadCroppedImage
(name = polypoint-screenshot.png , background = undefined , borderRadius = 10 , dimensions = undefined)from class_namedict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])grab the placement, and create a new download image with cropping.
ExpressionStatement:
dict_keys(['type', 'expression', 'pos'])ExpressionStatement:
dict_keys(['type', 'expression', 'pos'])ExpressionStatement:
dict_keys(['type', 'expression', 'pos'])VariableDeclarationVariableDeclaration