@rocketshow/designer 1.58.0 → 1.62.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.
package/index.d.ts CHANGED
@@ -12,11 +12,11 @@ import * as i40 from '@angular/router';
12
12
  import { Router, ActivatedRoute } from '@angular/router';
13
13
  import * as THREE from 'three';
14
14
  import WaveSurfer from 'wavesurfer.js';
15
+ import { Options } from 'sortablejs';
15
16
  import * as i51 from '@ali-hm/angular-tree-component';
16
17
  import { ITreeOptions } from '@ali-hm/angular-tree-component';
17
18
  import * as i49 from 'ngx-dropzone-wrapper';
18
19
  import { DropzoneConfigInterface } from 'ngx-dropzone-wrapper';
19
- import { Options } from 'sortablejs';
20
20
  import * as i41 from '@angular/platform-browser';
21
21
  import * as i42 from '@angular/platform-browser/animations';
22
22
  import * as i43 from '@angular/forms';
@@ -560,6 +560,15 @@ declare class PresetRegionScene {
560
560
  constructor(preset: Preset, region: ScenePlaybackRegion, scene: Scene);
561
561
  }
562
562
 
563
+ declare class EffectService {
564
+ selectedEffect: Effect;
565
+ effectsOpen: boolean;
566
+ effectsOpenChanged: Subject<void>;
567
+ constructor();
568
+ static ɵfac: i0.ɵɵFactoryDeclaration<EffectService, never>;
569
+ static ɵprov: i0.ɵɵInjectableDeclaration<EffectService>;
570
+ }
571
+
563
572
  declare class AnimationService {
564
573
  timeMillis: number;
565
574
  constructor();
@@ -585,13 +594,29 @@ declare class ConfigService {
585
594
  static ɵprov: i0.ɵɵInjectableDeclaration<ConfigService>;
586
595
  }
587
596
 
588
- declare class EffectService {
589
- selectedEffect: Effect;
590
- effectsOpen: boolean;
591
- effectsOpenChanged: Subject<void>;
597
+ declare class TimelineStateService {
598
+ playState: string;
599
+ selectedComposition: Composition;
600
+ selectedCompositionIndex: number;
592
601
  constructor();
593
- static ɵfac: i0.ɵɵFactoryDeclaration<EffectService, never>;
594
- static ɵprov: i0.ɵɵInjectableDeclaration<EffectService>;
602
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimelineStateService, never>;
603
+ static ɵprov: i0.ɵɵInjectableDeclaration<TimelineStateService>;
604
+ }
605
+
606
+ declare class LivePreviewService {
607
+ private configService;
608
+ private http;
609
+ private projectService;
610
+ private animationService;
611
+ private timelineStateService;
612
+ private livePreviewTimer;
613
+ private liveChangePending;
614
+ private livePreviewPendingPositionMillis;
615
+ constructor(configService: ConfigService, http: HttpClient, projectService: ProjectService, animationService: AnimationService, timelineStateService: TimelineStateService);
616
+ previewLive(compositionName?: string, positionMillis?: number): void;
617
+ stopPreviewPlay(): void;
618
+ static ɵfac: i0.ɵɵFactoryDeclaration<LivePreviewService, never>;
619
+ static ɵprov: i0.ɵɵInjectableDeclaration<LivePreviewService>;
595
620
  }
596
621
 
597
622
  declare class PresetService {
@@ -599,17 +624,13 @@ declare class PresetService {
599
624
  private uuidService;
600
625
  private projectService;
601
626
  private fixtureService;
602
- private configService;
603
- private http;
604
- private animationService;
627
+ private livePreviewService;
605
628
  selectedPreset: Preset;
606
629
  previewSelectionChanged: Subject<void>;
607
630
  fixtureSelectionChanged: Subject<void>;
608
631
  fixtureSelectionSettingsChanged: Subject<void>;
609
632
  fixtureColorChanged: Subject<void>;
610
- livePreviewTimer: any;
611
- liveChangePending: boolean;
612
- constructor(effectService: EffectService, uuidService: UuidService, projectService: ProjectService, fixtureService: FixtureService, configService: ConfigService, http: HttpClient, animationService: AnimationService);
633
+ constructor(effectService: EffectService, uuidService: UuidService, projectService: ProjectService, fixtureService: FixtureService, livePreviewService: LivePreviewService);
613
634
  getPresetByUuid(uuid: string): Preset;
614
635
  fixtureUuidAndPixelKeyEquals(fixtureUuid1: string, fixtureUuid2: string, pixelKey1: string, pixelKey2: string): boolean;
615
636
  getPresetFixture(preset: Preset, fixtureUuid: string, pixelKey?: string): PresetFixture;
@@ -637,8 +658,6 @@ declare class PresetService {
637
658
  addPreset(name?: string): void;
638
659
  getSelectedProfiles(): FixtureProfile[];
639
660
  getSelectedProfileChannels(selectedProfiles: FixtureProfile[]): Map<FixtureProfile, CachedFixtureChannel[]>;
640
- previewLive(compositionName?: string, positionMillis?: number): void;
641
- stopPreviewPlay(): void;
642
661
  static ɵfac: i0.ɵɵFactoryDeclaration<PresetService, never>;
643
662
  static ɵprov: i0.ɵɵInjectableDeclaration<PresetService>;
644
663
  }
@@ -648,12 +667,13 @@ declare class SceneService {
648
667
  private effectService;
649
668
  private presetService;
650
669
  private projectService;
670
+ private livePreviewService;
651
671
  selectedScenes: Scene[];
652
672
  sceneColors: string[];
653
673
  multipleSelection: boolean;
654
674
  sceneDeleted: Subject<void>;
655
675
  sceneSelected: Subject<void>;
656
- constructor(uuidService: UuidService, effectService: EffectService, presetService: PresetService, projectService: ProjectService);
676
+ constructor(uuidService: UuidService, effectService: EffectService, presetService: PresetService, projectService: ProjectService, livePreviewService: LivePreviewService);
657
677
  sceneIsSelected(scene: Scene): boolean;
658
678
  presetIsSelected(preset: Preset): boolean;
659
679
  switchSceneSelection(scene: Scene): void;
@@ -673,8 +693,9 @@ declare class TimelineService {
673
693
  private http;
674
694
  private configService;
675
695
  private ngZone;
696
+ private timelineStateService;
697
+ private livePreviewService;
676
698
  waveSurfer: WaveSurfer;
677
- playState: string;
678
699
  zoom: number;
679
700
  private timeUpdateSubscription;
680
701
  currentTime: string;
@@ -686,11 +707,15 @@ declare class TimelineService {
686
707
  duration: string;
687
708
  waveSurferReady: Subject<void>;
688
709
  detectChanges: Subject<void>;
689
- selectedComposition: Composition;
690
- selectedCompositionIndex: number;
691
710
  externalCompositionsAvailable: boolean;
692
711
  loadingAudioFile: boolean;
693
- constructor(sceneService: SceneService, presetService: PresetService, projectService: ProjectService, http: HttpClient, configService: ConfigService, ngZone: NgZone);
712
+ constructor(sceneService: SceneService, presetService: PresetService, projectService: ProjectService, http: HttpClient, configService: ConfigService, ngZone: NgZone, timelineStateService: TimelineStateService, livePreviewService: LivePreviewService);
713
+ get playState(): string;
714
+ set playState(playState: string);
715
+ get selectedComposition(): Composition;
716
+ set selectedComposition(selectedComposition: Composition);
717
+ get selectedCompositionIndex(): number;
718
+ set selectedCompositionIndex(selectedCompositionIndex: number);
694
719
  private redrawAllRegions;
695
720
  private pad;
696
721
  private msToTime;
@@ -701,7 +726,7 @@ declare class TimelineService {
701
726
  timeInterval(pxPerSec: number): number;
702
727
  primaryLabelInterval(pxPerSec: number): number;
703
728
  secondaryLabelInterval(pxPerSec: number): 0 | 2 | 5;
704
- private seeekWithTimeline;
729
+ private seekWithTimeline;
705
730
  applyZoom(zoom: any): void;
706
731
  private isWaveSurferReady;
707
732
  addRegion(waveSurferRegion?: any): void;
@@ -858,7 +883,8 @@ declare class ProjectLoadService {
858
883
  private router;
859
884
  private activatedRoute;
860
885
  private warningDialogService;
861
- constructor(projectService: ProjectService, previewService: PreviewService, fixtureService: FixtureService, presetService: PresetService, sceneService: SceneService, modalService: BsModalService, uuidService: UuidService, timelineService: TimelineService, router: Router, activatedRoute: ActivatedRoute, warningDialogService: WarningDialogService);
886
+ private livePreviewService;
887
+ constructor(projectService: ProjectService, previewService: PreviewService, fixtureService: FixtureService, presetService: PresetService, sceneService: SceneService, modalService: BsModalService, uuidService: UuidService, timelineService: TimelineService, router: Router, activatedRoute: ActivatedRoute, warningDialogService: WarningDialogService, livePreviewService: LivePreviewService);
862
888
  private migrateToVersion2;
863
889
  private migrateFromOldProject;
864
890
  private afterLoad;
@@ -891,13 +917,13 @@ declare class TimelineComponent implements OnInit, AfterViewInit {
891
917
  private warningDialogService;
892
918
  private http;
893
919
  private configService;
894
- private presetService;
895
920
  introService: IntroService;
921
+ private livePreviewService;
896
922
  waveWrapper: ElementRef;
897
923
  waveElement: ElementRef;
898
924
  private lastHeight;
899
925
  private lastWidth;
900
- constructor(timelineService: TimelineService, changeDetectorRef: ChangeDetectorRef, modalService: BsModalService, uuidService: UuidService, projectService: ProjectService, hotkeyTargetExcludeService: HotkeyTargetExcludeService, warningDialogService: WarningDialogService, http: HttpClient, configService: ConfigService, presetService: PresetService, introService: IntroService);
926
+ constructor(timelineService: TimelineService, changeDetectorRef: ChangeDetectorRef, modalService: BsModalService, uuidService: UuidService, projectService: ProjectService, hotkeyTargetExcludeService: HotkeyTargetExcludeService, warningDialogService: WarningDialogService, http: HttpClient, configService: ConfigService, introService: IntroService, livePreviewService: LivePreviewService);
901
927
  ngOnInit(): void;
902
928
  ngAfterViewInit(): void;
903
929
  onResize(): void;
@@ -1015,6 +1041,7 @@ declare class EffectCurveComponent implements OnInit, OnDestroy {
1015
1041
  private translate;
1016
1042
  private effectService;
1017
1043
  private ngZone;
1044
+ livePreviewService: LivePreviewService;
1018
1045
  private gridUpdateSubscription;
1019
1046
  private ctx;
1020
1047
  private maxWidth;
@@ -1037,7 +1064,7 @@ declare class EffectCurveComponent implements OnInit, OnDestroy {
1037
1064
  curve: EffectCurve;
1038
1065
  set isSelected(value: boolean);
1039
1066
  curveGrid: ElementRef;
1040
- constructor(presetService: PresetService, animationService: AnimationService, fixtureService: FixtureService, translate: TranslateService, effectService: EffectService, ngZone: NgZone);
1067
+ constructor(presetService: PresetService, animationService: AnimationService, fixtureService: FixtureService, translate: TranslateService, effectService: EffectService, ngZone: NgZone, livePreviewService: LivePreviewService);
1041
1068
  ngOnInit(): void;
1042
1069
  ngOnDestroy(): void;
1043
1070
  private startUpdateTimer;
@@ -1096,13 +1123,14 @@ declare class FixtureCapabilityColorComponent implements OnInit, OnDestroy {
1096
1123
  private presetService;
1097
1124
  private fixtureService;
1098
1125
  private changeDetectorRef;
1126
+ private livePreviewService;
1099
1127
  color: string;
1100
1128
  colorPicker: any;
1101
1129
  active: boolean;
1102
1130
  private colorPickerMounted;
1103
1131
  private updatingColor;
1104
1132
  private updateSubscription;
1105
- constructor(presetService: PresetService, fixtureService: FixtureService, changeDetectorRef: ChangeDetectorRef);
1133
+ constructor(presetService: PresetService, fixtureService: FixtureService, changeDetectorRef: ChangeDetectorRef, livePreviewService: LivePreviewService);
1106
1134
  private update;
1107
1135
  private setPickerColor;
1108
1136
  ngOnDestroy(): void;
@@ -1121,13 +1149,16 @@ declare class FixtureComponent implements OnInit {
1121
1149
  private fixturePoolService;
1122
1150
  fixtureService: FixtureService;
1123
1151
  introService: IntroService;
1124
- constructor(projectService: ProjectService, presetService: PresetService, fixturePoolService: FixturePoolService, fixtureService: FixtureService, introService: IntroService);
1152
+ private livePreviewService;
1153
+ fixtureSortableOptions: Options;
1154
+ constructor(projectService: ProjectService, presetService: PresetService, fixturePoolService: FixturePoolService, fixtureService: FixtureService, introService: IntroService, livePreviewService: LivePreviewService);
1125
1155
  ngOnInit(): void;
1126
1156
  fixtureName(presetFixture: PresetFixture): string;
1127
1157
  fixtureIsSelected(presetFixture: PresetFixture): boolean;
1128
1158
  selectFixture(event: any, presetFixture: PresetFixture): void;
1129
1159
  selectAll(): void;
1130
1160
  selectNone(): void;
1161
+ fixtureListReordered(): void;
1131
1162
  openFixturePool(): void;
1132
1163
  static ɵfac: i0.ɵɵFactoryDeclaration<FixtureComponent, never>;
1133
1164
  static ɵcmp: i0.ɵɵComponentDeclaration<FixtureComponent, "lib-app-fixture", never, {}, {}, never, never, false, never>;
@@ -1204,7 +1235,8 @@ declare class EffectComponent implements OnInit {
1204
1235
  presetService: PresetService;
1205
1236
  effectService: EffectService;
1206
1237
  private warningDialogService;
1207
- constructor(uuidService: UuidService, presetService: PresetService, effectService: EffectService, warningDialogService: WarningDialogService);
1238
+ livePreviewService: LivePreviewService;
1239
+ constructor(uuidService: UuidService, presetService: PresetService, effectService: EffectService, warningDialogService: WarningDialogService, livePreviewService: LivePreviewService);
1208
1240
  ngOnInit(): void;
1209
1241
  private addEffect;
1210
1242
  addCurveEffect(): void;
@@ -1226,6 +1258,7 @@ declare class FixturePoolComponent implements OnInit {
1226
1258
  private presetService;
1227
1259
  configService: ConfigService;
1228
1260
  private modalService;
1261
+ private livePreviewService;
1229
1262
  private profiles;
1230
1263
  filteredProfiles: FixtureProfile[];
1231
1264
  loadingProfiles: boolean;
@@ -1239,7 +1272,7 @@ declare class FixturePoolComponent implements OnInit {
1239
1272
  onClose: Subject<number>;
1240
1273
  searchExpression: string;
1241
1274
  updatingProfiles: boolean;
1242
- constructor(bsModalRef: BsModalRef, fixtureService: FixtureService, uuidService: UuidService, projectService: ProjectService, previewService: PreviewService, translateService: TranslateService, toastrService: ToastrService, presetService: PresetService, configService: ConfigService, modalService: BsModalService);
1275
+ constructor(bsModalRef: BsModalRef, fixtureService: FixtureService, uuidService: UuidService, projectService: ProjectService, previewService: PreviewService, translateService: TranslateService, toastrService: ToastrService, presetService: PresetService, configService: ConfigService, modalService: BsModalService, livePreviewService: LivePreviewService);
1243
1276
  ngOnInit(): void;
1244
1277
  private loadProfiles;
1245
1278
  selectFixture(fixture: Fixture): void;
@@ -1289,8 +1322,8 @@ declare class PresetComponent implements OnInit {
1289
1322
  declare class MasterDimmerComponent implements OnInit {
1290
1323
  projectService: ProjectService;
1291
1324
  private changeDetectorRef;
1292
- private presetService;
1293
- constructor(projectService: ProjectService, changeDetectorRef: ChangeDetectorRef, presetService: PresetService);
1325
+ private livePreviewService;
1326
+ constructor(projectService: ProjectService, changeDetectorRef: ChangeDetectorRef, livePreviewService: LivePreviewService);
1294
1327
  ngOnInit(): void;
1295
1328
  setValue(value: any): void;
1296
1329
  getValue(): number;
@@ -1301,7 +1334,8 @@ declare class MasterDimmerComponent implements OnInit {
1301
1334
  declare class FixtureCapabilityDimmerComponent implements OnInit {
1302
1335
  private presetService;
1303
1336
  private changeDetectorRef;
1304
- constructor(presetService: PresetService, changeDetectorRef: ChangeDetectorRef);
1337
+ private livePreviewService;
1338
+ constructor(presetService: PresetService, changeDetectorRef: ChangeDetectorRef, livePreviewService: LivePreviewService);
1305
1339
  ngOnInit(): void;
1306
1340
  getValue(): number;
1307
1341
  getValueText(): number;
@@ -1375,7 +1409,8 @@ declare class ArraySortPipe implements PipeTransform {
1375
1409
  declare class FixtureCapabilityPanTiltComponent implements OnInit {
1376
1410
  private presetService;
1377
1411
  private changeDetectorRef;
1378
- constructor(presetService: PresetService, changeDetectorRef: ChangeDetectorRef);
1412
+ private livePreviewService;
1413
+ constructor(presetService: PresetService, changeDetectorRef: ChangeDetectorRef, livePreviewService: LivePreviewService);
1379
1414
  ngOnInit(): void;
1380
1415
  getValuePan(): number;
1381
1416
  getValueTextPan(): number;
@@ -1390,6 +1425,7 @@ declare class FixtureCapabilityPanTiltComponent implements OnInit {
1390
1425
 
1391
1426
  declare class FixtureCapabilityChannelComponent implements OnInit {
1392
1427
  private presetService;
1428
+ private livePreviewService;
1393
1429
  sliderValue: ElementRef;
1394
1430
  selectedCapability: CachedFixtureCapability;
1395
1431
  _channel: CachedFixtureChannel;
@@ -1406,7 +1442,7 @@ declare class FixtureCapabilityChannelComponent implements OnInit {
1406
1442
  profile: FixtureProfile;
1407
1443
  set channel(value: CachedFixtureChannel);
1408
1444
  capabilityIndex: number;
1409
- constructor(presetService: PresetService);
1445
+ constructor(presetService: PresetService, livePreviewService: LivePreviewService);
1410
1446
  private updateChannel;
1411
1447
  capabilityHasRange(): boolean;
1412
1448
  getDescriptionStart(capability: CachedFixtureCapability): string;
@@ -1448,6 +1484,7 @@ declare class FixtureCapabilityColorWheelComponent implements OnInit, OnDestroy
1448
1484
  presetService: PresetService;
1449
1485
  private changeDetectorRef;
1450
1486
  private fixtureService;
1487
+ private livePreviewService;
1451
1488
  _fixtureProfile: FixtureProfile;
1452
1489
  _channel: CachedFixtureChannel;
1453
1490
  wheelName: string;
@@ -1458,7 +1495,7 @@ declare class FixtureCapabilityColorWheelComponent implements OnInit, OnDestroy
1458
1495
  set channel(value: CachedFixtureChannel);
1459
1496
  wheelIndex: number;
1460
1497
  showContainer: boolean;
1461
- constructor(presetService: PresetService, changeDetectorRef: ChangeDetectorRef, fixtureService: FixtureService);
1498
+ constructor(presetService: PresetService, changeDetectorRef: ChangeDetectorRef, fixtureService: FixtureService, livePreviewService: LivePreviewService);
1462
1499
  ngOnInit(): void;
1463
1500
  ngOnDestroy(): void;
1464
1501
  private update;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rocketshow/designer",
3
- "version": "1.58.0",
3
+ "version": "1.62.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
Binary file
Binary file