@sketch-hq/sketch-web-renderer 12.0.0 → 12.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -70,7 +70,7 @@ export interface PRMarinaFileArtboard {
70
70
  bounds: PRMarinaRect;
71
71
  name: EmbindString;
72
72
  objectId: EmbindString;
73
- getNode(): PRMarinaNode;
73
+ getNode(): PRMarinaNode | null;
74
74
  delete(): void;
75
75
  }
76
76
 
@@ -88,7 +88,7 @@ export interface PrototypeLayer {
88
88
  name: EmbindString;
89
89
  type: EmbindString;
90
90
  id: EmbindString;
91
- getNode(): PRMarinaNode;
91
+ getNode(): PRMarinaNode | null;
92
92
  delete(): void;
93
93
  }
94
94
 
@@ -212,8 +212,8 @@ export interface PRArtboardLayout {
212
212
  export interface PRMarinaNodeArtboard {
213
213
  templateBounds: PRMarinaRect;
214
214
  templateName: EmbindString;
215
- getGrid(): PRArtboardGrid;
216
- getLayout(): PRArtboardLayout;
215
+ getGrid(): PRArtboardGrid | null;
216
+ getLayout(): PRArtboardLayout | null;
217
217
  delete(): void;
218
218
  }
219
219
 
@@ -256,7 +256,7 @@ export interface PRMarinaColorVariableReference {
256
256
 
257
257
  export interface PRMarinaColor {
258
258
  value: PRColor;
259
- getVariableReference(): PRMarinaColorVariableReference;
259
+ getVariableReference(): PRMarinaColorVariableReference | null;
260
260
  delete(): void;
261
261
  }
262
262
 
@@ -345,8 +345,8 @@ export interface PRMarinaBorder {
345
345
  position: PRMarinaLayerBorderPositionEnum;
346
346
  thickness: number;
347
347
  appearance: PRMarinaAppearance;
348
- getGradient(): PRMarinaGradient;
349
- getColor(): PRMarinaColor;
348
+ getGradient(): PRMarinaGradient | null;
349
+ getColor(): PRMarinaColor | null;
350
350
  delete(): void;
351
351
  }
352
352
 
@@ -356,8 +356,8 @@ export interface PRMarinaFill {
356
356
  patternFillType: PRMarinaLayerImageFillTypeEnum;
357
357
  patternTileScale: number;
358
358
  appearance: PRMarinaAppearance;
359
- getGradient(): PRMarinaGradient;
360
- getColor(): PRMarinaColor;
359
+ getGradient(): PRMarinaGradient | null;
360
+ getColor(): PRMarinaColor | null;
361
361
  delete(): void;
362
362
  }
363
363
 
@@ -412,8 +412,8 @@ export interface PRMarinaLayerStyle {
412
412
  shadows: PRMarinaShadowStyleVector;
413
413
  innerShadows: PRMarinaShadowStyleVector;
414
414
  verticalTextAlignment: PRMarinaLayerVerticalTextAlignmentEnum;
415
- getBlur(): PRMarinaBlur;
416
- getTextAttributes(): PRMarinaTextAttributes;
415
+ getBlur(): PRMarinaBlur | null;
416
+ getTextAttributes(): PRMarinaTextAttributes | null;
417
417
  delete(): void;
418
418
  }
419
419
 
@@ -429,9 +429,9 @@ export interface PRMarinaSharedStyleReference {
429
429
 
430
430
  export interface PRMarinaOverridableLayerStyle {
431
431
  isDirty: boolean;
432
- getLayerStyle(): PRMarinaLayerStyle;
433
- getOriginalSharedStyleValues(): PRMarinaLayerStyle;
434
- getSharedStyleReference(): PRMarinaSharedStyleReference;
432
+ getLayerStyle(): PRMarinaLayerStyle | null;
433
+ getOriginalSharedStyleValues(): PRMarinaLayerStyle | null;
434
+ getSharedStyleReference(): PRMarinaSharedStyleReference | null;
435
435
  delete(): void;
436
436
  }
437
437
 
@@ -443,24 +443,24 @@ export interface PRMarinaLayer {
443
443
  type: PRMarinaLayerTypeEnum;
444
444
  rotation: number;
445
445
  locked: boolean;
446
- getCorners(): PRMarinaCorners;
447
- getAttributedString(): PRMarinaAttributedString;
448
- getStyle(): PRMarinaOverridableLayerStyle;
446
+ getCorners(): PRMarinaCorners | null;
447
+ getAttributedString(): PRMarinaAttributedString | null;
448
+ getStyle(): PRMarinaOverridableLayerStyle | null;
449
449
  delete(): void;
450
450
  }
451
451
 
452
452
  export interface PRMarinaNode {
453
453
  getName(): string;
454
- getParentNode(): PRMarinaNode;
454
+ getParentNode(): PRMarinaNode | null;
455
455
  getAbsoluteBounds(): PRMarinaRect;
456
456
  getAbsoluteLayerBounds(): PRMarinaRect;
457
457
  getAbsoluteExtent(): PRMarinaRect;
458
458
  getLayerUUID(): string;
459
459
  getIdentifier(): bigint;
460
- getExportFormats(): PRMarinaExportFormats;
461
- getArtboard(): PRMarinaNodeArtboard;
460
+ getExportFormats(): PRMarinaExportFormats | null;
461
+ getArtboard(): PRMarinaNodeArtboard | null;
462
462
  isLayer(): boolean;
463
- getLayer(): PRMarinaLayer;
463
+ getLayer(): PRMarinaLayer | null;
464
464
  isArtboard(): boolean;
465
465
  isPage(): boolean;
466
466
  isGroup(): boolean;
@@ -468,7 +468,7 @@ export interface PRMarinaNode {
468
468
  getLayerName(): string;
469
469
  hasFragmentPending(): boolean;
470
470
  getScrollBounds(): PRMarinaRect;
471
- getSymbolMasterReference(): PRMarinaSymbolMasterReference;
471
+ getSymbolMasterReference(): PRMarinaSymbolMasterReference | null;
472
472
  setUserInteraction(_0: EmbindString): void;
473
473
  getChildren(): PRMarinaNodeVector;
474
474
  getScrollPosition(): PRMarinaPoint;
@@ -554,7 +554,7 @@ export interface PRFileMarina {
554
554
  }
555
555
 
556
556
  export interface CanvasRendererWasm {
557
- getUserEventsCollector(): PRUserEventsCollector;
557
+ getUserEventsCollector(): PRUserEventsCollector | null;
558
558
  getPRFile(): PRFileMarina;
559
559
  startRenderLoop(): void;
560
560
  stopRenderLoop(): void;
@@ -657,7 +657,7 @@ export type PrototypeAssetsManagerLimits = {
657
657
  };
658
658
 
659
659
  export interface PrototypeRendererWasm {
660
- getUserEventsCollector(): PRUserEventsCollector;
660
+ getUserEventsCollector(): PRUserEventsCollector | null;
661
661
  startDownload(_0: any): void;
662
662
  startRenderLoop(): void;
663
663
  stopRenderLoop(): void;