adofai 3.0.0 → 3.1.0

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.
Files changed (138) hide show
  1. package/README.md +111 -111
  2. package/dist/src/effectProcessor.js +37 -2
  3. package/dist/src/events/AddComponent.d.ts +7 -0
  4. package/dist/src/events/AddComponent.js +1 -0
  5. package/dist/src/events/AddDecoration.d.ts +25 -0
  6. package/dist/src/events/AddDecoration.js +1 -0
  7. package/dist/src/events/AddObject.d.ts +16 -0
  8. package/dist/src/events/AddObject.js +1 -0
  9. package/dist/src/events/AddParticle.d.ts +6 -0
  10. package/dist/src/events/AddParticle.js +1 -0
  11. package/dist/src/events/AddText.d.ts +22 -0
  12. package/dist/src/events/AddText.js +1 -0
  13. package/dist/src/events/AnimateTrack.d.ts +18 -0
  14. package/dist/src/events/AnimateTrack.js +1 -0
  15. package/dist/src/events/AutoPlayTiles.d.ts +7 -0
  16. package/dist/src/events/AutoPlayTiles.js +1 -0
  17. package/dist/src/events/Bloom.d.ts +15 -0
  18. package/dist/src/events/Bloom.js +1 -0
  19. package/dist/src/events/Bookmark.d.ts +8 -0
  20. package/dist/src/events/Bookmark.js +1 -0
  21. package/dist/src/events/CallMethod.d.ts +8 -0
  22. package/dist/src/events/CallMethod.js +1 -0
  23. package/dist/src/events/ChangeTrack.d.ts +12 -0
  24. package/dist/src/events/ChangeTrack.js +1 -0
  25. package/dist/src/events/Checkpoint.d.ts +4 -0
  26. package/dist/src/events/Checkpoint.js +1 -0
  27. package/dist/src/events/ColorTrack.d.ts +13 -0
  28. package/dist/src/events/ColorTrack.js +1 -0
  29. package/dist/src/events/CustomBackground.d.ts +24 -0
  30. package/dist/src/events/CustomBackground.js +1 -0
  31. package/dist/src/events/EditorComment.d.ts +6 -0
  32. package/dist/src/events/EditorComment.js +1 -0
  33. package/dist/src/events/EmitParticle.d.ts +7 -0
  34. package/dist/src/events/EmitParticle.js +1 -0
  35. package/dist/src/events/Flash.d.ts +14 -0
  36. package/dist/src/events/Flash.js +1 -0
  37. package/dist/src/events/FreeRoam.d.ts +11 -0
  38. package/dist/src/events/FreeRoam.js +1 -0
  39. package/dist/src/events/FreeRoamRemove.d.ts +7 -0
  40. package/dist/src/events/FreeRoamRemove.js +1 -0
  41. package/dist/src/events/FreeRoamTwirl.d.ts +7 -0
  42. package/dist/src/events/FreeRoamTwirl.js +1 -0
  43. package/dist/src/events/HallOfMirrors.d.ts +6 -0
  44. package/dist/src/events/HallOfMirrors.js +1 -0
  45. package/dist/src/events/Hide.d.ts +10 -0
  46. package/dist/src/events/Hide.js +1 -0
  47. package/dist/src/events/Hold.d.ts +6 -0
  48. package/dist/src/events/Hold.js +1 -0
  49. package/dist/src/events/KillPlayer.d.ts +5 -0
  50. package/dist/src/events/KillPlayer.js +1 -0
  51. package/dist/src/events/MoveCamera.d.ts +14 -0
  52. package/dist/src/events/MoveCamera.js +1 -0
  53. package/dist/src/events/MoveDecorations.d.ts +19 -0
  54. package/dist/src/events/MoveDecorations.js +1 -0
  55. package/dist/src/events/MoveTrack.d.ts +15 -0
  56. package/dist/src/events/MoveTrack.js +1 -0
  57. package/dist/src/events/MultiPlanet.d.ts +6 -0
  58. package/dist/src/events/MultiPlanet.js +1 -0
  59. package/dist/src/events/Multitap.d.ts +5 -0
  60. package/dist/src/events/Multitap.js +1 -0
  61. package/dist/src/events/Pause.d.ts +9 -0
  62. package/dist/src/events/Pause.js +1 -0
  63. package/dist/src/events/PlaySound.d.ts +11 -0
  64. package/dist/src/events/PlaySound.js +1 -0
  65. package/dist/src/events/PositionTrack.d.ts +11 -0
  66. package/dist/src/events/PositionTrack.js +1 -0
  67. package/dist/src/events/RecolorTrack.d.ts +14 -0
  68. package/dist/src/events/RecolorTrack.js +1 -0
  69. package/dist/src/events/RepeatEvents.d.ts +10 -0
  70. package/dist/src/events/RepeatEvents.js +1 -0
  71. package/dist/src/events/ScaleMargin.d.ts +8 -0
  72. package/dist/src/events/ScaleMargin.js +1 -0
  73. package/dist/src/events/ScalePlanets.d.ts +12 -0
  74. package/dist/src/events/ScalePlanets.js +1 -0
  75. package/dist/src/events/ScaleRadius.d.ts +8 -0
  76. package/dist/src/events/ScaleRadius.js +1 -0
  77. package/dist/src/events/ScreenScroll.d.ts +9 -0
  78. package/dist/src/events/ScreenScroll.js +1 -0
  79. package/dist/src/events/ScreenTile.d.ts +9 -0
  80. package/dist/src/events/ScreenTile.js +1 -0
  81. package/dist/src/events/SetConditionalEvents.d.ts +9 -0
  82. package/dist/src/events/SetConditionalEvents.js +1 -0
  83. package/dist/src/events/SetDefaultText.d.ts +7 -0
  84. package/dist/src/events/SetDefaultText.js +1 -0
  85. package/dist/src/events/SetFilter.d.ts +11 -0
  86. package/dist/src/events/SetFilter.js +1 -0
  87. package/dist/src/events/SetFilterAdvanced.d.ts +11 -0
  88. package/dist/src/events/SetFilterAdvanced.js +1 -0
  89. package/dist/src/events/SetFloorIcon.d.ts +8 -0
  90. package/dist/src/events/SetFloorIcon.js +1 -0
  91. package/dist/src/events/SetFrameRate.d.ts +8 -0
  92. package/dist/src/events/SetFrameRate.js +1 -0
  93. package/dist/src/events/SetHitsound.d.ts +10 -0
  94. package/dist/src/events/SetHitsound.js +1 -0
  95. package/dist/src/events/SetHoldSound.d.ts +14 -0
  96. package/dist/src/events/SetHoldSound.js +1 -0
  97. package/dist/src/events/SetInputEvent.d.ts +10 -0
  98. package/dist/src/events/SetInputEvent.js +1 -0
  99. package/dist/src/events/SetObject.d.ts +17 -0
  100. package/dist/src/events/SetObject.js +1 -0
  101. package/dist/src/events/SetParticle.d.ts +17 -0
  102. package/dist/src/events/SetParticle.js +1 -0
  103. package/dist/src/events/SetPlanetRotation.d.ts +9 -0
  104. package/dist/src/events/SetPlanetRotation.js +1 -0
  105. package/dist/src/events/SetSpeed.d.ts +5 -0
  106. package/dist/src/events/SetSpeed.js +1 -0
  107. package/dist/src/events/SetText.d.ts +19 -0
  108. package/dist/src/events/SetText.js +1 -0
  109. package/dist/src/events/ShakeScreen.d.ts +11 -0
  110. package/dist/src/events/ShakeScreen.js +1 -0
  111. package/dist/src/events/TileDimensions.d.ts +9 -0
  112. package/dist/src/events/TileDimensions.js +1 -0
  113. package/dist/src/events/Twirl.d.ts +4 -0
  114. package/dist/src/events/Twirl.js +1 -0
  115. package/dist/src/events/index.d.ts +56 -0
  116. package/dist/src/events/index.js +1 -0
  117. package/dist/src/format.js +3 -1
  118. package/dist/src/index.d.ts +3 -1
  119. package/dist/src/index.js +3 -1
  120. package/dist/src/pathdata.js +3 -1
  121. package/dist/src/presets.js +8 -5
  122. package/dist/src/structure/Level.d.ts +3 -3
  123. package/dist/src/structure/Level.js +20 -1
  124. package/dist/src/structure/interfaces.d.ts +7 -2
  125. package/dist/src/types.d.ts +96 -0
  126. package/dist/src/types.js +7 -0
  127. package/dist/umd/index.js +1 -1
  128. package/package.json +97 -92
  129. package/dist/src/parser/ArrayBufferParser copy.d.ts +0 -9
  130. package/dist/src/parser/ArrayBufferParser copy.js +0 -98
  131. package/dist/src/parser/BufferParser copy.d.ts +0 -9
  132. package/dist/src/parser/BufferParser copy.js +0 -92
  133. package/dist/src/parser/BufferParserX.d.ts +0 -23
  134. package/dist/src/parser/BufferParserX.js +0 -77
  135. package/dist/src/parser/FileParser.d.ts +0 -9
  136. package/dist/src/parser/FileParser.js +0 -30
  137. package/dist/src/structure/format copy.d.ts +0 -8
  138. package/dist/src/structure/format copy.js +0 -44
@@ -0,0 +1,14 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ import type { Vec2, RelativeTo, ABoolean } from '../types';
3
+ export interface MoveCamera extends AdofaiEvent {
4
+ eventType: 'MoveCamera';
5
+ duration?: number;
6
+ relativeTo?: RelativeTo;
7
+ position?: Vec2;
8
+ rotation?: number;
9
+ zoom?: number;
10
+ minZoom?: number;
11
+ maxZoom?: number;
12
+ easing?: string;
13
+ editorOnly?: ABoolean;
14
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ import type { Vec2 } from '../types';
3
+ export interface MoveDecorations extends AdofaiEvent {
4
+ eventType: 'MoveDecorations';
5
+ duration?: number;
6
+ tag?: string;
7
+ positionOffset?: Vec2;
8
+ rotationOffset?: number;
9
+ scale?: Vec2;
10
+ opacity?: number;
11
+ color?: string;
12
+ colorTo?: string;
13
+ colorToDuration?: number;
14
+ colorToEasing?: string;
15
+ easing?: string;
16
+ angleOffset?: number;
17
+ parallaxOffset?: Vec2;
18
+ pivotOffset?: Vec2;
19
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ import type { Vec2 } from '../types';
3
+ export interface MoveTrack extends AdofaiEvent {
4
+ eventType: 'MoveTrack';
5
+ startTile?: number;
6
+ floorCount?: number;
7
+ duration?: number;
8
+ positionOffset?: Vec2;
9
+ rotation?: number;
10
+ scale?: Vec2;
11
+ opacity?: number;
12
+ easing?: string;
13
+ tag?: string;
14
+ angleOffset?: number;
15
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ export interface MultiPlanet extends AdofaiEvent {
3
+ eventType: 'MultiPlanet';
4
+ planets?: number;
5
+ angleOffset?: number;
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ export interface Multitap extends AdofaiEvent {
3
+ eventType: 'Multitap';
4
+ angleOffset?: number;
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ import type { AngleCorrectionDir } from '../types';
3
+ export interface Pause extends AdofaiEvent {
4
+ eventType: 'Pause';
5
+ duration?: number;
6
+ angleCorrectionDir?: AngleCorrectionDir;
7
+ countdownTicks?: number;
8
+ angleOffset?: number;
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ import type { ABoolean } from '../types';
3
+ export interface PlaySound extends AdofaiEvent {
4
+ eventType: 'PlaySound';
5
+ sound?: string;
6
+ volume?: number;
7
+ pan?: number;
8
+ loop?: ABoolean;
9
+ editorOnly?: ABoolean;
10
+ angleOffset?: number;
11
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ import type { Vec2, ABoolean } from '../types';
3
+ export interface PositionTrack extends AdofaiEvent {
4
+ eventType: 'PositionTrack';
5
+ startTile?: number;
6
+ floorCount?: number;
7
+ positionOffset?: Vec2;
8
+ easing?: string;
9
+ editorOnly?: ABoolean;
10
+ angleOffset?: number;
11
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ export interface RecolorTrack extends AdofaiEvent {
3
+ eventType: 'RecolorTrack';
4
+ startTile?: number;
5
+ floorCount?: number;
6
+ duration?: number;
7
+ trackColor?: string;
8
+ trackColorTo?: string;
9
+ trackColorToDuration?: number;
10
+ trackColorToEasing?: string;
11
+ easing?: string;
12
+ tag?: string;
13
+ angleOffset?: number;
14
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ export interface RepeatEvents extends AdofaiEvent {
3
+ eventType: 'RepeatEvents';
4
+ repetitions?: number;
5
+ interval?: number;
6
+ intervalRandom?: number;
7
+ easing?: string;
8
+ duration?: number;
9
+ angleOffset?: number;
10
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ import type { ABoolean } from '../types';
3
+ export interface ScaleMargin extends AdofaiEvent {
4
+ eventType: 'ScaleMargin';
5
+ scale?: number;
6
+ editorOnly?: ABoolean;
7
+ angleOffset?: number;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ import type { TargetPlanet } from '../types';
3
+ export interface ScalePlanets extends AdofaiEvent {
4
+ eventType: 'ScalePlanets';
5
+ planetsScale?: number;
6
+ scale?: number;
7
+ duration?: number;
8
+ easing?: string;
9
+ targetPlanet?: TargetPlanet;
10
+ planetNumber?: number;
11
+ angleOffset?: number;
12
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ import type { ABoolean } from '../types';
3
+ export interface ScaleRadius extends AdofaiEvent {
4
+ eventType: 'ScaleRadius';
5
+ scale?: number;
6
+ editorOnly?: ABoolean;
7
+ angleOffset?: number;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ export interface ScreenScroll extends AdofaiEvent {
3
+ eventType: 'ScreenScroll';
4
+ duration?: number;
5
+ scrollX?: number;
6
+ scrollY?: number;
7
+ easing?: string;
8
+ angleOffset?: number;
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ export interface ScreenTile extends AdofaiEvent {
3
+ eventType: 'ScreenTile';
4
+ duration?: number;
5
+ tileX?: number;
6
+ tileY?: number;
7
+ easing?: string;
8
+ angleOffset?: number;
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ import type { Condition } from '../types';
3
+ export interface SetConditionalEvents extends AdofaiEvent {
4
+ eventType: 'SetConditionalEvents';
5
+ eventTag?: string;
6
+ condition?: Condition;
7
+ execution?: string;
8
+ events?: any[];
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ export interface SetDefaultText extends AdofaiEvent {
3
+ eventType: 'SetDefaultText';
4
+ decText?: string;
5
+ tag?: string;
6
+ angleOffset?: number;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ import type { FilterType } from '../types';
3
+ export interface SetFilter extends AdofaiEvent {
4
+ eventType: 'SetFilter';
5
+ filterType?: FilterType;
6
+ intensity?: number;
7
+ duration?: number;
8
+ easing?: string;
9
+ angleOffset?: number;
10
+ [key: string]: any;
11
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ import type { FilterType } from '../types';
3
+ export interface SetFilterAdvanced extends AdofaiEvent {
4
+ eventType: 'SetFilterAdvanced';
5
+ filterType?: FilterType;
6
+ intensity?: number;
7
+ duration?: number;
8
+ easing?: string;
9
+ angleOffset?: number;
10
+ [key: string]: any;
11
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ import type { ABoolean } from '../types';
3
+ export interface SetFloorIcon extends AdofaiEvent {
4
+ eventType: 'SetFloorIcon';
5
+ floorIcon?: string;
6
+ editorOnly?: ABoolean;
7
+ angleOffset?: number;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ import type { ABoolean } from '../types';
3
+ export interface SetFrameRate extends AdofaiEvent {
4
+ eventType: 'SetFrameRate';
5
+ frameRate?: number;
6
+ editorOnly?: ABoolean;
7
+ angleOffset?: number;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ import type { HitsoundType, ABoolean } from '../types';
3
+ export interface SetHitsound extends AdofaiEvent {
4
+ eventType: 'SetHitsound';
5
+ hitsound?: HitsoundType;
6
+ hitsoundVolume?: number;
7
+ customHitsound?: string;
8
+ ease?: ABoolean;
9
+ angleOffset?: number;
10
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ import type { HoldMidSoundTimingRelativeTo } from '../types';
3
+ export interface SetHoldSound extends AdofaiEvent {
4
+ eventType: 'SetHoldSound';
5
+ holdStartSound?: string;
6
+ holdStartSoundVolume?: number;
7
+ holdMidSound?: string;
8
+ holdMidSoundVolume?: number;
9
+ holdMidSoundTiming?: number;
10
+ holdMidSoundTimingRelativeTo?: HoldMidSoundTimingRelativeTo;
11
+ holdEndSound?: string;
12
+ holdEndSoundVolume?: number;
13
+ angleOffset?: number;
14
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ import type { InputEventState, InputEventTarget, ABoolean } from '../types';
3
+ export interface SetInputEvent extends AdofaiEvent {
4
+ eventType: 'SetInputEvent';
5
+ inputAction?: string;
6
+ inputEventState?: InputEventState;
7
+ inputEventTarget?: InputEventTarget;
8
+ editorOnly?: ABoolean;
9
+ angleOffset?: number;
10
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ import type { Vec2 } from '../types';
3
+ export interface SetObject extends AdofaiEvent {
4
+ eventType: 'SetObject';
5
+ tag?: string;
6
+ duration?: number;
7
+ positionOffset?: Vec2;
8
+ rotationOffset?: number;
9
+ scale?: Vec2;
10
+ opacity?: number;
11
+ color?: string;
12
+ colorTo?: string;
13
+ colorToDuration?: number;
14
+ colorToEasing?: string;
15
+ easing?: string;
16
+ angleOffset?: number;
17
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ import type { Vec2 } from '../types';
3
+ export interface SetParticle extends AdofaiEvent {
4
+ eventType: 'SetParticle';
5
+ tag?: string;
6
+ duration?: number;
7
+ positionOffset?: Vec2;
8
+ rotationOffset?: number;
9
+ scale?: number;
10
+ opacity?: number;
11
+ color?: string;
12
+ colorTo?: string;
13
+ colorToDuration?: number;
14
+ colorToEasing?: string;
15
+ easing?: string;
16
+ angleOffset?: number;
17
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ export interface SetPlanetRotation extends AdofaiEvent {
3
+ eventType: 'SetPlanetRotation';
4
+ ease?: string;
5
+ easeParts?: number;
6
+ easing?: string;
7
+ duration?: number;
8
+ angleOffset?: number;
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ export interface SetSpeed extends AdofaiEvent {
3
+ eventType: 'SetSpeed';
4
+ speed?: number;
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ import type { Vec2 } from '../types';
3
+ export interface SetText extends AdofaiEvent {
4
+ eventType: 'SetText';
5
+ decText?: string;
6
+ tag?: string;
7
+ duration?: number;
8
+ color?: string;
9
+ colorTo?: string;
10
+ colorToDuration?: number;
11
+ colorToEasing?: string;
12
+ fadeIn?: number;
13
+ fadeOut?: number;
14
+ easing?: string;
15
+ positionOffset?: Vec2;
16
+ rotationOffset?: number;
17
+ scale?: Vec2;
18
+ opacity?: number;
19
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ export interface ShakeScreen extends AdofaiEvent {
3
+ eventType: 'ShakeScreen';
4
+ duration?: number;
5
+ intensity?: number;
6
+ intensityTo?: number;
7
+ intensityToDuration?: number;
8
+ intensityToEasing?: string;
9
+ easing?: string;
10
+ angleOffset?: number;
11
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ export interface TileDimensions extends AdofaiEvent {
3
+ eventType: 'TileDimensions';
4
+ scale?: number;
5
+ scaleTo?: number;
6
+ scaleToDuration?: number;
7
+ scaleToEasing?: string;
8
+ angleOffset?: number;
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { AdofaiEvent } from '../structure/interfaces';
2
+ export interface Twirl extends AdofaiEvent {
3
+ eventType: 'Twirl';
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,56 @@
1
+ export type { SetSpeed } from './SetSpeed';
2
+ export type { Twirl } from './Twirl';
3
+ export type { Checkpoint } from './Checkpoint';
4
+ export type { MoveCamera } from './MoveCamera';
5
+ export type { CustomBackground } from './CustomBackground';
6
+ export type { ChangeTrack } from './ChangeTrack';
7
+ export type { ColorTrack } from './ColorTrack';
8
+ export type { AnimateTrack } from './AnimateTrack';
9
+ export type { RecolorTrack } from './RecolorTrack';
10
+ export type { MoveTrack } from './MoveTrack';
11
+ export type { SetText } from './SetText';
12
+ export type { Flash } from './Flash';
13
+ export type { SetHitsound } from './SetHitsound';
14
+ export type { SetFilter } from './SetFilter';
15
+ export type { SetFilterAdvanced } from './SetFilterAdvanced';
16
+ export type { SetPlanetRotation } from './SetPlanetRotation';
17
+ export type { HallOfMirrors } from './HallOfMirrors';
18
+ export type { ShakeScreen } from './ShakeScreen';
19
+ export type { MoveDecorations } from './MoveDecorations';
20
+ export type { PositionTrack } from './PositionTrack';
21
+ export type { RepeatEvents } from './RepeatEvents';
22
+ export type { Bloom } from './Bloom';
23
+ export type { Hold } from './Hold';
24
+ export type { SetHoldSound } from './SetHoldSound';
25
+ export type { SetConditionalEvents } from './SetConditionalEvents';
26
+ export type { ScreenTile } from './ScreenTile';
27
+ export type { ScreenScroll } from './ScreenScroll';
28
+ export type { EditorComment } from './EditorComment';
29
+ export type { Bookmark } from './Bookmark';
30
+ export type { CallMethod } from './CallMethod';
31
+ export type { AddComponent } from './AddComponent';
32
+ export type { PlaySound } from './PlaySound';
33
+ export type { MultiPlanet } from './MultiPlanet';
34
+ export type { FreeRoam } from './FreeRoam';
35
+ export type { FreeRoamTwirl } from './FreeRoamTwirl';
36
+ export type { FreeRoamRemove } from './FreeRoamRemove';
37
+ export type { Pause } from './Pause';
38
+ export type { AutoPlayTiles } from './AutoPlayTiles';
39
+ export type { Hide } from './Hide';
40
+ export type { ScaleMargin } from './ScaleMargin';
41
+ export type { ScaleRadius } from './ScaleRadius';
42
+ export type { Multitap } from './Multitap';
43
+ export type { TileDimensions } from './TileDimensions';
44
+ export type { KillPlayer } from './KillPlayer';
45
+ export type { ScalePlanets } from './ScalePlanets';
46
+ export type { SetFloorIcon } from './SetFloorIcon';
47
+ export type { AddDecoration } from './AddDecoration';
48
+ export type { AddText } from './AddText';
49
+ export type { AddObject } from './AddObject';
50
+ export type { SetObject } from './SetObject';
51
+ export type { SetDefaultText } from './SetDefaultText';
52
+ export type { SetFrameRate } from './SetFrameRate';
53
+ export type { AddParticle } from './AddParticle';
54
+ export type { SetParticle } from './SetParticle';
55
+ export type { EmitParticle } from './EmitParticle';
56
+ export type { SetInputEvent } from './SetInputEvent';
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
1
3
  /**
2
4
  * @param {object} obj - JSON Object
3
5
  * @param {number} indent - No usage
@@ -41,4 +43,4 @@ function formatAsSingleLine(obj) {
41
43
  const entries = keys.map(key => JSON.stringify(key) + ': ' + formatAsSingleLine(obj[key])).join(', ');
42
44
  return '{' + entries + '}';
43
45
  }
44
- export default exportAsADOFAI;
46
+ exports.default = exportAsADOFAI;
@@ -2,4 +2,6 @@ import pathData from './pathdata';
2
2
  import * as Parsers from './parser';
3
3
  import Level, * as Structure from './structure';
4
4
  import * as Presets from './filter/presets';
5
- export { pathData, Parsers, Level, Structure, Presets };
5
+ import * as Events from './events';
6
+ import * as Types from './types';
7
+ export { pathData, Parsers, Level, Structure, Presets, Events, Types };
package/dist/src/index.js CHANGED
@@ -2,4 +2,6 @@ import pathData from './pathdata';
2
2
  import * as Parsers from './parser';
3
3
  import Level, * as Structure from './structure';
4
4
  import * as Presets from './filter/presets';
5
- export { pathData, Parsers, Level, Structure, Presets };
5
+ import * as Events from './events';
6
+ import * as Types from './types';
7
+ export { pathData, Parsers, Level, Structure, Presets, Events, Types };
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
1
3
  const pathDataTable = { "R": 0, "p": 15, "J": 30, "E": 45, "T": 60, "o": 75, "U": 90, "q": 105, "G": 120, "Q": 135, "H": 150, "W": 165, "L": 180, "x": 195, "N": 210, "Z": 225, "F": 240, "V": 255, "D": 270, "Y": 285, "B": 300, "C": 315, "M": 330, "A": 345, "5": 555, "6": 666, "7": 777, "8": 888, "!": 999 };
2
4
  /**
3
5
  * @param {string} pathdata - PathData from ADOFAI
@@ -8,7 +10,7 @@ function parseToangleData(pathdata) {
8
10
  let result = pt.map(t => pathDataTable[t]);
9
11
  return result;
10
12
  }
11
- export default {
13
+ exports.default = {
12
14
  pathDataTable,
13
15
  parseToangleData
14
16
  };