Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sketch-hq/sketch-file-format-ts

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sketch-hq/sketch-file-format-ts - npm Package Compare versions

Comparing version 4.0.4 to 4.0.5

6

CHANGELOG.md
# @sketch-hq/sketch-file-format-ts
## 4.0.5
### Patch Changes
- c0292ca: Fix problem where package was being built as ESM.
## 4.0.4

@@ -4,0 +10,0 @@

21

dist/index.js

@@ -1,5 +0,16 @@

import * as FileFormat1 from './v1-types';
import * as FileFormat2 from './v2-types';
import * as FileFormat3 from './v3-types';
export { FileFormat1, FileFormat2, FileFormat3 };
export default FileFormat3;
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const FileFormat1 = __importStar(require("./v1-types"));
exports.FileFormat1 = FileFormat1;
const FileFormat2 = __importStar(require("./v2-types"));
exports.FileFormat2 = FileFormat2;
const FileFormat3 = __importStar(require("./v3-types"));
exports.FileFormat3 = FileFormat3;
exports.default = FileFormat3;

@@ -0,5 +1,7 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Enumeration of the gradient types
*/
export var GradientType;
var GradientType;
(function (GradientType) {

@@ -9,7 +11,7 @@ GradientType[GradientType["Linear"] = 0] = "Linear";

GradientType[GradientType["Angular"] = 2] = "Angular";
})(GradientType || (GradientType = {}));
})(GradientType = exports.GradientType || (exports.GradientType = {}));
/**
* Enumeration of the color profiles Sketch can use to render a document
*/
export var ColorSpace;
var ColorSpace;
(function (ColorSpace) {

@@ -19,7 +21,7 @@ ColorSpace[ColorSpace["Unmanaged"] = 0] = "Unmanaged";

ColorSpace[ColorSpace["P3"] = 2] = "P3";
})(ColorSpace || (ColorSpace = {}));
})(ColorSpace = exports.ColorSpace || (exports.ColorSpace = {}));
/**
* Enumeration of the fill types
*/
export var FillType;
var FillType;
(function (FillType) {

@@ -29,7 +31,7 @@ FillType[FillType["Color"] = 0] = "Color";

FillType[FillType["Pattern"] = 4] = "Pattern";
})(FillType || (FillType = {}));
})(FillType = exports.FillType || (exports.FillType = {}));
/**
* Enumeration of border positions
*/
export var BorderPosition;
var BorderPosition;
(function (BorderPosition) {

@@ -39,7 +41,7 @@ BorderPosition[BorderPosition["Center"] = 0] = "Center";

BorderPosition[BorderPosition["Outside"] = 2] = "Outside";
})(BorderPosition || (BorderPosition = {}));
})(BorderPosition = exports.BorderPosition || (exports.BorderPosition = {}));
/**
* Enumeration of the blend modes that can be applied to fills
*/
export var BlendMode;
var BlendMode;
(function (BlendMode) {

@@ -64,7 +66,7 @@ BlendMode[BlendMode["Normal"] = 0] = "Normal";

BlendMode[BlendMode["PlusLighter"] = 17] = "PlusLighter";
})(BlendMode || (BlendMode = {}));
})(BlendMode = exports.BlendMode || (exports.BlendMode = {}));
/**
* Enumeration of the line cap styles
*/
export var LineCapStyle;
var LineCapStyle;
(function (LineCapStyle) {

@@ -74,7 +76,7 @@ LineCapStyle[LineCapStyle["Butt"] = 0] = "Butt";

LineCapStyle[LineCapStyle["Projecting"] = 2] = "Projecting";
})(LineCapStyle || (LineCapStyle = {}));
})(LineCapStyle = exports.LineCapStyle || (exports.LineCapStyle = {}));
/**
* Enumeration of the line join styles
*/
export var LineJoinStyle;
var LineJoinStyle;
(function (LineJoinStyle) {

@@ -84,7 +86,7 @@ LineJoinStyle[LineJoinStyle["Miter"] = 0] = "Miter";

LineJoinStyle[LineJoinStyle["Bevel"] = 2] = "Bevel";
})(LineJoinStyle || (LineJoinStyle = {}));
})(LineJoinStyle = exports.LineJoinStyle || (exports.LineJoinStyle = {}));
/**
* Enumeration of the various blur types
*/
export var BlurType;
var BlurType;
(function (BlurType) {

@@ -95,7 +97,7 @@ BlurType[BlurType["Gaussian"] = 0] = "Gaussian";

BlurType[BlurType["Background"] = 3] = "Background";
})(BlurType || (BlurType = {}));
})(BlurType = exports.BlurType || (exports.BlurType = {}));
/**
* Enumeration of pattern fill types
*/
export var PatternFillType;
var PatternFillType;
(function (PatternFillType) {

@@ -106,7 +108,7 @@ PatternFillType[PatternFillType["Tile"] = 0] = "Tile";

PatternFillType[PatternFillType["Fit"] = 3] = "Fit";
})(PatternFillType || (PatternFillType = {}));
})(PatternFillType = exports.PatternFillType || (exports.PatternFillType = {}));
/**
* Enumeration of the possible types of vector line endings
*/
export var MarkerType;
var MarkerType;
(function (MarkerType) {

@@ -120,15 +122,15 @@ MarkerType[MarkerType["OpenArrow"] = 0] = "OpenArrow";

MarkerType[MarkerType["FilledSquare"] = 6] = "FilledSquare";
})(MarkerType || (MarkerType = {}));
})(MarkerType = exports.MarkerType || (exports.MarkerType = {}));
/**
* Enumeration of the winding rule that controls how fills behave in shapes with complex paths
*/
export var WindingRule;
var WindingRule;
(function (WindingRule) {
WindingRule[WindingRule["NonZero"] = 0] = "NonZero";
WindingRule[WindingRule["EvenOdd"] = 1] = "EvenOdd";
})(WindingRule || (WindingRule = {}));
})(WindingRule = exports.WindingRule || (exports.WindingRule = {}));
/**
* Enumeration of the text style vertical alighment options
*/
export var TextVerticalAlignment;
var TextVerticalAlignment;
(function (TextVerticalAlignment) {

@@ -138,7 +140,7 @@ TextVerticalAlignment[TextVerticalAlignment["Top"] = 0] = "Top";

TextVerticalAlignment[TextVerticalAlignment["Bottom"] = 2] = "Bottom";
})(TextVerticalAlignment || (TextVerticalAlignment = {}));
})(TextVerticalAlignment = exports.TextVerticalAlignment || (exports.TextVerticalAlignment = {}));
/**
* Enumeration of the horizontal alignment options for paragraphs
*/
export var TextHorizontalAlignment;
var TextHorizontalAlignment;
(function (TextHorizontalAlignment) {

@@ -150,7 +152,7 @@ TextHorizontalAlignment[TextHorizontalAlignment["Left"] = 0] = "Left";

TextHorizontalAlignment[TextHorizontalAlignment["Natural"] = 4] = "Natural";
})(TextHorizontalAlignment || (TextHorizontalAlignment = {}));
})(TextHorizontalAlignment = exports.TextHorizontalAlignment || (exports.TextHorizontalAlignment = {}));
/**
* Enumeration of the text style transformations options
*/
export var TextTransform;
var TextTransform;
(function (TextTransform) {

@@ -160,15 +162,15 @@ TextTransform[TextTransform["None"] = 0] = "None";

TextTransform[TextTransform["Lowercase"] = 2] = "Lowercase";
})(TextTransform || (TextTransform = {}));
})(TextTransform = exports.TextTransform || (exports.TextTransform = {}));
/**
* Enumeration of the text style underline options
*/
export var UnderlineStyle;
var UnderlineStyle;
(function (UnderlineStyle) {
UnderlineStyle[UnderlineStyle["None"] = 0] = "None";
UnderlineStyle[UnderlineStyle["Underlined"] = 1] = "Underlined";
})(UnderlineStyle || (UnderlineStyle = {}));
})(UnderlineStyle = exports.UnderlineStyle || (exports.UnderlineStyle = {}));
/**
* Enumeration of the boolean operations that can be applied to combine shapes
*/
export var BooleanOperation;
var BooleanOperation;
(function (BooleanOperation) {

@@ -180,7 +182,7 @@ BooleanOperation[BooleanOperation["NA"] = -1] = "NA";

BooleanOperation[BooleanOperation["Difference"] = 3] = "Difference";
})(BooleanOperation || (BooleanOperation = {}));
})(BooleanOperation = exports.BooleanOperation || (exports.BooleanOperation = {}));
/**
* Enumeration of the file formats that can be selected in the layer export options
*/
export var ExportFileFormat;
var ExportFileFormat;
(function (ExportFileFormat) {

@@ -194,15 +196,15 @@ ExportFileFormat["PNG"] = "png";

ExportFileFormat["SVG"] = "svg";
})(ExportFileFormat || (ExportFileFormat = {}));
})(ExportFileFormat = exports.ExportFileFormat || (exports.ExportFileFormat = {}));
/**
* Enumeration of the possible types of export format naming schemes
*/
export var ExportFormatNamingScheme;
var ExportFormatNamingScheme;
(function (ExportFormatNamingScheme) {
ExportFormatNamingScheme[ExportFormatNamingScheme["Suffix"] = 0] = "Suffix";
ExportFormatNamingScheme[ExportFormatNamingScheme["Prefix"] = 1] = "Prefix";
})(ExportFormatNamingScheme || (ExportFormatNamingScheme = {}));
})(ExportFormatNamingScheme = exports.ExportFormatNamingScheme || (exports.ExportFormatNamingScheme = {}));
/**
* Enumeration of the possible values to control how an exported layer will be scaled
*/
export var VisibleScaleType;
var VisibleScaleType;
(function (VisibleScaleType) {

@@ -212,7 +214,7 @@ VisibleScaleType[VisibleScaleType["Scale"] = 0] = "Scale";

VisibleScaleType[VisibleScaleType["Height"] = 2] = "Height";
})(VisibleScaleType || (VisibleScaleType = {}));
})(VisibleScaleType = exports.VisibleScaleType || (exports.VisibleScaleType = {}));
/**
* Enumeration of the animation transition types between prototype screens
*/
export var AnimationType;
var AnimationType;
(function (AnimationType) {

@@ -224,7 +226,7 @@ AnimationType[AnimationType["None"] = 0] = "None";

AnimationType[AnimationType["SlideFromTop"] = 4] = "SlideFromTop";
})(AnimationType || (AnimationType = {}));
})(AnimationType = exports.AnimationType || (exports.AnimationType = {}));
/**
* Enumeration of the expansion states in the layer list UI
*/
export var LayerListExpanded;
var LayerListExpanded;
(function (LayerListExpanded) {

@@ -234,7 +236,7 @@ LayerListExpanded[LayerListExpanded["Undecided"] = 0] = "Undecided";

LayerListExpanded[LayerListExpanded["Expanded"] = 2] = "Expanded";
})(LayerListExpanded || (LayerListExpanded = {}));
})(LayerListExpanded = exports.LayerListExpanded || (exports.LayerListExpanded = {}));
/**
* Enumeration of the possible resize types
*/
export var ResizeType;
var ResizeType;
(function (ResizeType) {

@@ -245,7 +247,7 @@ ResizeType[ResizeType["Stretch"] = 0] = "Stretch";

ResizeType[ResizeType["Float"] = 3] = "Float";
})(ResizeType || (ResizeType = {}));
})(ResizeType = exports.ResizeType || (exports.ResizeType = {}));
/**
* Enumeration of the possible values for corner rounding on shape points.
*/
export var PointsRadiusBehaviour;
var PointsRadiusBehaviour;
(function (PointsRadiusBehaviour) {

@@ -256,7 +258,7 @@ PointsRadiusBehaviour[PointsRadiusBehaviour["Disabled"] = -1] = "Disabled";

PointsRadiusBehaviour[PointsRadiusBehaviour["Smooth"] = 2] = "Smooth";
})(PointsRadiusBehaviour || (PointsRadiusBehaviour = {}));
})(PointsRadiusBehaviour = exports.PointsRadiusBehaviour || (exports.PointsRadiusBehaviour = {}));
/**
* Enumeration of the curve modes that can be applied to vector points
*/
export var CurveMode;
var CurveMode;
(function (CurveMode) {

@@ -268,7 +270,7 @@ CurveMode[CurveMode["None"] = 0] = "None";

CurveMode[CurveMode["Disconnected"] = 4] = "Disconnected";
})(CurveMode || (CurveMode = {}));
})(CurveMode = exports.CurveMode || (exports.CurveMode = {}));
/**
* Enumeration of line spacing behaviour for fixed line height text
*/
export var LineSpacingBehaviour;
var LineSpacingBehaviour;
(function (LineSpacingBehaviour) {

@@ -278,15 +280,15 @@ LineSpacingBehaviour[LineSpacingBehaviour["None"] = 0] = "None";

LineSpacingBehaviour[LineSpacingBehaviour["ConsistentBaseline"] = 2] = "ConsistentBaseline";
})(LineSpacingBehaviour || (LineSpacingBehaviour = {}));
})(LineSpacingBehaviour = exports.LineSpacingBehaviour || (exports.LineSpacingBehaviour = {}));
/**
* Enumeration of the behaviours for text layers
*/
export var TextBehaviour;
var TextBehaviour;
(function (TextBehaviour) {
TextBehaviour[TextBehaviour["Flexible"] = 0] = "Flexible";
TextBehaviour[TextBehaviour["Fixed"] = 1] = "Fixed";
})(TextBehaviour || (TextBehaviour = {}));
})(TextBehaviour = exports.TextBehaviour || (exports.TextBehaviour = {}));
/**
* Enumeration of the Apple bundle ids for the various variants of Sketch
*/
export var BundleId;
var BundleId;
(function (BundleId) {

@@ -298,15 +300,15 @@ BundleId["PublicRelease"] = "com.bohemiancoding.sketch3";

BundleId["Experimental"] = "com.bohemiancoding.sketch3.experimental";
})(BundleId || (BundleId = {}));
})(BundleId = exports.BundleId || (exports.BundleId = {}));
/**
* A numerical boolean where 0 is false, and 1 is true.
*/
export var NumericalBool;
var NumericalBool;
(function (NumericalBool) {
NumericalBool[NumericalBool["True"] = 0] = "True";
NumericalBool[NumericalBool["False"] = 1] = "False";
})(NumericalBool || (NumericalBool = {}));
})(NumericalBool = exports.NumericalBool || (exports.NumericalBool = {}));
/**
* Enum of all possible _class property values
*/
export var ClassValue;
var ClassValue;
(function (ClassValue) {

@@ -370,2 +372,2 @@ ClassValue["MSImmutableColorAsset"] = "MSImmutableColorAsset";

ClassValue["Triangle"] = "triangle";
})(ClassValue || (ClassValue = {}));
})(ClassValue = exports.ClassValue || (exports.ClassValue = {}));

@@ -0,5 +1,7 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Enumeration of the gradient types
*/
export var GradientType;
var GradientType;
(function (GradientType) {

@@ -9,7 +11,7 @@ GradientType[GradientType["Linear"] = 0] = "Linear";

GradientType[GradientType["Angular"] = 2] = "Angular";
})(GradientType || (GradientType = {}));
})(GradientType = exports.GradientType || (exports.GradientType = {}));
/**
* Enumeration of the color profiles Sketch can use to render a document
*/
export var ColorSpace;
var ColorSpace;
(function (ColorSpace) {

@@ -19,7 +21,7 @@ ColorSpace[ColorSpace["Unmanaged"] = 0] = "Unmanaged";

ColorSpace[ColorSpace["P3"] = 2] = "P3";
})(ColorSpace || (ColorSpace = {}));
})(ColorSpace = exports.ColorSpace || (exports.ColorSpace = {}));
/**
* Enumeration of the fill types
*/
export var FillType;
var FillType;
(function (FillType) {

@@ -29,7 +31,7 @@ FillType[FillType["Color"] = 0] = "Color";

FillType[FillType["Pattern"] = 4] = "Pattern";
})(FillType || (FillType = {}));
})(FillType = exports.FillType || (exports.FillType = {}));
/**
* Enumeration of border positions
*/
export var BorderPosition;
var BorderPosition;
(function (BorderPosition) {

@@ -39,7 +41,7 @@ BorderPosition[BorderPosition["Center"] = 0] = "Center";

BorderPosition[BorderPosition["Outside"] = 2] = "Outside";
})(BorderPosition || (BorderPosition = {}));
})(BorderPosition = exports.BorderPosition || (exports.BorderPosition = {}));
/**
* Enumeration of the blend modes that can be applied to fills
*/
export var BlendMode;
var BlendMode;
(function (BlendMode) {

@@ -64,7 +66,7 @@ BlendMode[BlendMode["Normal"] = 0] = "Normal";

BlendMode[BlendMode["PlusLighter"] = 17] = "PlusLighter";
})(BlendMode || (BlendMode = {}));
})(BlendMode = exports.BlendMode || (exports.BlendMode = {}));
/**
* Enumeration of the line cap styles
*/
export var LineCapStyle;
var LineCapStyle;
(function (LineCapStyle) {

@@ -74,7 +76,7 @@ LineCapStyle[LineCapStyle["Butt"] = 0] = "Butt";

LineCapStyle[LineCapStyle["Projecting"] = 2] = "Projecting";
})(LineCapStyle || (LineCapStyle = {}));
})(LineCapStyle = exports.LineCapStyle || (exports.LineCapStyle = {}));
/**
* Enumeration of the line join styles
*/
export var LineJoinStyle;
var LineJoinStyle;
(function (LineJoinStyle) {

@@ -84,7 +86,7 @@ LineJoinStyle[LineJoinStyle["Miter"] = 0] = "Miter";

LineJoinStyle[LineJoinStyle["Bevel"] = 2] = "Bevel";
})(LineJoinStyle || (LineJoinStyle = {}));
})(LineJoinStyle = exports.LineJoinStyle || (exports.LineJoinStyle = {}));
/**
* Enumeration of the various blur types
*/
export var BlurType;
var BlurType;
(function (BlurType) {

@@ -95,7 +97,7 @@ BlurType[BlurType["Gaussian"] = 0] = "Gaussian";

BlurType[BlurType["Background"] = 3] = "Background";
})(BlurType || (BlurType = {}));
})(BlurType = exports.BlurType || (exports.BlurType = {}));
/**
* Enumeration of pattern fill types
*/
export var PatternFillType;
var PatternFillType;
(function (PatternFillType) {

@@ -106,7 +108,7 @@ PatternFillType[PatternFillType["Tile"] = 0] = "Tile";

PatternFillType[PatternFillType["Fit"] = 3] = "Fit";
})(PatternFillType || (PatternFillType = {}));
})(PatternFillType = exports.PatternFillType || (exports.PatternFillType = {}));
/**
* Enumeration of the possible types of vector line endings
*/
export var MarkerType;
var MarkerType;
(function (MarkerType) {

@@ -120,15 +122,15 @@ MarkerType[MarkerType["OpenArrow"] = 0] = "OpenArrow";

MarkerType[MarkerType["FilledSquare"] = 6] = "FilledSquare";
})(MarkerType || (MarkerType = {}));
})(MarkerType = exports.MarkerType || (exports.MarkerType = {}));
/**
* Enumeration of the winding rule that controls how fills behave in shapes with complex paths
*/
export var WindingRule;
var WindingRule;
(function (WindingRule) {
WindingRule[WindingRule["NonZero"] = 0] = "NonZero";
WindingRule[WindingRule["EvenOdd"] = 1] = "EvenOdd";
})(WindingRule || (WindingRule = {}));
})(WindingRule = exports.WindingRule || (exports.WindingRule = {}));
/**
* Enumeration of the text style vertical alighment options
*/
export var TextVerticalAlignment;
var TextVerticalAlignment;
(function (TextVerticalAlignment) {

@@ -138,7 +140,7 @@ TextVerticalAlignment[TextVerticalAlignment["Top"] = 0] = "Top";

TextVerticalAlignment[TextVerticalAlignment["Bottom"] = 2] = "Bottom";
})(TextVerticalAlignment || (TextVerticalAlignment = {}));
})(TextVerticalAlignment = exports.TextVerticalAlignment || (exports.TextVerticalAlignment = {}));
/**
* Enumeration of the horizontal alignment options for paragraphs
*/
export var TextHorizontalAlignment;
var TextHorizontalAlignment;
(function (TextHorizontalAlignment) {

@@ -150,7 +152,7 @@ TextHorizontalAlignment[TextHorizontalAlignment["Left"] = 0] = "Left";

TextHorizontalAlignment[TextHorizontalAlignment["Natural"] = 4] = "Natural";
})(TextHorizontalAlignment || (TextHorizontalAlignment = {}));
})(TextHorizontalAlignment = exports.TextHorizontalAlignment || (exports.TextHorizontalAlignment = {}));
/**
* Enumeration of the text style transformations options
*/
export var TextTransform;
var TextTransform;
(function (TextTransform) {

@@ -160,15 +162,15 @@ TextTransform[TextTransform["None"] = 0] = "None";

TextTransform[TextTransform["Lowercase"] = 2] = "Lowercase";
})(TextTransform || (TextTransform = {}));
})(TextTransform = exports.TextTransform || (exports.TextTransform = {}));
/**
* Enumeration of the text style underline options
*/
export var UnderlineStyle;
var UnderlineStyle;
(function (UnderlineStyle) {
UnderlineStyle[UnderlineStyle["None"] = 0] = "None";
UnderlineStyle[UnderlineStyle["Underlined"] = 1] = "Underlined";
})(UnderlineStyle || (UnderlineStyle = {}));
})(UnderlineStyle = exports.UnderlineStyle || (exports.UnderlineStyle = {}));
/**
* Enumeration of the boolean operations that can be applied to combine shapes
*/
export var BooleanOperation;
var BooleanOperation;
(function (BooleanOperation) {

@@ -180,7 +182,7 @@ BooleanOperation[BooleanOperation["NA"] = -1] = "NA";

BooleanOperation[BooleanOperation["Difference"] = 3] = "Difference";
})(BooleanOperation || (BooleanOperation = {}));
})(BooleanOperation = exports.BooleanOperation || (exports.BooleanOperation = {}));
/**
* Enumeration of the file formats that can be selected in the layer export options
*/
export var ExportFileFormat;
var ExportFileFormat;
(function (ExportFileFormat) {

@@ -194,15 +196,15 @@ ExportFileFormat["PNG"] = "png";

ExportFileFormat["SVG"] = "svg";
})(ExportFileFormat || (ExportFileFormat = {}));
})(ExportFileFormat = exports.ExportFileFormat || (exports.ExportFileFormat = {}));
/**
* Enumeration of the possible types of export format naming schemes
*/
export var ExportFormatNamingScheme;
var ExportFormatNamingScheme;
(function (ExportFormatNamingScheme) {
ExportFormatNamingScheme[ExportFormatNamingScheme["Suffix"] = 0] = "Suffix";
ExportFormatNamingScheme[ExportFormatNamingScheme["Prefix"] = 1] = "Prefix";
})(ExportFormatNamingScheme || (ExportFormatNamingScheme = {}));
})(ExportFormatNamingScheme = exports.ExportFormatNamingScheme || (exports.ExportFormatNamingScheme = {}));
/**
* Enumeration of the possible values to control how an exported layer will be scaled
*/
export var VisibleScaleType;
var VisibleScaleType;
(function (VisibleScaleType) {

@@ -212,7 +214,7 @@ VisibleScaleType[VisibleScaleType["Scale"] = 0] = "Scale";

VisibleScaleType[VisibleScaleType["Height"] = 2] = "Height";
})(VisibleScaleType || (VisibleScaleType = {}));
})(VisibleScaleType = exports.VisibleScaleType || (exports.VisibleScaleType = {}));
/**
* Enumeration of the animation transition types between prototype screens
*/
export var AnimationType;
var AnimationType;
(function (AnimationType) {

@@ -224,7 +226,7 @@ AnimationType[AnimationType["None"] = 0] = "None";

AnimationType[AnimationType["SlideFromTop"] = 4] = "SlideFromTop";
})(AnimationType || (AnimationType = {}));
})(AnimationType = exports.AnimationType || (exports.AnimationType = {}));
/**
* Enumeration of the expansion states in the layer list UI
*/
export var LayerListExpanded;
var LayerListExpanded;
(function (LayerListExpanded) {

@@ -234,7 +236,7 @@ LayerListExpanded[LayerListExpanded["Undecided"] = 0] = "Undecided";

LayerListExpanded[LayerListExpanded["Expanded"] = 2] = "Expanded";
})(LayerListExpanded || (LayerListExpanded = {}));
})(LayerListExpanded = exports.LayerListExpanded || (exports.LayerListExpanded = {}));
/**
* Enumeration of the possible resize types
*/
export var ResizeType;
var ResizeType;
(function (ResizeType) {

@@ -245,7 +247,7 @@ ResizeType[ResizeType["Stretch"] = 0] = "Stretch";

ResizeType[ResizeType["Float"] = 3] = "Float";
})(ResizeType || (ResizeType = {}));
})(ResizeType = exports.ResizeType || (exports.ResizeType = {}));
/**
* Enumeration of the axis types for inferred (aka smart) layout
*/
export var InferredLayoutAxis;
var InferredLayoutAxis;
(function (InferredLayoutAxis) {

@@ -255,7 +257,7 @@ InferredLayoutAxis[InferredLayoutAxis["None"] = 0] = "None";

InferredLayoutAxis[InferredLayoutAxis["Vertical"] = 2] = "Vertical";
})(InferredLayoutAxis || (InferredLayoutAxis = {}));
})(InferredLayoutAxis = exports.InferredLayoutAxis || (exports.InferredLayoutAxis = {}));
/**
* Enumeration of the anchor types for inferred (aka smart) layout
*/
export var InferredLayoutAnchor;
var InferredLayoutAnchor;
(function (InferredLayoutAnchor) {

@@ -265,7 +267,7 @@ InferredLayoutAnchor[InferredLayoutAnchor["Min"] = 0] = "Min";

InferredLayoutAnchor[InferredLayoutAnchor["Max"] = 2] = "Max";
})(InferredLayoutAnchor || (InferredLayoutAnchor = {}));
})(InferredLayoutAnchor = exports.InferredLayoutAnchor || (exports.InferredLayoutAnchor = {}));
/**
* Enumeration of the possible values for corner rounding on shape points.
*/
export var PointsRadiusBehaviour;
var PointsRadiusBehaviour;
(function (PointsRadiusBehaviour) {

@@ -276,7 +278,7 @@ PointsRadiusBehaviour[PointsRadiusBehaviour["Disabled"] = -1] = "Disabled";

PointsRadiusBehaviour[PointsRadiusBehaviour["Smooth"] = 2] = "Smooth";
})(PointsRadiusBehaviour || (PointsRadiusBehaviour = {}));
})(PointsRadiusBehaviour = exports.PointsRadiusBehaviour || (exports.PointsRadiusBehaviour = {}));
/**
* Enumeration of the curve modes that can be applied to vector points
*/
export var CurveMode;
var CurveMode;
(function (CurveMode) {

@@ -288,7 +290,7 @@ CurveMode[CurveMode["None"] = 0] = "None";

CurveMode[CurveMode["Disconnected"] = 4] = "Disconnected";
})(CurveMode || (CurveMode = {}));
})(CurveMode = exports.CurveMode || (exports.CurveMode = {}));
/**
* Enumeration of line spacing behaviour for fixed line height text
*/
export var LineSpacingBehaviour;
var LineSpacingBehaviour;
(function (LineSpacingBehaviour) {

@@ -298,15 +300,15 @@ LineSpacingBehaviour[LineSpacingBehaviour["None"] = 0] = "None";

LineSpacingBehaviour[LineSpacingBehaviour["ConsistentBaseline"] = 2] = "ConsistentBaseline";
})(LineSpacingBehaviour || (LineSpacingBehaviour = {}));
})(LineSpacingBehaviour = exports.LineSpacingBehaviour || (exports.LineSpacingBehaviour = {}));
/**
* Enumeration of the behaviours for text layers
*/
export var TextBehaviour;
var TextBehaviour;
(function (TextBehaviour) {
TextBehaviour[TextBehaviour["Flexible"] = 0] = "Flexible";
TextBehaviour[TextBehaviour["Fixed"] = 1] = "Fixed";
})(TextBehaviour || (TextBehaviour = {}));
})(TextBehaviour = exports.TextBehaviour || (exports.TextBehaviour = {}));
/**
* Enumeration of the Apple bundle ids for the various variants of Sketch
*/
export var BundleId;
var BundleId;
(function (BundleId) {

@@ -318,15 +320,15 @@ BundleId["PublicRelease"] = "com.bohemiancoding.sketch3";

BundleId["Experimental"] = "com.bohemiancoding.sketch3.experimental";
})(BundleId || (BundleId = {}));
})(BundleId = exports.BundleId || (exports.BundleId = {}));
/**
* A numerical boolean where 0 is false, and 1 is true.
*/
export var NumericalBool;
var NumericalBool;
(function (NumericalBool) {
NumericalBool[NumericalBool["True"] = 0] = "True";
NumericalBool[NumericalBool["False"] = 1] = "False";
})(NumericalBool || (NumericalBool = {}));
})(NumericalBool = exports.NumericalBool || (exports.NumericalBool = {}));
/**
* Enum of all possible _class property values
*/
export var ClassValue;
var ClassValue;
(function (ClassValue) {

@@ -391,2 +393,2 @@ ClassValue["MSImmutableColorAsset"] = "MSImmutableColorAsset";

ClassValue["Triangle"] = "triangle";
})(ClassValue || (ClassValue = {}));
})(ClassValue = exports.ClassValue || (exports.ClassValue = {}));

@@ -0,5 +1,7 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Enumeration of the gradient types
*/
export var GradientType;
var GradientType;
(function (GradientType) {

@@ -9,7 +11,7 @@ GradientType[GradientType["Linear"] = 0] = "Linear";

GradientType[GradientType["Angular"] = 2] = "Angular";
})(GradientType || (GradientType = {}));
})(GradientType = exports.GradientType || (exports.GradientType = {}));
/**
* Enumeration of the color profiles Sketch can use to render a document
*/
export var ColorSpace;
var ColorSpace;
(function (ColorSpace) {

@@ -19,7 +21,7 @@ ColorSpace[ColorSpace["Unmanaged"] = 0] = "Unmanaged";

ColorSpace[ColorSpace["P3"] = 2] = "P3";
})(ColorSpace || (ColorSpace = {}));
})(ColorSpace = exports.ColorSpace || (exports.ColorSpace = {}));
/**
* Enumeration of the fill types
*/
export var FillType;
var FillType;
(function (FillType) {

@@ -29,7 +31,7 @@ FillType[FillType["Color"] = 0] = "Color";

FillType[FillType["Pattern"] = 4] = "Pattern";
})(FillType || (FillType = {}));
})(FillType = exports.FillType || (exports.FillType = {}));
/**
* Enumeration of border positions
*/
export var BorderPosition;
var BorderPosition;
(function (BorderPosition) {

@@ -39,7 +41,7 @@ BorderPosition[BorderPosition["Center"] = 0] = "Center";

BorderPosition[BorderPosition["Outside"] = 2] = "Outside";
})(BorderPosition || (BorderPosition = {}));
})(BorderPosition = exports.BorderPosition || (exports.BorderPosition = {}));
/**
* Enumeration of the blend modes that can be applied to fills
*/
export var BlendMode;
var BlendMode;
(function (BlendMode) {

@@ -64,7 +66,7 @@ BlendMode[BlendMode["Normal"] = 0] = "Normal";

BlendMode[BlendMode["PlusLighter"] = 17] = "PlusLighter";
})(BlendMode || (BlendMode = {}));
})(BlendMode = exports.BlendMode || (exports.BlendMode = {}));
/**
* Enumeration of the line cap styles
*/
export var LineCapStyle;
var LineCapStyle;
(function (LineCapStyle) {

@@ -74,7 +76,7 @@ LineCapStyle[LineCapStyle["Butt"] = 0] = "Butt";

LineCapStyle[LineCapStyle["Projecting"] = 2] = "Projecting";
})(LineCapStyle || (LineCapStyle = {}));
})(LineCapStyle = exports.LineCapStyle || (exports.LineCapStyle = {}));
/**
* Enumeration of the line join styles
*/
export var LineJoinStyle;
var LineJoinStyle;
(function (LineJoinStyle) {

@@ -84,7 +86,7 @@ LineJoinStyle[LineJoinStyle["Miter"] = 0] = "Miter";

LineJoinStyle[LineJoinStyle["Bevel"] = 2] = "Bevel";
})(LineJoinStyle || (LineJoinStyle = {}));
})(LineJoinStyle = exports.LineJoinStyle || (exports.LineJoinStyle = {}));
/**
* Enumeration of the various blur types
*/
export var BlurType;
var BlurType;
(function (BlurType) {

@@ -95,7 +97,7 @@ BlurType[BlurType["Gaussian"] = 0] = "Gaussian";

BlurType[BlurType["Background"] = 3] = "Background";
})(BlurType || (BlurType = {}));
})(BlurType = exports.BlurType || (exports.BlurType = {}));
/**
* Enumeration of pattern fill types
*/
export var PatternFillType;
var PatternFillType;
(function (PatternFillType) {

@@ -106,7 +108,7 @@ PatternFillType[PatternFillType["Tile"] = 0] = "Tile";

PatternFillType[PatternFillType["Fit"] = 3] = "Fit";
})(PatternFillType || (PatternFillType = {}));
})(PatternFillType = exports.PatternFillType || (exports.PatternFillType = {}));
/**
* Enumeration of the possible types of vector line endings
*/
export var MarkerType;
var MarkerType;
(function (MarkerType) {

@@ -120,15 +122,15 @@ MarkerType[MarkerType["OpenArrow"] = 0] = "OpenArrow";

MarkerType[MarkerType["FilledSquare"] = 6] = "FilledSquare";
})(MarkerType || (MarkerType = {}));
})(MarkerType = exports.MarkerType || (exports.MarkerType = {}));
/**
* Enumeration of the winding rule that controls how fills behave in shapes with complex paths
*/
export var WindingRule;
var WindingRule;
(function (WindingRule) {
WindingRule[WindingRule["NonZero"] = 0] = "NonZero";
WindingRule[WindingRule["EvenOdd"] = 1] = "EvenOdd";
})(WindingRule || (WindingRule = {}));
})(WindingRule = exports.WindingRule || (exports.WindingRule = {}));
/**
* Enumeration of the text style vertical alighment options
*/
export var TextVerticalAlignment;
var TextVerticalAlignment;
(function (TextVerticalAlignment) {

@@ -138,7 +140,7 @@ TextVerticalAlignment[TextVerticalAlignment["Top"] = 0] = "Top";

TextVerticalAlignment[TextVerticalAlignment["Bottom"] = 2] = "Bottom";
})(TextVerticalAlignment || (TextVerticalAlignment = {}));
})(TextVerticalAlignment = exports.TextVerticalAlignment || (exports.TextVerticalAlignment = {}));
/**
* Enumeration of the horizontal alignment options for paragraphs
*/
export var TextHorizontalAlignment;
var TextHorizontalAlignment;
(function (TextHorizontalAlignment) {

@@ -150,7 +152,7 @@ TextHorizontalAlignment[TextHorizontalAlignment["Left"] = 0] = "Left";

TextHorizontalAlignment[TextHorizontalAlignment["Natural"] = 4] = "Natural";
})(TextHorizontalAlignment || (TextHorizontalAlignment = {}));
})(TextHorizontalAlignment = exports.TextHorizontalAlignment || (exports.TextHorizontalAlignment = {}));
/**
* Enumeration of the text style transformations options
*/
export var TextTransform;
var TextTransform;
(function (TextTransform) {

@@ -160,15 +162,15 @@ TextTransform[TextTransform["None"] = 0] = "None";

TextTransform[TextTransform["Lowercase"] = 2] = "Lowercase";
})(TextTransform || (TextTransform = {}));
})(TextTransform = exports.TextTransform || (exports.TextTransform = {}));
/**
* Enumeration of the text style underline options
*/
export var UnderlineStyle;
var UnderlineStyle;
(function (UnderlineStyle) {
UnderlineStyle[UnderlineStyle["None"] = 0] = "None";
UnderlineStyle[UnderlineStyle["Underlined"] = 1] = "Underlined";
})(UnderlineStyle || (UnderlineStyle = {}));
})(UnderlineStyle = exports.UnderlineStyle || (exports.UnderlineStyle = {}));
/**
* Enumeration of the boolean operations that can be applied to combine shapes
*/
export var BooleanOperation;
var BooleanOperation;
(function (BooleanOperation) {

@@ -180,7 +182,7 @@ BooleanOperation[BooleanOperation["NA"] = -1] = "NA";

BooleanOperation[BooleanOperation["Difference"] = 3] = "Difference";
})(BooleanOperation || (BooleanOperation = {}));
})(BooleanOperation = exports.BooleanOperation || (exports.BooleanOperation = {}));
/**
* Enumeration of the file formats that can be selected in the layer export options
*/
export var ExportFileFormat;
var ExportFileFormat;
(function (ExportFileFormat) {

@@ -194,15 +196,15 @@ ExportFileFormat["PNG"] = "png";

ExportFileFormat["SVG"] = "svg";
})(ExportFileFormat || (ExportFileFormat = {}));
})(ExportFileFormat = exports.ExportFileFormat || (exports.ExportFileFormat = {}));
/**
* Enumeration of the possible types of export format naming schemes
*/
export var ExportFormatNamingScheme;
var ExportFormatNamingScheme;
(function (ExportFormatNamingScheme) {
ExportFormatNamingScheme[ExportFormatNamingScheme["Suffix"] = 0] = "Suffix";
ExportFormatNamingScheme[ExportFormatNamingScheme["Prefix"] = 1] = "Prefix";
})(ExportFormatNamingScheme || (ExportFormatNamingScheme = {}));
})(ExportFormatNamingScheme = exports.ExportFormatNamingScheme || (exports.ExportFormatNamingScheme = {}));
/**
* Enumeration of the possible values to control how an exported layer will be scaled
*/
export var VisibleScaleType;
var VisibleScaleType;
(function (VisibleScaleType) {

@@ -212,7 +214,7 @@ VisibleScaleType[VisibleScaleType["Scale"] = 0] = "Scale";

VisibleScaleType[VisibleScaleType["Height"] = 2] = "Height";
})(VisibleScaleType || (VisibleScaleType = {}));
})(VisibleScaleType = exports.VisibleScaleType || (exports.VisibleScaleType = {}));
/**
* Enumeration of the animation transition types between prototype screens
*/
export var AnimationType;
var AnimationType;
(function (AnimationType) {

@@ -224,7 +226,7 @@ AnimationType[AnimationType["None"] = 0] = "None";

AnimationType[AnimationType["SlideFromTop"] = 4] = "SlideFromTop";
})(AnimationType || (AnimationType = {}));
})(AnimationType = exports.AnimationType || (exports.AnimationType = {}));
/**
* Enumeration of the expansion states in the layer list UI
*/
export var LayerListExpanded;
var LayerListExpanded;
(function (LayerListExpanded) {

@@ -234,7 +236,7 @@ LayerListExpanded[LayerListExpanded["Undecided"] = 0] = "Undecided";

LayerListExpanded[LayerListExpanded["Expanded"] = 2] = "Expanded";
})(LayerListExpanded || (LayerListExpanded = {}));
})(LayerListExpanded = exports.LayerListExpanded || (exports.LayerListExpanded = {}));
/**
* Enumeration of the possible resize types
*/
export var ResizeType;
var ResizeType;
(function (ResizeType) {

@@ -245,15 +247,15 @@ ResizeType[ResizeType["Stretch"] = 0] = "Stretch";

ResizeType[ResizeType["Float"] = 3] = "Float";
})(ResizeType || (ResizeType = {}));
})(ResizeType = exports.ResizeType || (exports.ResizeType = {}));
/**
* Enumeration of the axis types for inferred (aka smart) layout
*/
export var InferredLayoutAxis;
var InferredLayoutAxis;
(function (InferredLayoutAxis) {
InferredLayoutAxis[InferredLayoutAxis["Horizontal"] = 0] = "Horizontal";
InferredLayoutAxis[InferredLayoutAxis["Vertical"] = 1] = "Vertical";
})(InferredLayoutAxis || (InferredLayoutAxis = {}));
})(InferredLayoutAxis = exports.InferredLayoutAxis || (exports.InferredLayoutAxis = {}));
/**
* Enumeration of the anchor types for inferred (aka smart) layout
*/
export var InferredLayoutAnchor;
var InferredLayoutAnchor;
(function (InferredLayoutAnchor) {

@@ -263,7 +265,7 @@ InferredLayoutAnchor[InferredLayoutAnchor["Min"] = 0] = "Min";

InferredLayoutAnchor[InferredLayoutAnchor["Max"] = 2] = "Max";
})(InferredLayoutAnchor || (InferredLayoutAnchor = {}));
})(InferredLayoutAnchor = exports.InferredLayoutAnchor || (exports.InferredLayoutAnchor = {}));
/**
* Enumeration of the possible values for corner rounding on shape points.
*/
export var PointsRadiusBehaviour;
var PointsRadiusBehaviour;
(function (PointsRadiusBehaviour) {

@@ -274,7 +276,7 @@ PointsRadiusBehaviour[PointsRadiusBehaviour["Disabled"] = -1] = "Disabled";

PointsRadiusBehaviour[PointsRadiusBehaviour["Smooth"] = 2] = "Smooth";
})(PointsRadiusBehaviour || (PointsRadiusBehaviour = {}));
})(PointsRadiusBehaviour = exports.PointsRadiusBehaviour || (exports.PointsRadiusBehaviour = {}));
/**
* Enumeration of the curve modes that can be applied to vector points
*/
export var CurveMode;
var CurveMode;
(function (CurveMode) {

@@ -286,7 +288,7 @@ CurveMode[CurveMode["None"] = 0] = "None";

CurveMode[CurveMode["Disconnected"] = 4] = "Disconnected";
})(CurveMode || (CurveMode = {}));
})(CurveMode = exports.CurveMode || (exports.CurveMode = {}));
/**
* Enumeration of line spacing behaviour for fixed line height text
*/
export var LineSpacingBehaviour;
var LineSpacingBehaviour;
(function (LineSpacingBehaviour) {

@@ -296,7 +298,7 @@ LineSpacingBehaviour[LineSpacingBehaviour["None"] = 0] = "None";

LineSpacingBehaviour[LineSpacingBehaviour["ConsistentBaseline"] = 2] = "ConsistentBaseline";
})(LineSpacingBehaviour || (LineSpacingBehaviour = {}));
})(LineSpacingBehaviour = exports.LineSpacingBehaviour || (exports.LineSpacingBehaviour = {}));
/**
* Enumeration of the behaviours for text layers
*/
export var TextBehaviour;
var TextBehaviour;
(function (TextBehaviour) {

@@ -306,7 +308,7 @@ TextBehaviour[TextBehaviour["Flexible"] = 0] = "Flexible";

TextBehaviour[TextBehaviour["FixedWidthAndHeight"] = 2] = "FixedWidthAndHeight";
})(TextBehaviour || (TextBehaviour = {}));
})(TextBehaviour = exports.TextBehaviour || (exports.TextBehaviour = {}));
/**
* Enumeration of the Apple bundle ids for the various variants of Sketch
*/
export var BundleId;
var BundleId;
(function (BundleId) {

@@ -319,15 +321,15 @@ BundleId["PublicRelease"] = "com.bohemiancoding.sketch3";

BundleId["Testing"] = "com.bohemiancoding.sketch3.testing";
})(BundleId || (BundleId = {}));
})(BundleId = exports.BundleId || (exports.BundleId = {}));
/**
* A numerical boolean where 0 is false, and 1 is true.
*/
export var NumericalBool;
var NumericalBool;
(function (NumericalBool) {
NumericalBool[NumericalBool["True"] = 0] = "True";
NumericalBool[NumericalBool["False"] = 1] = "False";
})(NumericalBool || (NumericalBool = {}));
})(NumericalBool = exports.NumericalBool || (exports.NumericalBool = {}));
/**
* Enum of all possible _class property values
*/
export var ClassValue;
var ClassValue;
(function (ClassValue) {

@@ -393,2 +395,2 @@ ClassValue["MSImmutableColorAsset"] = "MSImmutableColorAsset";

ClassValue["Triangle"] = "triangle";
})(ClassValue || (ClassValue = {}));
})(ClassValue = exports.ClassValue || (exports.ClassValue = {}));
{
"name": "@sketch-hq/sketch-file-format-ts",
"description": "TypeScript types for the Sketch File Format",
"version": "4.0.4",
"version": "4.0.5",
"main": "dist/index",

@@ -6,0 +6,0 @@ "types": "dist/index",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc