Merge pull request #31241 from aecz/master

[paper] Fix type of scaling property from number to Point
This commit is contained in:
Jesse Trinity
2018-12-12 17:32:01 -08:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -4865,7 +4865,7 @@ declare module paper {
/**
* The current scale factor of the view, as described by its matrix.
*/
scaling: number;
scaling: Point;
/**
* The view’s transformation matrix, defining the view onto the project’s contents (position, zoom level, rotation, etc).
+2
View File
@@ -79,6 +79,8 @@ hitTestResults = paper.project.hitTestAll(hitTestPoint, hitOptionsInterfaceEmpty
hitTestResults = paper.project.hitTestAll(hitTestPoint, hitOptionsInterfacePartial);
hitTestResults = paper.project.hitTestAll(hitTestPoint, hitOptionsInterfaceFull);
paper.view.scaling = new paper.Point(1, 1);
function Examples() {
function BooleanOperations(){
let text = new paper.PointText({