Prebuilt module for commit 43bbb249ab

This commit is contained in:
Paper.js Bot 2019-11-07 11:16:13 +00:00
parent 0ad2d57fa6
commit 4726d30884
8 changed files with 34 additions and 120 deletions

View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Wed Aug 14 15:00:17 2019 +0530
* Date: Thu Nov 7 12:12:14 2019 +0100
*
***
*

1
dist/paper-core.d.ts vendored Normal file
View file

@ -0,0 +1 @@
import './paper';

2
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Wed Aug 14 15:00:17 2019 +0530
* Date: Thu Nov 7 12:12:14 2019 +0100
*
***
*

View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Wed Aug 14 15:00:17 2019 +0530
* Date: Thu Nov 7 12:12:14 2019 +0100
*
***
*

2
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Wed Aug 14 15:00:17 2019 +0530
* Date: Thu Nov 7 12:12:14 2019 +0100
*
***
*

View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Wed Aug 14 15:00:17 2019 +0530
* Date: Thu Nov 7 12:12:14 2019 +0100
*
***
*

113
dist/paper.d.ts vendored
View file

@ -9,107 +9,12 @@
*
* All rights reserved.
*
* Date: Wed Aug 14 15:00:17 2019 +0530
* Date: Thu Nov 7 12:12:14 2019 +0100
*
* This is an auto-generated type definition.
*/
declare module paper {
/**
* The version of Paper.js, as a string.
*/
let version: string
/**
* Gives access to paper's configurable settings.
*
* @option [settings.insertItems=true] {Boolean} controls whether newly
* created items are automatically inserted into the scene graph, by
* adding them to {@link Project#activeLayer}
* @option [settings.applyMatrix=true] {Boolean} controls what value newly
* created items have their {@link Item#applyMatrix} property set to
* (Note that not all items can set this to `false`)
* @option [settings.handleSize=4] {Number} the size of the curve handles
* when drawing selections
* @option [settings.hitTolerance=0] {Number} the default tolerance for hit-
* tests, when no value is specified
*/
let settings: any
/**
* The currently active project.
*/
let project: Project
/**
* The list of all open projects within the current Paper.js context.
*/
let projects: Project[]
/**
* The reference to the active project's view.
*/
let view: View
/**
* The reference to the active tool.
*/
let tool: Tool
/**
* The list of available tools.
*/
let tools: Tool[]
/**
* Compiles the PaperScript code into a compiled function and executes it.
* The compiled function receives all properties of this {@link PaperScope}
* as arguments, to emulate a global scope with unaffected performance. It
* also installs global view and tool handlers automatically on the
* respective objects.
*
* @option options.url {String} the url of the source, for source-map
* debugging
* @option options.source {String} the source to be used for the source-
* mapping, in case the code that's passed in has already been mingled.
*
* @param code - the PaperScript code
* @param options - the compilation options
*/
function execute(code: string, options?: object): void
/**
* Injects the paper scope into any other given scope. Can be used for
* example to inject the currently active PaperScope into the window's
* global scope, to emulate PaperScript-style globally accessible Paper
* classes and objects.
*
* <b>Please note:</b> Using this method may override native constructors
* (e.g. Path). This may cause problems when using Paper.js in conjunction
* with other libraries that rely on these constructors. Keep the library
* scoped if you encounter issues caused by this.
*/
function install(scope: any): void
/**
* Sets up an empty project for us. If a canvas is provided, it also creates
* a {@link View} for it, both linked to this scope.
*
* @param element - the HTML canvas element
* this scope should be associated with, or an ID string by which to find
* the element, or the size of the canvas to be created for usage in a web
* worker.
*/
function setup(element: HTMLCanvasElement | string | Size): void
/**
* Activates this PaperScope, so all newly created items will be placed
* in its active project.
*/
function activate(): void
declare namespace paper {
/**
* All properties and functions that expect color values in the form
@ -3363,6 +3268,7 @@ declare module paper {
Layer: typeof Layer
Matrix: typeof Matrix
MouseEvent: typeof MouseEvent
PaperScope: typeof PaperScope
PaperScript: typeof PaperScript
Path: typeof Path
PathItem: typeof PathItem
@ -7421,6 +7327,15 @@ declare module paper {
}
}
declare module 'paper' {
export = paper
declare module 'paper/dist/paper-core'
{
const paperCore: Pick<paper.PaperScope, Exclude<keyof paper.PaperScope, 'PaperScript'>>;
export = paperCore
}
declare module 'paper'
{
const paperFull: paper.PaperScope;
export = paperFull
}

30
package-lock.json generated
View file

@ -1972,9 +1972,9 @@
}
},
"glob": {
"version": "7.1.5",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.5.tgz",
"integrity": "sha512-J9dlskqUXK1OeTOYBEn5s8aMukWMwWfs+rPTn/jn50Ux4MNXVhubL1wu/j2t+H4NVI+cXEcCaYellqaPVGXNqQ==",
"version": "7.1.6",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
"integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
"dev": true,
"requires": {
"fs.realpath": "^1.0.0",
@ -4510,25 +4510,17 @@
"dev": true
},
"optionator": {
"version": "0.8.2",
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz",
"integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=",
"version": "0.8.3",
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz",
"integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==",
"dev": true,
"requires": {
"deep-is": "~0.1.3",
"fast-levenshtein": "~2.0.4",
"fast-levenshtein": "~2.0.6",
"levn": "~0.3.0",
"prelude-ls": "~1.1.2",
"type-check": "~0.3.2",
"wordwrap": "~1.0.0"
},
"dependencies": {
"wordwrap": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz",
"integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=",
"dev": true
}
"word-wrap": "~1.2.3"
}
},
"orchestrator": {
@ -6553,6 +6545,12 @@
"integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=",
"dev": true
},
"word-wrap": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",
"integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==",
"dev": true
},
"wordwrap": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz",