@sketch-hq/sketch-file-format-ts
Advanced tools
Comparing version 5.2.0 to 5.2.1
# @sketch-hq/sketch-file-format-ts | ||
## 5.2.1 | ||
### Patch Changes | ||
- 3a2a6ea: Update sketch-file-format to 3.7.1 | ||
## 5.2.0 | ||
@@ -4,0 +10,0 @@ |
@@ -438,3 +438,3 @@ /** | ||
/** | ||
* A symbol master layer represents a reusable group of layers | ||
* A symbol source layer represents a reusable group of layers | ||
*/ | ||
@@ -466,18 +466,20 @@ export declare type SymbolMaster = { | ||
hasClickThrough: boolean; | ||
horizontalRulerData: RulerData; | ||
verticalRulerData: RulerData; | ||
layout?: LayoutGrid; | ||
grid?: SimpleGrid; | ||
groupLayout?: FreeformGroupLayout | InferredGroupLayout; | ||
layers: (Artboard | Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolMaster | SymbolInstance | Slice | Hotspot | Bitmap)[]; | ||
includeInCloudUpload: boolean; | ||
_class: 'symbolMaster'; | ||
backgroundColor: Color; | ||
hasBackgroundColor: boolean; | ||
horizontalRulerData: RulerData; | ||
includeBackgroundColorInInstance: boolean; | ||
includeBackgroundColorInExport: boolean; | ||
includeInCloudUpload: boolean; | ||
isFlowHome: boolean; | ||
resizesContent: boolean; | ||
verticalRulerData: RulerData; | ||
includeBackgroundColorInInstance: boolean; | ||
presetDictionary?: any; | ||
symbolID: Uuid; | ||
allowsOverrides: boolean; | ||
overrideProperties: OverrideProperty[]; | ||
presetDictionary?: any; | ||
layers: (Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolInstance | Slice | Hotspot | Bitmap)[]; | ||
}; | ||
@@ -591,2 +593,37 @@ /** | ||
/** | ||
* Defines persisted ruler positions on artboards, pages and symbols | ||
*/ | ||
export declare type RulerData = { | ||
_class: 'rulerData'; | ||
base: number; | ||
guides: number[]; | ||
}; | ||
/** | ||
* Defines the layout settings for an artboard or page | ||
*/ | ||
export declare type LayoutGrid = { | ||
_class: 'layoutGrid'; | ||
isEnabled: boolean; | ||
columnWidth: number; | ||
gutterHeight: number; | ||
gutterWidth: number; | ||
horizontalOffset: number; | ||
numberOfColumns: number; | ||
rowHeightMultiplication: number; | ||
totalWidth: number; | ||
guttersOutside: boolean; | ||
drawHorizontal: boolean; | ||
drawHorizontalLines: boolean; | ||
drawVertical: boolean; | ||
}; | ||
/** | ||
* Defines the grid settings for an artboard or page | ||
*/ | ||
export declare type SimpleGrid = { | ||
_class: 'simpleGrid'; | ||
isEnabled: boolean; | ||
gridSize: number; | ||
thickGridTimes: number; | ||
}; | ||
/** | ||
* Normal group layout | ||
@@ -623,45 +660,14 @@ */ | ||
/** | ||
* Artboard layers are a document organisation aid. They have a fixed frame that usually map to variations of device dimensions or viewport sizes | ||
* Defines override properties on symbol sources | ||
*/ | ||
export declare type Artboard = { | ||
do_objectID: Uuid; | ||
booleanOperation: BooleanOperation; | ||
exportOptions: ExportOptions; | ||
frame: Rect; | ||
flow?: FlowConnection; | ||
isFixedToViewport: boolean; | ||
isFlippedHorizontal: boolean; | ||
isFlippedVertical: boolean; | ||
isLocked: boolean; | ||
isVisible: boolean; | ||
layerListExpandedType: LayerListExpanded; | ||
name: string; | ||
nameIsFixed: boolean; | ||
resizingConstraint: number; | ||
resizingType: ResizeType; | ||
rotation: number; | ||
sharedStyleID?: Uuid; | ||
shouldBreakMaskChain: boolean; | ||
hasClippingMask?: boolean; | ||
clippingMaskMode?: number; | ||
userInfo?: any; | ||
style?: Style; | ||
maintainScrollPosition?: boolean; | ||
hasClickThrough: boolean; | ||
groupLayout?: FreeformGroupLayout | InferredGroupLayout; | ||
layers: (Artboard | Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolMaster | SymbolInstance | Slice | Hotspot | Bitmap)[]; | ||
_class: 'artboard'; | ||
includeInCloudUpload: boolean; | ||
includeBackgroundColorInExport: boolean; | ||
horizontalRulerData: RulerData; | ||
verticalRulerData: RulerData; | ||
layout?: LayoutGrid; | ||
grid?: SimpleGrid; | ||
backgroundColor: Color; | ||
hasBackgroundColor: boolean; | ||
isFlowHome: boolean; | ||
resizesContent: boolean; | ||
presetDictionary?: any; | ||
export declare type OverrideProperty = { | ||
_class: 'MSImmutableOverrideProperty'; | ||
overrideName: OverrideName; | ||
canOverride: boolean; | ||
}; | ||
/** | ||
* Defines the valid string patterns for an override name | ||
*/ | ||
export declare type OverrideName = string | string | string | string; | ||
/** | ||
* Group layers are a document organisation aid | ||
@@ -695,3 +701,3 @@ */ | ||
groupLayout?: FreeformGroupLayout | InferredGroupLayout; | ||
layers: (Artboard | Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolMaster | SymbolInstance | Slice | Hotspot | Bitmap)[]; | ||
layers: (Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolInstance | Slice | Hotspot | Bitmap)[]; | ||
_class: 'group'; | ||
@@ -965,3 +971,3 @@ }; | ||
groupLayout?: FreeformGroupLayout | InferredGroupLayout; | ||
layers: (Artboard | Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolMaster | SymbolInstance | Slice | Hotspot | Bitmap)[]; | ||
layers: (Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolInstance | Slice | Hotspot | Bitmap)[]; | ||
_class: 'shapeGroup'; | ||
@@ -1049,3 +1055,3 @@ windingRule: WindingRule; | ||
/** | ||
* Symbol instance layers represent an instance of a symbol master | ||
* Symbol instance layers represent an instance of a symbol source | ||
*/ | ||
@@ -1093,6 +1099,2 @@ export declare type SymbolInstance = { | ||
/** | ||
* Defines the valid string patterns for an override name | ||
*/ | ||
export declare type OverrideName = string | string | string | string; | ||
/** | ||
* Slice layers allow the content beneath their frame to be exported | ||
@@ -1191,45 +1193,2 @@ */ | ||
/** | ||
* Defines persisted ruler positions on artboards, pages and symbols | ||
*/ | ||
export declare type RulerData = { | ||
_class: 'rulerData'; | ||
base: number; | ||
guides: number[]; | ||
}; | ||
/** | ||
* Defines the layout settings for an artboard or page | ||
*/ | ||
export declare type LayoutGrid = { | ||
_class: 'layoutGrid'; | ||
isEnabled: boolean; | ||
columnWidth: number; | ||
gutterHeight: number; | ||
gutterWidth: number; | ||
horizontalOffset: number; | ||
numberOfColumns: number; | ||
rowHeightMultiplication: number; | ||
totalWidth: number; | ||
guttersOutside: boolean; | ||
drawHorizontal: boolean; | ||
drawHorizontalLines: boolean; | ||
drawVertical: boolean; | ||
}; | ||
/** | ||
* Defines the grid settings for an artboard or page | ||
*/ | ||
export declare type SimpleGrid = { | ||
_class: 'simpleGrid'; | ||
isEnabled: boolean; | ||
gridSize: number; | ||
thickGridTimes: number; | ||
}; | ||
/** | ||
* Defines override properties on symbol masters | ||
*/ | ||
export declare type OverrideProperty = { | ||
_class: 'MSImmutableOverrideProperty'; | ||
overrideName: OverrideName; | ||
canOverride: boolean; | ||
}; | ||
/** | ||
* Defines a text style that has been imported from a library | ||
@@ -1342,6 +1301,39 @@ */ | ||
hasClickThrough: boolean; | ||
horizontalRulerData: RulerData; | ||
verticalRulerData: RulerData; | ||
layout?: LayoutGrid; | ||
grid?: SimpleGrid; | ||
groupLayout?: FreeformGroupLayout | InferredGroupLayout; | ||
includeInCloudUpload: boolean; | ||
_class: 'page'; | ||
layers: (Artboard | Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolMaster | SymbolInstance | Slice | Hotspot | Bitmap)[]; | ||
_class: 'page'; | ||
includeInCloudUpload: boolean; | ||
}; | ||
/** | ||
* Artboard layers are a document organisation aid. They have a fixed frame that usually map to variations of device dimensions or viewport sizes | ||
*/ | ||
export declare type Artboard = { | ||
do_objectID: Uuid; | ||
booleanOperation: BooleanOperation; | ||
exportOptions: ExportOptions; | ||
frame: Rect; | ||
flow?: FlowConnection; | ||
isFixedToViewport: boolean; | ||
isFlippedHorizontal: boolean; | ||
isFlippedVertical: boolean; | ||
isLocked: boolean; | ||
isVisible: boolean; | ||
layerListExpandedType: LayerListExpanded; | ||
name: string; | ||
nameIsFixed: boolean; | ||
resizingConstraint: number; | ||
resizingType: ResizeType; | ||
rotation: number; | ||
sharedStyleID?: Uuid; | ||
shouldBreakMaskChain: boolean; | ||
hasClippingMask?: boolean; | ||
clippingMaskMode?: number; | ||
userInfo?: any; | ||
style?: Style; | ||
maintainScrollPosition?: boolean; | ||
hasClickThrough: boolean; | ||
horizontalRulerData: RulerData; | ||
@@ -1351,2 +1343,12 @@ verticalRulerData: RulerData; | ||
grid?: SimpleGrid; | ||
groupLayout?: FreeformGroupLayout | InferredGroupLayout; | ||
includeInCloudUpload: boolean; | ||
_class: 'artboard'; | ||
backgroundColor: Color; | ||
hasBackgroundColor: boolean; | ||
includeBackgroundColorInExport: boolean; | ||
isFlowHome: boolean; | ||
resizesContent: boolean; | ||
presetDictionary?: any; | ||
layers: (Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolInstance | Slice | Hotspot | Bitmap)[]; | ||
}; | ||
@@ -1474,11 +1476,11 @@ /** | ||
*/ | ||
export declare type AnyLayer = SymbolMaster | Artboard | Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolInstance | Slice | Hotspot | Bitmap | Page; | ||
export declare type AnyLayer = SymbolMaster | Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolInstance | Slice | Hotspot | Bitmap | Page | Artboard; | ||
/** | ||
* Union of all group layers | ||
*/ | ||
export declare type AnyGroup = SymbolMaster | Artboard | Group | ShapeGroup | Page; | ||
export declare type AnyGroup = SymbolMaster | Group | ShapeGroup | Page | Artboard; | ||
/** | ||
* Union of all objects, i.e. objects with a _class property | ||
*/ | ||
export declare type AnyObject = AssetCollection | ImageCollection | ColorAsset | Color | GradientAsset | Gradient | GradientStop | FileRef | DataRef | ForeignLayerStyle | SharedStyle | Style | Border | GraphicsContextSettings | BorderOptions | Blur | Fill | TextStyle | ParagraphStyle | FontDescriptor | Shadow | InnerShadow | ColorControls | ForeignSymbol | SymbolMaster | ExportOptions | ExportFormat | Rect | FlowConnection | FreeformGroupLayout | InferredGroupLayout | Artboard | Group | Oval | CurvePoint | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | AttributedString | StringAttribute | SymbolInstance | OverrideValue | Slice | Hotspot | Bitmap | RulerData | LayoutGrid | SimpleGrid | OverrideProperty | ForeignTextStyle | ForeignSwatch | Swatch | SharedStyleContainer | SharedTextStyleContainer | SymbolContainer | SwatchContainer | FontRef | Page; | ||
export declare type AnyObject = AssetCollection | ImageCollection | ColorAsset | Color | GradientAsset | Gradient | GradientStop | FileRef | DataRef | ForeignLayerStyle | SharedStyle | Style | Border | GraphicsContextSettings | BorderOptions | Blur | Fill | TextStyle | ParagraphStyle | FontDescriptor | Shadow | InnerShadow | ColorControls | ForeignSymbol | SymbolMaster | ExportOptions | ExportFormat | Rect | FlowConnection | RulerData | LayoutGrid | SimpleGrid | FreeformGroupLayout | InferredGroupLayout | OverrideProperty | Group | Oval | CurvePoint | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | AttributedString | StringAttribute | SymbolInstance | OverrideValue | Slice | Hotspot | Bitmap | ForeignTextStyle | ForeignSwatch | Swatch | SharedStyleContainer | SharedTextStyleContainer | SymbolContainer | SwatchContainer | FontRef | Page | Artboard; | ||
/** | ||
@@ -1485,0 +1487,0 @@ * Enum of all possible _class property values |
@@ -438,3 +438,3 @@ /** | ||
/** | ||
* A symbol master layer represents a reusable group of layers | ||
* A symbol source layer represents a reusable group of layers | ||
*/ | ||
@@ -466,18 +466,20 @@ export declare type SymbolMaster = { | ||
hasClickThrough: boolean; | ||
horizontalRulerData: RulerData; | ||
verticalRulerData: RulerData; | ||
layout?: LayoutGrid; | ||
grid?: SimpleGrid; | ||
groupLayout?: FreeformGroupLayout | InferredGroupLayout; | ||
layers: (Artboard | Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolMaster | SymbolInstance | Slice | Hotspot | Bitmap)[]; | ||
includeInCloudUpload: boolean; | ||
_class: 'symbolMaster'; | ||
backgroundColor: Color; | ||
hasBackgroundColor: boolean; | ||
horizontalRulerData: RulerData; | ||
includeBackgroundColorInInstance: boolean; | ||
includeBackgroundColorInExport: boolean; | ||
includeInCloudUpload: boolean; | ||
isFlowHome: boolean; | ||
resizesContent: boolean; | ||
verticalRulerData: RulerData; | ||
includeBackgroundColorInInstance: boolean; | ||
presetDictionary?: any; | ||
symbolID: Uuid; | ||
allowsOverrides: boolean; | ||
overrideProperties: OverrideProperty[]; | ||
presetDictionary?: any; | ||
layers: (Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolInstance | Slice | Hotspot | Bitmap)[]; | ||
}; | ||
@@ -591,2 +593,37 @@ /** | ||
/** | ||
* Defines persisted ruler positions on artboards, pages and symbols | ||
*/ | ||
export declare type RulerData = { | ||
_class: 'rulerData'; | ||
base: number; | ||
guides: number[]; | ||
}; | ||
/** | ||
* Defines the layout settings for an artboard or page | ||
*/ | ||
export declare type LayoutGrid = { | ||
_class: 'layoutGrid'; | ||
isEnabled: boolean; | ||
columnWidth: number; | ||
gutterHeight: number; | ||
gutterWidth: number; | ||
horizontalOffset: number; | ||
numberOfColumns: number; | ||
rowHeightMultiplication: number; | ||
totalWidth: number; | ||
guttersOutside: boolean; | ||
drawHorizontal: boolean; | ||
drawHorizontalLines: boolean; | ||
drawVertical: boolean; | ||
}; | ||
/** | ||
* Defines the grid settings for an artboard or page | ||
*/ | ||
export declare type SimpleGrid = { | ||
_class: 'simpleGrid'; | ||
isEnabled: boolean; | ||
gridSize: number; | ||
thickGridTimes: number; | ||
}; | ||
/** | ||
* Normal group layout | ||
@@ -623,45 +660,14 @@ */ | ||
/** | ||
* Artboard layers are a document organisation aid. They have a fixed frame that usually map to variations of device dimensions or viewport sizes | ||
* Defines override properties on symbol sources | ||
*/ | ||
export declare type Artboard = { | ||
do_objectID: Uuid; | ||
booleanOperation: BooleanOperation; | ||
exportOptions: ExportOptions; | ||
frame: Rect; | ||
flow?: FlowConnection; | ||
isFixedToViewport: boolean; | ||
isFlippedHorizontal: boolean; | ||
isFlippedVertical: boolean; | ||
isLocked: boolean; | ||
isVisible: boolean; | ||
layerListExpandedType: LayerListExpanded; | ||
name: string; | ||
nameIsFixed: boolean; | ||
resizingConstraint: number; | ||
resizingType: ResizeType; | ||
rotation: number; | ||
sharedStyleID?: Uuid; | ||
shouldBreakMaskChain: boolean; | ||
hasClippingMask?: boolean; | ||
clippingMaskMode?: number; | ||
userInfo?: any; | ||
style?: Style; | ||
maintainScrollPosition?: boolean; | ||
hasClickThrough: boolean; | ||
groupLayout?: FreeformGroupLayout | InferredGroupLayout; | ||
layers: (Artboard | Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolMaster | SymbolInstance | Slice | Hotspot | Bitmap)[]; | ||
_class: 'artboard'; | ||
includeInCloudUpload: boolean; | ||
includeBackgroundColorInExport: boolean; | ||
horizontalRulerData: RulerData; | ||
verticalRulerData: RulerData; | ||
layout?: LayoutGrid; | ||
grid?: SimpleGrid; | ||
backgroundColor: Color; | ||
hasBackgroundColor: boolean; | ||
isFlowHome: boolean; | ||
resizesContent: boolean; | ||
presetDictionary?: any; | ||
export declare type OverrideProperty = { | ||
_class: 'MSImmutableOverrideProperty'; | ||
overrideName: OverrideName; | ||
canOverride: boolean; | ||
}; | ||
/** | ||
* Defines the valid string patterns for an override name | ||
*/ | ||
export declare type OverrideName = string | string | string | string; | ||
/** | ||
* Group layers are a document organisation aid | ||
@@ -695,3 +701,3 @@ */ | ||
groupLayout?: FreeformGroupLayout | InferredGroupLayout; | ||
layers: (Artboard | Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolMaster | SymbolInstance | Slice | Hotspot | Bitmap)[]; | ||
layers: (Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolInstance | Slice | Hotspot | Bitmap)[]; | ||
_class: 'group'; | ||
@@ -965,3 +971,3 @@ }; | ||
groupLayout?: FreeformGroupLayout | InferredGroupLayout; | ||
layers: (Artboard | Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolMaster | SymbolInstance | Slice | Hotspot | Bitmap)[]; | ||
layers: (Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolInstance | Slice | Hotspot | Bitmap)[]; | ||
_class: 'shapeGroup'; | ||
@@ -1049,3 +1055,3 @@ windingRule: WindingRule; | ||
/** | ||
* Symbol instance layers represent an instance of a symbol master | ||
* Symbol instance layers represent an instance of a symbol source | ||
*/ | ||
@@ -1093,6 +1099,2 @@ export declare type SymbolInstance = { | ||
/** | ||
* Defines the valid string patterns for an override name | ||
*/ | ||
export declare type OverrideName = string | string | string | string; | ||
/** | ||
* Slice layers allow the content beneath their frame to be exported | ||
@@ -1191,45 +1193,2 @@ */ | ||
/** | ||
* Defines persisted ruler positions on artboards, pages and symbols | ||
*/ | ||
export declare type RulerData = { | ||
_class: 'rulerData'; | ||
base: number; | ||
guides: number[]; | ||
}; | ||
/** | ||
* Defines the layout settings for an artboard or page | ||
*/ | ||
export declare type LayoutGrid = { | ||
_class: 'layoutGrid'; | ||
isEnabled: boolean; | ||
columnWidth: number; | ||
gutterHeight: number; | ||
gutterWidth: number; | ||
horizontalOffset: number; | ||
numberOfColumns: number; | ||
rowHeightMultiplication: number; | ||
totalWidth: number; | ||
guttersOutside: boolean; | ||
drawHorizontal: boolean; | ||
drawHorizontalLines: boolean; | ||
drawVertical: boolean; | ||
}; | ||
/** | ||
* Defines the grid settings for an artboard or page | ||
*/ | ||
export declare type SimpleGrid = { | ||
_class: 'simpleGrid'; | ||
isEnabled: boolean; | ||
gridSize: number; | ||
thickGridTimes: number; | ||
}; | ||
/** | ||
* Defines override properties on symbol masters | ||
*/ | ||
export declare type OverrideProperty = { | ||
_class: 'MSImmutableOverrideProperty'; | ||
overrideName: OverrideName; | ||
canOverride: boolean; | ||
}; | ||
/** | ||
* Defines a text style that has been imported from a library | ||
@@ -1342,6 +1301,39 @@ */ | ||
hasClickThrough: boolean; | ||
horizontalRulerData: RulerData; | ||
verticalRulerData: RulerData; | ||
layout?: LayoutGrid; | ||
grid?: SimpleGrid; | ||
groupLayout?: FreeformGroupLayout | InferredGroupLayout; | ||
includeInCloudUpload: boolean; | ||
_class: 'page'; | ||
layers: (Artboard | Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolMaster | SymbolInstance | Slice | Hotspot | Bitmap)[]; | ||
_class: 'page'; | ||
includeInCloudUpload: boolean; | ||
}; | ||
/** | ||
* Artboard layers are a document organisation aid. They have a fixed frame that usually map to variations of device dimensions or viewport sizes | ||
*/ | ||
export declare type Artboard = { | ||
do_objectID: Uuid; | ||
booleanOperation: BooleanOperation; | ||
exportOptions: ExportOptions; | ||
frame: Rect; | ||
flow?: FlowConnection; | ||
isFixedToViewport: boolean; | ||
isFlippedHorizontal: boolean; | ||
isFlippedVertical: boolean; | ||
isLocked: boolean; | ||
isVisible: boolean; | ||
layerListExpandedType: LayerListExpanded; | ||
name: string; | ||
nameIsFixed: boolean; | ||
resizingConstraint: number; | ||
resizingType: ResizeType; | ||
rotation: number; | ||
sharedStyleID?: Uuid; | ||
shouldBreakMaskChain: boolean; | ||
hasClippingMask?: boolean; | ||
clippingMaskMode?: number; | ||
userInfo?: any; | ||
style?: Style; | ||
maintainScrollPosition?: boolean; | ||
hasClickThrough: boolean; | ||
horizontalRulerData: RulerData; | ||
@@ -1351,2 +1343,12 @@ verticalRulerData: RulerData; | ||
grid?: SimpleGrid; | ||
groupLayout?: FreeformGroupLayout | InferredGroupLayout; | ||
includeInCloudUpload: boolean; | ||
_class: 'artboard'; | ||
backgroundColor: Color; | ||
hasBackgroundColor: boolean; | ||
includeBackgroundColorInExport: boolean; | ||
isFlowHome: boolean; | ||
resizesContent: boolean; | ||
presetDictionary?: any; | ||
layers: (Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolInstance | Slice | Hotspot | Bitmap)[]; | ||
}; | ||
@@ -1474,11 +1476,11 @@ /** | ||
*/ | ||
export declare type AnyLayer = SymbolMaster | Artboard | Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolInstance | Slice | Hotspot | Bitmap | Page; | ||
export declare type AnyLayer = SymbolMaster | Group | Oval | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | SymbolInstance | Slice | Hotspot | Bitmap | Page | Artboard; | ||
/** | ||
* Union of all group layers | ||
*/ | ||
export declare type AnyGroup = SymbolMaster | Artboard | Group | ShapeGroup | Page; | ||
export declare type AnyGroup = SymbolMaster | Group | ShapeGroup | Page | Artboard; | ||
/** | ||
* Union of all objects, i.e. objects with a _class property | ||
*/ | ||
export declare type AnyObject = AssetCollection | ImageCollection | ColorAsset | Color | GradientAsset | Gradient | GradientStop | FileRef | DataRef | ForeignLayerStyle | SharedStyle | Style | Border | GraphicsContextSettings | BorderOptions | Blur | Fill | TextStyle | ParagraphStyle | FontDescriptor | Shadow | InnerShadow | ColorControls | ForeignSymbol | SymbolMaster | ExportOptions | ExportFormat | Rect | FlowConnection | FreeformGroupLayout | InferredGroupLayout | Artboard | Group | Oval | CurvePoint | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | AttributedString | StringAttribute | SymbolInstance | OverrideValue | Slice | Hotspot | Bitmap | RulerData | LayoutGrid | SimpleGrid | OverrideProperty | ForeignTextStyle | ForeignSwatch | Swatch | SharedStyleContainer | SharedTextStyleContainer | SymbolContainer | SwatchContainer | FontRef | Page; | ||
export declare type AnyObject = AssetCollection | ImageCollection | ColorAsset | Color | GradientAsset | Gradient | GradientStop | FileRef | DataRef | ForeignLayerStyle | SharedStyle | Style | Border | GraphicsContextSettings | BorderOptions | Blur | Fill | TextStyle | ParagraphStyle | FontDescriptor | Shadow | InnerShadow | ColorControls | ForeignSymbol | SymbolMaster | ExportOptions | ExportFormat | Rect | FlowConnection | RulerData | LayoutGrid | SimpleGrid | FreeformGroupLayout | InferredGroupLayout | OverrideProperty | Group | Oval | CurvePoint | Polygon | Rectangle | ShapePath | Star | Triangle | ShapeGroup | Text | AttributedString | StringAttribute | SymbolInstance | OverrideValue | Slice | Hotspot | Bitmap | ForeignTextStyle | ForeignSwatch | Swatch | SharedStyleContainer | SharedTextStyleContainer | SymbolContainer | SwatchContainer | FontRef | Page | Artboard; | ||
/** | ||
@@ -1485,0 +1487,0 @@ * Enum of all possible _class property values |
{ | ||
"name": "@sketch-hq/sketch-file-format-ts", | ||
"description": "TypeScript types for the Sketch File Format", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"main": "dist/cjs/index", | ||
@@ -9,3 +9,5 @@ "types": "dist/cjs/index", | ||
"license": "MIT", | ||
"files": ["dist"], | ||
"files": [ | ||
"dist" | ||
], | ||
"repository": "github:sketch-hq/sketch-file-format-ts", | ||
@@ -21,15 +23,15 @@ "keywords": [ | ||
"devDependencies": { | ||
"@changesets/cli": "2.6.5", | ||
"@changesets/cli": "2.12.0", | ||
"@sketch-hq/sketch-file-format-1": "npm:@sketch-hq/sketch-file-format@1.1.7", | ||
"@sketch-hq/sketch-file-format-2": "npm:@sketch-hq/sketch-file-format@2.0.3", | ||
"@sketch-hq/sketch-file-format-3": "npm:@sketch-hq/sketch-file-format@3.7.0", | ||
"@types/humps": "1.1.3", | ||
"@types/jest": "25.2.1", | ||
"@types/node": "13.7.4", | ||
"@types/prettier": "2.0.0", | ||
"@sketch-hq/sketch-file-format-3": "npm:@sketch-hq/sketch-file-format@3.7.1", | ||
"@types/humps": "2.0.0", | ||
"@types/jest": "26.0.16", | ||
"@types/node": "14.14.10", | ||
"@types/prettier": "2.1.5", | ||
"humps": "2.0.1", | ||
"jest": "25.4.0", | ||
"prettier": "2.0.5", | ||
"ts-jest": "25.4.0", | ||
"ts-node": "8.9.1", | ||
"jest": "26.6.2", | ||
"prettier": "2.2.1", | ||
"ts-jest": "26.4.4", | ||
"ts-node": "9.1.0", | ||
"typescript": "3.8.3" | ||
@@ -36,0 +38,0 @@ }, |
@@ -140,3 +140,3 @@ # Sketch File Format TS | ||
[here](https://github.com/atlassian/changesets)). | ||
1. Open a PR to `master` | ||
1. Open a PR to `main` | ||
@@ -151,3 +151,3 @@ #### Adding or updating a file format version | ||
types | ||
1. Open a PR to `master` | ||
1. Open a PR to `main` | ||
@@ -154,0 +154,0 @@ #### Release |
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
11461
356728