figma-api-stub
Advanced tools
Comparing version 0.0.33 to 0.0.34
@@ -39,2 +39,7 @@ "use strict"; | ||
var currentPageChangeSubscribes = new Map(); | ||
var lastId = 1; | ||
var allocateId = function (node) { | ||
lastId += 1; | ||
node.id = "1:" + lastId; | ||
}; | ||
var UIAPIStub = /** @class */ (function () { | ||
@@ -314,3 +319,7 @@ function UIAPIStub() { | ||
// @ts-ignore | ||
this.root.id = "0:0"; | ||
// @ts-ignore | ||
this._currentPage = new PageNodeStub(); | ||
// @ts-ignore | ||
this._currentPage.id = "0:1"; | ||
this.root.appendChild(this._currentPage); | ||
@@ -334,2 +343,3 @@ // @ts-ignore | ||
var result = new PageNodeStub(); | ||
allocateId(result); | ||
this.root.appendChild(result); | ||
@@ -341,2 +351,3 @@ return result; | ||
var result = new FrameNodeStub(); | ||
allocateId(result); | ||
this.currentPage.appendChild(result); | ||
@@ -348,2 +359,3 @@ return result; | ||
var result = new ComponentNodeStub(); | ||
allocateId(result); | ||
this.currentPage.appendChild(result); | ||
@@ -355,2 +367,3 @@ return result; | ||
var result = new RectangleNodeStub(); | ||
allocateId(result); | ||
this.currentPage.appendChild(result); | ||
@@ -362,2 +375,3 @@ return result; | ||
var result = new TextNodeStub(); | ||
allocateId(result); | ||
this.currentPage.appendChild(result); | ||
@@ -372,2 +386,3 @@ return result; | ||
var group = new GroupNodeStub(); | ||
allocateId(group); | ||
nodes.forEach(function (node) { return group.appendChild(node); }); | ||
@@ -374,0 +389,0 @@ if (index) { |
{ | ||
"name": "figma-api-stub", | ||
"version": "0.0.33", | ||
"version": "0.0.34", | ||
"description": "Figma API stub", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56948
1193