Skip to content

Commit 2955b57

Browse files
committed
AE: Add separate ThreeDColorValue type
1 parent a4e05bb commit 2955b57

File tree

18 files changed

+178
-160
lines changed

18 files changed

+178
-160
lines changed

AfterEffects/10.5/index.d.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ declare class AVItem extends Item {
786786

787787
/** Sets a solid as a proxy for the item. */
788788
setProxyWithSolid(
789-
color: [number, number, number],
789+
color: ThreeDColorValue,
790790
name: string,
791791
width: number,
792792
height: number,
@@ -972,7 +972,7 @@ declare class CompItem extends AVItem {
972972
preserveNestedResolution: boolean
973973

974974
/** The background color of the composition. */
975-
bgColor: [number, number, number]
975+
bgColor: ThreeDColorValue
976976

977977
/** Changes the display of the start time in the Timeline panel. */
978978
displayStartTime: number
@@ -1062,7 +1062,7 @@ declare class FootageItem extends AVItem {
10621062

10631063
/** Replaces a footage file with a solid. */
10641064
replaceWithSolid(
1065-
color: [number, number, number],
1065+
color: ThreeDColorValue,
10661066
name: string,
10671067
width: number,
10681068
height: number,
@@ -1090,7 +1090,7 @@ declare class FootageSource {
10901090
alphaMode: AlphaMode
10911091

10921092
/** The color to be premultiplied. */
1093-
premulColor: [number, number, number]
1093+
premulColor: ThreeDColorValue
10941094

10951095
/** When true, an alpha channel in a footage clip or proxy should be inverted. */
10961096
invertAlpha: boolean
@@ -1321,7 +1321,7 @@ declare class LayerCollection extends Collection {
13211321

13221322
/** Creates a new layer, a FootageItem with a SolidSource, and adds it to this collection. */
13231323
addSolid(
1324-
color: [number, number, number],
1324+
color: ThreeDColorValue,
13251325
name: string,
13261326
width: number,
13271327
height: number,
@@ -1417,7 +1417,7 @@ declare class MaskPropertyGroup extends PropertyGroup {
14171417
locked: boolean
14181418

14191419
/** The color used to draw the mask outline in the user interface. */
1420-
color: [number, number, number]
1420+
color: ThreeDColorValue
14211421

14221422
/** The shape of the mask. */
14231423
maskShape: ShapeProperty
@@ -1581,6 +1581,7 @@ declare interface NoValueType extends PropertyClassMembers {
15811581
}
15821582

15831583
type ColorValue = [number, number, number, number]
1584+
type ThreeDColorValue = [number, number, number]
15841585

15851586
declare interface ColorType extends PropertyClassMembers {
15861587
propertyValueType: PropertyValueType.COLOR
@@ -2051,7 +2052,7 @@ declare class ShapeLayer extends AVLayer {}
20512052
/** The SolidSource object represents a solid-color footage source. */
20522053
declare class SolidSource extends FootageSource {
20532054
/** The color of the solid. */
2054-
color: [number, number, number]
2055+
color: ThreeDColorValue
20552056
}
20562057

20572058
/** The file specification, an ExtendScript File object. */
@@ -2130,7 +2131,7 @@ declare class TextDocument {
21302131
applyStroke: boolean
21312132

21322133
/** The text layer’s fill color. */
2133-
fillColor: [number, number, number]
2134+
fillColor: ThreeDColorValue
21342135

21352136
/** The text layer’s font specified by its PostScript name. */
21362137
font: string
@@ -2142,7 +2143,7 @@ declare class TextDocument {
21422143
justification: ParagraphJustification
21432144

21442145
/** The text layer’s stroke color. */
2145-
strokeColor: [number, number, number]
2146+
strokeColor: ThreeDColorValue
21462147

21472148
/** Indicates the rendering order for the fill and stroke of a text layer. */
21482149
strokeOverFill: boolean

AfterEffects/11.0/index.d.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ declare class AVItem extends Item {
810810

811811
/** Sets a solid as a proxy for the item. */
812812
setProxyWithSolid(
813-
color: [number, number, number],
813+
color: ThreeDColorValue,
814814
name: string,
815815
width: number,
816816
height: number,
@@ -1002,7 +1002,7 @@ declare class CompItem extends AVItem {
10021002
preserveNestedResolution: boolean
10031003

10041004
/** The background color of the composition. */
1005-
bgColor: [number, number, number]
1005+
bgColor: ThreeDColorValue
10061006

10071007
/** Changes the display of the start time in the Timeline panel. */
10081008
displayStartTime: number
@@ -1098,7 +1098,7 @@ declare class FootageItem extends AVItem {
10981098

10991099
/** Replaces a footage file with a solid. */
11001100
replaceWithSolid(
1101-
color: [number, number, number],
1101+
color: ThreeDColorValue,
11021102
name: string,
11031103
width: number,
11041104
height: number,
@@ -1126,7 +1126,7 @@ declare class FootageSource {
11261126
alphaMode: AlphaMode
11271127

11281128
/** The color to be premultiplied. */
1129-
premulColor: [number, number, number]
1129+
premulColor: ThreeDColorValue
11301130

11311131
/** When true, an alpha channel in a footage clip or proxy should be inverted. */
11321132
invertAlpha: boolean
@@ -1357,7 +1357,7 @@ declare class LayerCollection extends Collection {
13571357

13581358
/** Creates a new layer, a FootageItem with a SolidSource, and adds it to this collection. */
13591359
addSolid(
1360-
color: [number, number, number],
1360+
color: ThreeDColorValue,
13611361
name: string,
13621362
width: number,
13631363
height: number,
@@ -1453,7 +1453,7 @@ declare class MaskPropertyGroup extends PropertyGroup {
14531453
locked: boolean
14541454

14551455
/** The color used to draw the mask outline in the user interface. */
1456-
color: [number, number, number]
1456+
color: ThreeDColorValue
14571457

14581458
/** The shape of the mask. */
14591459
maskShape: ShapeProperty
@@ -1620,6 +1620,7 @@ declare interface NoValueType extends PropertyClassMembers {
16201620
}
16211621

16221622
type ColorValue = [number, number, number, number]
1623+
type ThreeDColorValue = [number, number, number]
16231624

16241625
declare interface ColorType extends PropertyClassMembers {
16251626
propertyValueType: PropertyValueType.COLOR
@@ -2114,7 +2115,7 @@ declare class ShapeLayer extends AVLayer {}
21142115
/** The SolidSource object represents a solid-color footage source. */
21152116
declare class SolidSource extends FootageSource {
21162117
/** The color of the solid. */
2117-
color: [number, number, number]
2118+
color: ThreeDColorValue
21182119
}
21192120

21202121
/** The file specification, an ExtendScript File object. */
@@ -2193,7 +2194,7 @@ declare class TextDocument {
21932194
applyStroke: boolean
21942195

21952196
/** The text layer’s fill color. */
2196-
fillColor: [number, number, number]
2197+
fillColor: ThreeDColorValue
21972198

21982199
/** The text layer’s font specified by its PostScript name. */
21992200
font: string
@@ -2205,7 +2206,7 @@ declare class TextDocument {
22052206
justification: ParagraphJustification
22062207

22072208
/** The text layer’s stroke color. */
2208-
strokeColor: [number, number, number]
2209+
strokeColor: ThreeDColorValue
22092210

22102211
/** Indicates the rendering order for the fill and stroke of a text layer. */
22112212
strokeOverFill: boolean

AfterEffects/12.0/index.d.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ declare class AVItem extends Item {
827827

828828
/** Sets a solid as a proxy for the item. */
829829
setProxyWithSolid(
830-
color: [number, number, number],
830+
color: ThreeDColorValue,
831831
name: string,
832832
width: number,
833833
height: number,
@@ -1022,7 +1022,7 @@ declare class CompItem extends AVItem {
10221022
preserveNestedResolution: boolean
10231023

10241024
/** The background color of the composition. */
1025-
bgColor: [number, number, number]
1025+
bgColor: ThreeDColorValue
10261026

10271027
/** Changes the display of the start time in the Timeline panel. */
10281028
displayStartTime: number
@@ -1118,7 +1118,7 @@ declare class FootageItem extends AVItem {
11181118

11191119
/** Replaces a footage file with a solid. */
11201120
replaceWithSolid(
1121-
color: [number, number, number],
1121+
color: ThreeDColorValue,
11221122
name: string,
11231123
width: number,
11241124
height: number,
@@ -1146,7 +1146,7 @@ declare class FootageSource {
11461146
alphaMode: AlphaMode
11471147

11481148
/** The color to be premultiplied. */
1149-
premulColor: [number, number, number]
1149+
premulColor: ThreeDColorValue
11501150

11511151
/** When true, an alpha channel in a footage clip or proxy should be inverted. */
11521152
invertAlpha: boolean
@@ -1377,7 +1377,7 @@ declare class LayerCollection extends Collection {
13771377

13781378
/** Creates a new layer, a FootageItem with a SolidSource, and adds it to this collection. */
13791379
addSolid(
1380-
color: [number, number, number],
1380+
color: ThreeDColorValue,
13811381
name: string,
13821382
width: number,
13831383
height: number,
@@ -1473,7 +1473,7 @@ declare class MaskPropertyGroup extends PropertyGroup {
14731473
locked: boolean
14741474

14751475
/** The color used to draw the mask outline in the user interface. */
1476-
color: [number, number, number]
1476+
color: ThreeDColorValue
14771477

14781478
/** The shape of the mask. */
14791479
maskShape: ShapeProperty
@@ -1640,6 +1640,7 @@ declare interface NoValueType extends PropertyClassMembers {
16401640
}
16411641

16421642
type ColorValue = [number, number, number, number]
1643+
type ThreeDColorValue = [number, number, number]
16431644

16441645
declare interface ColorType extends PropertyClassMembers {
16451646
propertyValueType: PropertyValueType.COLOR
@@ -2134,7 +2135,7 @@ declare class ShapeLayer extends AVLayer {}
21342135
/** The SolidSource object represents a solid-color footage source. */
21352136
declare class SolidSource extends FootageSource {
21362137
/** The color of the solid. */
2137-
color: [number, number, number]
2138+
color: ThreeDColorValue
21382139
}
21392140

21402141
/** The file specification, an ExtendScript File object. */
@@ -2213,7 +2214,7 @@ declare class TextDocument {
22132214
applyStroke: boolean
22142215

22152216
/** The text layer’s fill color. */
2216-
fillColor: [number, number, number]
2217+
fillColor: ThreeDColorValue
22172218

22182219
/** The text layer’s font specified by its PostScript name. */
22192220
font: string
@@ -2225,7 +2226,7 @@ declare class TextDocument {
22252226
justification: ParagraphJustification
22262227

22272228
/** The text layer’s stroke color. */
2228-
strokeColor: [number, number, number]
2229+
strokeColor: ThreeDColorValue
22292230

22302231
/** Indicates the rendering order for the fill and stroke of a text layer. */
22312232
strokeOverFill: boolean

AfterEffects/13.0/index.d.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ declare class AVItem extends Item {
836836

837837
/** Sets a solid as a proxy for the item. */
838838
setProxyWithSolid(
839-
color: [number, number, number],
839+
color: ThreeDColorValue,
840840
name: string,
841841
width: number,
842842
height: number,
@@ -1031,7 +1031,7 @@ declare class CompItem extends AVItem {
10311031
preserveNestedResolution: boolean
10321032

10331033
/** The background color of the composition. */
1034-
bgColor: [number, number, number]
1034+
bgColor: ThreeDColorValue
10351035

10361036
/** Changes the display of the start time in the Timeline panel. */
10371037
displayStartTime: number
@@ -1127,7 +1127,7 @@ declare class FootageItem extends AVItem {
11271127

11281128
/** Replaces a footage file with a solid. */
11291129
replaceWithSolid(
1130-
color: [number, number, number],
1130+
color: ThreeDColorValue,
11311131
name: string,
11321132
width: number,
11331133
height: number,
@@ -1155,7 +1155,7 @@ declare class FootageSource {
11551155
alphaMode: AlphaMode
11561156

11571157
/** The color to be premultiplied. */
1158-
premulColor: [number, number, number]
1158+
premulColor: ThreeDColorValue
11591159

11601160
/** When true, an alpha channel in a footage clip or proxy should be inverted. */
11611161
invertAlpha: boolean
@@ -1386,7 +1386,7 @@ declare class LayerCollection extends Collection {
13861386

13871387
/** Creates a new layer, a FootageItem with a SolidSource, and adds it to this collection. */
13881388
addSolid(
1389-
color: [number, number, number],
1389+
color: ThreeDColorValue,
13901390
name: string,
13911391
width: number,
13921392
height: number,
@@ -1482,7 +1482,7 @@ declare class MaskPropertyGroup extends PropertyGroup {
14821482
locked: boolean
14831483

14841484
/** The color used to draw the mask outline in the user interface. */
1485-
color: [number, number, number]
1485+
color: ThreeDColorValue
14861486

14871487
/** The shape of the mask. */
14881488
maskShape: ShapeProperty
@@ -1688,6 +1688,7 @@ declare interface NoValueType extends PropertyClassMembers {
16881688
}
16891689

16901690
type ColorValue = [number, number, number, number]
1691+
type ThreeDColorValue = [number, number, number]
16911692

16921693
declare interface ColorType extends PropertyClassMembers {
16931694
propertyValueType: PropertyValueType.COLOR
@@ -2190,7 +2191,7 @@ declare class ShapeLayer extends AVLayer {}
21902191
/** The SolidSource object represents a solid-color footage source. */
21912192
declare class SolidSource extends FootageSource {
21922193
/** The color of the solid. */
2193-
color: [number, number, number]
2194+
color: ThreeDColorValue
21942195
}
21952196

21962197
/** The file specification, an ExtendScript File object. */
@@ -2269,7 +2270,7 @@ declare class TextDocument {
22692270
applyStroke: boolean
22702271

22712272
/** The text layer’s fill color. */
2272-
fillColor: [number, number, number]
2273+
fillColor: ThreeDColorValue
22732274

22742275
/** The text layer’s font specified by its PostScript name. */
22752276
font: string
@@ -2281,7 +2282,7 @@ declare class TextDocument {
22812282
justification: ParagraphJustification
22822283

22832284
/** The text layer’s stroke color. */
2284-
strokeColor: [number, number, number]
2285+
strokeColor: ThreeDColorValue
22852286

22862287
/** Indicates the rendering order for the fill and stroke of a text layer. */
22872288
strokeOverFill: boolean

0 commit comments

Comments
 (0)