1- type Points = Vector2D [ ] ;
2- type Vector = [ number , number , number ?] ;
3- type Vector2D = [ number , number ] ;
4- type Vector3D = [ number , number , number ] ;
5- type Color = [ number , number , number , number ] ;
6- interface PathValue { }
1+ export type Points = Vector2D [ ] ;
2+ export type Vector = [ number , number , number ?] ;
3+ export type Vector2D = [ number , number ] ;
4+ export type Vector3D = [ number , number , number ] ;
5+ export type Color = [ number , number , number , number ] ;
6+ export interface PathValue { }
77
8- type SourceData = any [ ] ;
8+ export type SourceData = any [ ] ;
99
1010// Global objects, attributes, and methods
1111export const PathBase : PathValue = { } ;
1212
13- interface Key {
13+ export interface Key {
1414 value : Value ;
1515 time : number ;
1616}
@@ -26,7 +26,7 @@ export const PointsBase: Vector2D[] = [
2626 [ 0 , 100 ] ,
2727] ;
2828
29- interface Project {
29+ export interface Project {
3030 readonly fullPath : string ;
3131 readonly bitsPerChannel : "8" | "16" | "32" ;
3232 readonly linearBlending : boolean ;
@@ -38,11 +38,11 @@ export const ProjectBase: Project = {
3838 linearBlending : true ,
3939} ;
4040
41- interface MarkerParam {
41+ export interface MarkerParam {
4242 [ id : string ] : any ;
4343}
4444
45- interface Marker {
45+ export interface Marker {
4646 readonly time : number ;
4747 readonly index : number ;
4848 readonly duration : number ;
@@ -56,13 +56,13 @@ interface Marker {
5656 readonly protectedRegion : boolean ;
5757}
5858
59- interface MarkerProperty {
59+ export interface MarkerProperty {
6060 readonly numKeys : number ;
6161 key ( index : number | string ) : Marker ;
6262 nearestKey ( t : number ) : Marker ;
6363}
6464
65- interface Comp {
65+ export interface Comp {
6666 readonly name : string ;
6767 readonly numLayers : number ;
6868 readonly activeCamera : Camera | null ;
@@ -97,15 +97,15 @@ export const CompBase: Comp = {
9797 layer : ( indexOrOtherLayer , relIndex ) => LayerBase ,
9898} ;
9999
100- interface PropertyGroup {
100+ export interface PropertyGroup {
101101 readonly name : string ;
102102}
103103
104104export const PropertyGroupBase : PropertyGroup = {
105105 name : "property group base" ,
106106} ;
107107
108- type Value =
108+ export type Value =
109109 | number
110110 | Vector
111111 | Vector2D
@@ -117,7 +117,7 @@ type Value =
117117
118118export const ValueBase : Value = 1 ;
119119
120- interface Property {
120+ export interface Property {
121121 readonly value : Value ;
122122 readonly name : string ;
123123 readonly velocity : number | [ ] ;
@@ -156,7 +156,7 @@ interface Property {
156156 propertyGroup ( countUp : number ) : PropertyGroup ;
157157}
158158
159- interface PathProperty extends Property {
159+ export interface PathProperty extends Property {
160160 points ( time ?: number ) : Vector2D [ ] ;
161161 inTangents ( time ?: number ) : Vector2D [ ] ;
162162 outTangents ( time ?: number ) : Vector2D [ ] ;
@@ -166,7 +166,7 @@ interface PathProperty extends Property {
166166 normalOnPath ( percentage ?: number , time ?: number ) : Vector2D ;
167167}
168168
169- type loopType = "cycle" | "pingpong" | "offset" | "continue" ;
169+ export type loopType = "cycle" | "pingpong" | "offset" | "continue" ;
170170
171171export const PropertyBase : PathProperty = {
172172 value : "property base string value" ,
@@ -199,7 +199,7 @@ export const PropertyBase: PathProperty = {
199199 normalOnPath : ( percentage = 0.5 , t = time ) => [ 0 , 0 ] ,
200200} ;
201201
202- interface Transform extends PropertyGroup {
202+ export interface Transform extends PropertyGroup {
203203 anchorPoint : Property ;
204204 position : Property ;
205205 scale : Property ;
@@ -208,7 +208,7 @@ interface Transform extends PropertyGroup {
208208 rotationX ?: Property ;
209209}
210210
211- const TransformBase : Transform = {
211+ export const TransformBase : Transform = {
212212 name : "Transform" ,
213213 anchorPoint : PropertyBase ,
214214 position : PropertyBase ,
@@ -218,7 +218,7 @@ const TransformBase: Transform = {
218218 rotationX : PropertyBase ,
219219} ;
220220
221- interface MaterialOptions extends PropertyGroup {
221+ export interface MaterialOptions extends PropertyGroup {
222222 lightTransmission : Property ;
223223 castShadows : Property ;
224224 acceptsShadows : Property ;
@@ -230,7 +230,7 @@ interface MaterialOptions extends PropertyGroup {
230230 metal : Property ;
231231}
232232
233- const MaterialBase : MaterialOptions = {
233+ export const MaterialBase : MaterialOptions = {
234234 name : "Material Property Group" ,
235235 lightTransmission : PropertyBase ,
236236 castShadows : PropertyBase ,
@@ -243,11 +243,11 @@ const MaterialBase: MaterialOptions = {
243243 metal : PropertyBase ,
244244} ;
245245
246- interface Effects extends PropertyGroup { }
246+ export interface Effects extends PropertyGroup { }
247247
248- interface Masks extends PropertyGroup { }
248+ export interface Masks extends PropertyGroup { }
249249
250- interface SourceRect {
250+ export interface SourceRect {
251251 readonly top : number ;
252252 readonly left : number ;
253253 readonly width : number ;
@@ -261,7 +261,7 @@ export const SourceRectBase: SourceRect = {
261261 height : 100 ,
262262} ;
263263
264- interface Effect {
264+ export interface Effect {
265265 active : boolean ;
266266 param ( nameOrIndex : string | number ) : Property ;
267267}
@@ -271,7 +271,7 @@ export const EffectBase: Effect = {
271271 param : ( nameOrIndex ) => PropertyBase ,
272272} ;
273273
274- interface Mask {
274+ export interface Mask {
275275 maskOpacity : Property ;
276276 maskFeather : Property ;
277277 maskExpansion : Property ;
@@ -285,7 +285,7 @@ export const MaskBase: Mask = {
285285 invert : false ,
286286} ;
287287
288- interface Light {
288+ export interface Light {
289289 pointOfInterest : Vector3D ;
290290 intensity : number ;
291291 color : Color ;
@@ -295,9 +295,9 @@ interface Light {
295295 shadowDiffusion : number ;
296296}
297297
298- interface Camera { }
298+ export interface Camera { }
299299
300- interface Layer {
300+ export interface Layer {
301301 readonly name : string ;
302302 readonly source ?: Comp | Footage ;
303303 readonly width : number ;
@@ -382,7 +382,7 @@ export function comp(index: number | string) {
382382export const time : number = 0 ;
383383export const colorDepth : number = 8 ;
384384
385- interface Footage {
385+ export interface Footage {
386386 readonly name : string ;
387387 readonly width ?: number ;
388388 readonly height ?: number ;
@@ -398,7 +398,7 @@ interface Footage {
398398 dataKeyValues ?( dataPath : [ ] , t0 ?: number , t1 ?: number ) : number [ ] ;
399399}
400400
401- const FootageBase : Footage = {
401+ export const FootageBase : Footage = {
402402 name : "Footage Item" ,
403403 width : 1920 ,
404404 height : 1080 ,
0 commit comments