File tree Expand file tree Collapse file tree 4 files changed +20
-6
lines changed Expand file tree Collapse file tree 4 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 11import { default as _render } from './render' ;
22import { default as _renderToJSON } from './renderToJSON' ;
3- import { makeSymbol as _makeSymbol } from './symbol' ;
4- import { SketchLayer , WrappedSketchLayer , PlatformBridge } from './types' ;
3+ import { makeSymbol as _makeSymbol , SymbolMasterProps } from './symbol' ;
4+ import {
5+ SketchLayer ,
6+ WrappedSketchLayer ,
7+ PlatformBridge ,
8+ SketchDocumentData ,
9+ WrappedSketchDocument ,
10+ SketchDocument ,
11+ } from './types' ;
512import { FileFormat1 as FileFormat } from '@sketch-hq/sketch-file-format-ts' ;
613import { default as _TextStyles } from './sharedStyles/TextStyles' ;
714
Original file line number Diff line number Diff line change 11import { default as _render } from './render' ;
22import { default as _renderToJSON } from './renderToJSON' ;
3- import { makeSymbol as _makeSymbol } from './symbol' ;
4- import { SketchLayer , WrappedSketchLayer , PlatformBridge } from './types' ;
3+ import { makeSymbol as _makeSymbol , SymbolMasterProps } from './symbol' ;
4+ import {
5+ SketchLayer ,
6+ WrappedSketchLayer ,
7+ PlatformBridge ,
8+ SketchDocumentData ,
9+ WrappedSketchDocument ,
10+ SketchDocument ,
11+ } from './types' ;
512import { FileFormat1 as FileFormat } from '@sketch-hq/sketch-file-format-ts' ;
613import { default as _TextStyles } from './sharedStyles/TextStyles' ;
714import SketchBridge from './platformBridges/SketchBridge' ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export default class TextRenderer extends SketchRenderer {
3232 this . platformBridge ,
3333 ) ;
3434
35- const resolvedTextStyle = TextStyles . resolve ( textStyle ) ;
35+ const resolvedTextStyle = TextStyles ( ( ) => this . platformBridge ) . resolve ( textStyle ) ;
3636 if ( resolvedTextStyle ) {
3737 if ( ! layer . style ) {
3838 layer . style = resolvedTextStyle . sketchStyle ;
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ export type SymbolMasterProps = PropTypes.InferProps<typeof SymbolMasterPropType
154154export const makeSymbol = async (
155155 Component : React . ComponentType < any > ,
156156 symbolProps : string | SymbolMasterProps ,
157- document ? : SketchDocumentData | SketchDocument | WrappedSketchDocument ,
157+ document : SketchDocumentData | SketchDocument | WrappedSketchDocument | null ,
158158 bridge : PlatformBridge ,
159159) => {
160160 if ( ! hasInitialized && isRunningInSketch ( ) ) {
You can’t perform that action at this time.
0 commit comments