@figma/plugin-typings
Advanced tools
Comparing version 1.75.0 to 1.76.0
{ | ||
"name": "@figma/plugin-typings", | ||
"version": "1.75.0", | ||
"version": "1.76.0", | ||
"description": "Typings for the Figma Plugin API", | ||
@@ -5,0 +5,0 @@ "main": "", |
@@ -683,2 +683,232 @@ /* plugin-typings are auto-generated. Do not update them directly. See plugin-docs/ for instructions. */ | ||
declare type TextDecoration = 'NONE' | 'UNDERLINE' | 'STRIKETHROUGH' | ||
declare type OpenTypeFeature = | ||
| 'PCAP' | ||
| 'C2PC' | ||
| 'CASE' | ||
| 'CPSP' | ||
| 'TITL' | ||
| 'UNIC' | ||
| 'ZERO' | ||
| 'SINF' | ||
| 'ORDN' | ||
| 'AFRC' | ||
| 'DNOM' | ||
| 'NUMR' | ||
| 'LIGA' | ||
| 'CLIG' | ||
| 'DLIG' | ||
| 'HLIG' | ||
| 'RLIG' | ||
| 'AALT' | ||
| 'CALT' | ||
| 'RCLT' | ||
| 'SALT' | ||
| 'RVRN' | ||
| 'VERT' | ||
| 'SWSH' | ||
| 'CSWH' | ||
| 'NALT' | ||
| 'CCMP' | ||
| 'STCH' | ||
| 'HIST' | ||
| 'SIZE' | ||
| 'ORNM' | ||
| 'ITAL' | ||
| 'RAND' | ||
| 'DTLS' | ||
| 'FLAC' | ||
| 'MGRK' | ||
| 'SSTY' | ||
| 'KERN' | ||
| 'FWID' | ||
| 'HWID' | ||
| 'HALT' | ||
| 'TWID' | ||
| 'QWID' | ||
| 'PWID' | ||
| 'JUST' | ||
| 'LFBD' | ||
| 'OPBD' | ||
| 'RTBD' | ||
| 'PALT' | ||
| 'PKNA' | ||
| 'LTRA' | ||
| 'LTRM' | ||
| 'RTLA' | ||
| 'RTLM' | ||
| 'ABRV' | ||
| 'ABVM' | ||
| 'ABVS' | ||
| 'VALT' | ||
| 'VHAL' | ||
| 'BLWF' | ||
| 'BLWM' | ||
| 'BLWS' | ||
| 'AKHN' | ||
| 'CJCT' | ||
| 'CFAR' | ||
| 'CPCT' | ||
| 'CURS' | ||
| 'DIST' | ||
| 'EXPT' | ||
| 'FALT' | ||
| 'FINA' | ||
| 'FIN2' | ||
| 'FIN3' | ||
| 'HALF' | ||
| 'HALN' | ||
| 'HKNA' | ||
| 'HNGL' | ||
| 'HOJO' | ||
| 'INIT' | ||
| 'ISOL' | ||
| 'JP78' | ||
| 'JP83' | ||
| 'JP90' | ||
| 'JP04' | ||
| 'LJMO' | ||
| 'LOCL' | ||
| 'MARK' | ||
| 'MEDI' | ||
| 'MED2' | ||
| 'MKMK' | ||
| 'NLCK' | ||
| 'NUKT' | ||
| 'PREF' | ||
| 'PRES' | ||
| 'VPAL' | ||
| 'PSTF' | ||
| 'PSTS' | ||
| 'RKRF' | ||
| 'RPHF' | ||
| 'RUBY' | ||
| 'SMPL' | ||
| 'TJMO' | ||
| 'TNAM' | ||
| 'TRAD' | ||
| 'VATU' | ||
| 'VJMO' | ||
| 'VKNA' | ||
| 'VKRN' | ||
| 'VRTR' | ||
| 'VRT2' | ||
| 'SS01' | ||
| 'SS02' | ||
| 'SS03' | ||
| 'SS04' | ||
| 'SS05' | ||
| 'SS06' | ||
| 'SS07' | ||
| 'SS08' | ||
| 'SS09' | ||
| 'SS10' | ||
| 'SS11' | ||
| 'SS12' | ||
| 'SS13' | ||
| 'SS14' | ||
| 'SS15' | ||
| 'SS16' | ||
| 'SS17' | ||
| 'SS18' | ||
| 'SS19' | ||
| 'SS20' | ||
| 'CV01' | ||
| 'CV02' | ||
| 'CV03' | ||
| 'CV04' | ||
| 'CV05' | ||
| 'CV06' | ||
| 'CV07' | ||
| 'CV08' | ||
| 'CV09' | ||
| 'CV10' | ||
| 'CV11' | ||
| 'CV12' | ||
| 'CV13' | ||
| 'CV14' | ||
| 'CV15' | ||
| 'CV16' | ||
| 'CV17' | ||
| 'CV18' | ||
| 'CV19' | ||
| 'CV20' | ||
| 'CV21' | ||
| 'CV22' | ||
| 'CV23' | ||
| 'CV24' | ||
| 'CV25' | ||
| 'CV26' | ||
| 'CV27' | ||
| 'CV28' | ||
| 'CV29' | ||
| 'CV30' | ||
| 'CV31' | ||
| 'CV32' | ||
| 'CV33' | ||
| 'CV34' | ||
| 'CV35' | ||
| 'CV36' | ||
| 'CV37' | ||
| 'CV38' | ||
| 'CV39' | ||
| 'CV40' | ||
| 'CV41' | ||
| 'CV42' | ||
| 'CV43' | ||
| 'CV44' | ||
| 'CV45' | ||
| 'CV46' | ||
| 'CV47' | ||
| 'CV48' | ||
| 'CV49' | ||
| 'CV50' | ||
| 'CV51' | ||
| 'CV52' | ||
| 'CV53' | ||
| 'CV54' | ||
| 'CV55' | ||
| 'CV56' | ||
| 'CV57' | ||
| 'CV58' | ||
| 'CV59' | ||
| 'CV60' | ||
| 'CV61' | ||
| 'CV62' | ||
| 'CV63' | ||
| 'CV64' | ||
| 'CV65' | ||
| 'CV66' | ||
| 'CV67' | ||
| 'CV68' | ||
| 'CV69' | ||
| 'CV70' | ||
| 'CV71' | ||
| 'CV72' | ||
| 'CV73' | ||
| 'CV74' | ||
| 'CV75' | ||
| 'CV76' | ||
| 'CV77' | ||
| 'CV78' | ||
| 'CV79' | ||
| 'CV80' | ||
| 'CV81' | ||
| 'CV82' | ||
| 'CV83' | ||
| 'CV84' | ||
| 'CV85' | ||
| 'CV86' | ||
| 'CV87' | ||
| 'CV88' | ||
| 'CV89' | ||
| 'CV90' | ||
| 'CV91' | ||
| 'CV92' | ||
| 'CV93' | ||
| 'CV94' | ||
| 'CV95' | ||
| 'CV96' | ||
| 'CV97' | ||
| 'CV98' | ||
| 'CV99' | ||
interface ArcData { | ||
@@ -925,2 +1155,5 @@ readonly startingAngle: number | ||
hyperlink: HyperlinkTarget | null | ||
openTypeFeatures: { | ||
readonly [feature in OpenTypeFeature]: boolean | ||
} | ||
} | ||
@@ -1146,2 +1379,8 @@ declare type Reaction = { | ||
setBoundVariable(field: VariableBindableNodeField, variableId: string): void | ||
readonly inferredVariables?: { | ||
readonly [field in VariableBindableNodeField]?: VariableAlias[] | ||
} & { | ||
readonly fills?: VariableAlias[][] | ||
readonly strokes?: VariableAlias[][] | ||
} | ||
resolvedVariableModes: { | ||
@@ -1402,2 +1641,7 @@ [collectionId: string]: string | ||
textCase: TextCase | PluginAPI['mixed'] | ||
readonly openTypeFeatures: | ||
| { | ||
readonly [feature in OpenTypeFeature]: boolean | ||
} | ||
| PluginAPI['mixed'] | ||
textDecoration: TextDecoration | PluginAPI['mixed'] | ||
@@ -1419,2 +1663,10 @@ letterSpacing: LetterSpacing | PluginAPI['mixed'] | ||
setRangeTextCase(start: number, end: number, value: TextCase): void | ||
getRangeOpenTypeFeatures( | ||
start: number, | ||
end: number, | ||
): | ||
| { | ||
readonly [feature in OpenTypeFeature]: boolean | ||
} | ||
| PluginAPI['mixed'] | ||
getRangeTextDecoration(start: number, end: number): TextDecoration | PluginAPI['mixed'] | ||
@@ -1421,0 +1673,0 @@ setRangeTextDecoration(start: number, end: number, value: TextDecoration): void |
69093
2310