figma-api-stub
Advanced tools
Comparing version 0.0.48 to 0.0.49
@@ -103,2 +103,5 @@ "use strict"; | ||
}; | ||
var getImageHash = function () { | ||
return nanoid_1.nanoid(40); | ||
}; | ||
var UIAPIStub = /** @class */ (function () { | ||
@@ -288,2 +291,20 @@ function UIAPIStub() { | ||
}()); | ||
var GeometryMixinStub = /** @class */ (function () { | ||
function GeometryMixinStub() { | ||
} | ||
Object.defineProperty(GeometryMixinStub.prototype, "fills", { | ||
get: function () { | ||
return this._fills || []; | ||
}, | ||
set: function (theFills) { | ||
this._fills = theFills; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
GeometryMixinStub.prototype.outlineStroke = function () { | ||
return null; | ||
}; | ||
return GeometryMixinStub; | ||
}()); | ||
var RectangleNodeStub = /** @class */ (function () { | ||
@@ -298,3 +319,4 @@ function RectangleNodeStub() { | ||
LayoutMixinStub, | ||
ExportMixinStub | ||
ExportMixinStub, | ||
GeometryMixinStub | ||
]); | ||
@@ -400,3 +422,4 @@ var TextNodeStub = /** @class */ (function () { | ||
LayoutMixinStub, | ||
ExportMixinStub | ||
ExportMixinStub, | ||
GeometryMixinStub | ||
]); | ||
@@ -445,3 +468,4 @@ var DocumentNodeStub = /** @class */ (function () { | ||
LayoutMixinStub, | ||
ExportMixinStub | ||
ExportMixinStub, | ||
GeometryMixinStub | ||
]); | ||
@@ -485,3 +509,4 @@ var GroupNodeStub = /** @class */ (function () { | ||
ExportMixinStub, | ||
LayoutMixinStub | ||
LayoutMixinStub, | ||
GeometryMixinStub | ||
]); | ||
@@ -694,2 +719,9 @@ var InstanceNodeStub = /** @class */ (function () { | ||
}; | ||
PluginApiStub.prototype.createImage = function (bytes) { | ||
var hash = getImageHash(); | ||
return { | ||
hash: hash, | ||
getBytesAsync: function () { return Promise.resolve(bytes); } | ||
}; | ||
}; | ||
// @ts-ignore | ||
@@ -696,0 +728,0 @@ PluginApiStub.prototype.group = function (nodes, parent, index) { |
{ | ||
"name": "figma-api-stub", | ||
"version": "0.0.48", | ||
"version": "0.0.49", | ||
"description": "Figma API stub", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -47,1 +47,2 @@ # Figma API Stub | ||
- [FigmaToCode](https://github.com/bernaferrari/FigmaToCode) | ||
- [figx](https://github.com/n0ruSh/figx) |
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
60569
987
48