@rocketshow/designer 1.56.0 → 1.60.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();
@@ -574,7 +583,6 @@ declare class ConfigService {
574
583
  shareAvailable: boolean;
575
584
  menuHeightPx: number;
576
585
  languageSwitch: boolean;
577
- newProjectTemplate: boolean;
578
586
  livePreview: boolean;
579
587
  localProfiles: boolean;
580
588
  intro: boolean;
@@ -586,13 +594,29 @@ declare class ConfigService {
586
594
  static ɵprov: i0.ɵɵInjectableDeclaration<ConfigService>;
587
595
  }
588
596
 
589
- declare class EffectService {
590
- selectedEffect: Effect;
591
- effectsOpen: boolean;
592
- effectsOpenChanged: Subject<void>;
597
+ declare class TimelineStateService {
598
+ playState: string;
599
+ selectedComposition: Composition;
600
+ selectedCompositionIndex: number;
593
601
  constructor();
594
- static ɵfac: i0.ɵɵFactoryDeclaration<EffectService, never>;
595
- 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>;
596
620
  }
597
621
 
598
622
  declare class PresetService {
@@ -600,17 +624,13 @@ declare class PresetService {
600
624
  private uuidService;
601
625
  private projectService;
602
626
  private fixtureService;
603
- private configService;
604
- private http;
605
- private animationService;
627
+ private livePreviewService;
606
628
  selectedPreset: Preset;
607
629
  previewSelectionChanged: Subject<void>;
608
630
  fixtureSelectionChanged: Subject<void>;
609
631
  fixtureSelectionSettingsChanged: Subject<void>;
610
632
  fixtureColorChanged: Subject<void>;
611
- livePreviewTimer: any;
612
- liveChangePending: boolean;
613
- 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);
614
634
  getPresetByUuid(uuid: string): Preset;
615
635
  fixtureUuidAndPixelKeyEquals(fixtureUuid1: string, fixtureUuid2: string, pixelKey1: string, pixelKey2: string): boolean;
616
636
  getPresetFixture(preset: Preset, fixtureUuid: string, pixelKey?: string): PresetFixture;
@@ -638,8 +658,6 @@ declare class PresetService {
638
658
  addPreset(name?: string): void;
639
659
  getSelectedProfiles(): FixtureProfile[];
640
660
  getSelectedProfileChannels(selectedProfiles: FixtureProfile[]): Map<FixtureProfile, CachedFixtureChannel[]>;
641
- previewLive(compositionName?: string, positionMillis?: number): void;
642
- stopPreviewPlay(): void;
643
661
  static ɵfac: i0.ɵɵFactoryDeclaration<PresetService, never>;
644
662
  static ɵprov: i0.ɵɵInjectableDeclaration<PresetService>;
645
663
  }
@@ -649,12 +667,13 @@ declare class SceneService {
649
667
  private effectService;
650
668
  private presetService;
651
669
  private projectService;
670
+ private livePreviewService;
652
671
  selectedScenes: Scene[];
653
672
  sceneColors: string[];
654
673
  multipleSelection: boolean;
655
674
  sceneDeleted: Subject<void>;
656
675
  sceneSelected: Subject<void>;
657
- constructor(uuidService: UuidService, effectService: EffectService, presetService: PresetService, projectService: ProjectService);
676
+ constructor(uuidService: UuidService, effectService: EffectService, presetService: PresetService, projectService: ProjectService, livePreviewService: LivePreviewService);
658
677
  sceneIsSelected(scene: Scene): boolean;
659
678
  presetIsSelected(preset: Preset): boolean;
660
679
  switchSceneSelection(scene: Scene): void;
@@ -674,8 +693,9 @@ declare class TimelineService {
674
693
  private http;
675
694
  private configService;
676
695
  private ngZone;
696
+ private timelineStateService;
697
+ private livePreviewService;
677
698
  waveSurfer: WaveSurfer;
678
- playState: string;
679
699
  zoom: number;
680
700
  private timeUpdateSubscription;
681
701
  currentTime: string;
@@ -687,11 +707,15 @@ declare class TimelineService {
687
707
  duration: string;
688
708
  waveSurferReady: Subject<void>;
689
709
  detectChanges: Subject<void>;
690
- selectedComposition: Composition;
691
- selectedCompositionIndex: number;
692
710
  externalCompositionsAvailable: boolean;
693
711
  loadingAudioFile: boolean;
694
- 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);
695
719
  private redrawAllRegions;
696
720
  private pad;
697
721
  private msToTime;
@@ -702,7 +726,7 @@ declare class TimelineService {
702
726
  timeInterval(pxPerSec: number): number;
703
727
  primaryLabelInterval(pxPerSec: number): number;
704
728
  secondaryLabelInterval(pxPerSec: number): 0 | 2 | 5;
705
- private seeekWithTimeline;
729
+ private seekWithTimeline;
706
730
  applyZoom(zoom: any): void;
707
731
  private isWaveSurferReady;
708
732
  addRegion(waveSurferRegion?: any): void;
@@ -859,7 +883,8 @@ declare class ProjectLoadService {
859
883
  private router;
860
884
  private activatedRoute;
861
885
  private warningDialogService;
862
- 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);
863
888
  private migrateToVersion2;
864
889
  private migrateFromOldProject;
865
890
  private afterLoad;
@@ -892,13 +917,13 @@ declare class TimelineComponent implements OnInit, AfterViewInit {
892
917
  private warningDialogService;
893
918
  private http;
894
919
  private configService;
895
- private presetService;
896
920
  introService: IntroService;
921
+ private livePreviewService;
897
922
  waveWrapper: ElementRef;
898
923
  waveElement: ElementRef;
899
924
  private lastHeight;
900
925
  private lastWidth;
901
- 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);
902
927
  ngOnInit(): void;
903
928
  ngAfterViewInit(): void;
904
929
  onResize(): void;
@@ -944,7 +969,6 @@ declare class DesignerComponent implements OnInit, AfterViewInit {
944
969
  set loginAvailable(value: boolean);
945
970
  set shareAvailable(value: boolean);
946
971
  set languageSwitch(value: boolean);
947
- set newProjectTemplate(value: boolean);
948
972
  set livePreview(value: boolean);
949
973
  set localProfiles(value: boolean);
950
974
  set intro(value: boolean);
@@ -975,7 +999,7 @@ declare class DesignerComponent implements OnInit, AfterViewInit {
975
999
  handleKeyboardEvent(event: any): void;
976
1000
  switchLanguage(language: string): void;
977
1001
  static ɵfac: i0.ɵɵFactoryDeclaration<DesignerComponent, never>;
978
- static ɵcmp: i0.ɵɵComponentDeclaration<DesignerComponent, "lib-designer", never, { "menuHeightPx": { "alias": "menuHeightPx"; "required": false; }; "externalCompositionsAvailable": { "alias": "externalCompositionsAvailable"; "required": false; }; "restUrl": { "alias": "restUrl"; "required": false; }; "enableMediaLibrary": { "alias": "enableMediaLibrary"; "required": false; }; "loginAvailable": { "alias": "loginAvailable"; "required": false; }; "shareAvailable": { "alias": "shareAvailable"; "required": false; }; "languageSwitch": { "alias": "languageSwitch"; "required": false; }; "newProjectTemplate": { "alias": "newProjectTemplate"; "required": false; }; "livePreview": { "alias": "livePreview"; "required": false; }; "localProfiles": { "alias": "localProfiles"; "required": false; }; "intro": { "alias": "intro"; "required": false; }; "uniqueProjectNames": { "alias": "uniqueProjectNames"; "required": false; }; "dropzoneChunking": { "alias": "dropzoneChunking"; "required": false; }; }, {}, never, never, false, never>;
1002
+ static ɵcmp: i0.ɵɵComponentDeclaration<DesignerComponent, "lib-designer", never, { "menuHeightPx": { "alias": "menuHeightPx"; "required": false; }; "externalCompositionsAvailable": { "alias": "externalCompositionsAvailable"; "required": false; }; "restUrl": { "alias": "restUrl"; "required": false; }; "enableMediaLibrary": { "alias": "enableMediaLibrary"; "required": false; }; "loginAvailable": { "alias": "loginAvailable"; "required": false; }; "shareAvailable": { "alias": "shareAvailable"; "required": false; }; "languageSwitch": { "alias": "languageSwitch"; "required": false; }; "livePreview": { "alias": "livePreview"; "required": false; }; "localProfiles": { "alias": "localProfiles"; "required": false; }; "intro": { "alias": "intro"; "required": false; }; "uniqueProjectNames": { "alias": "uniqueProjectNames"; "required": false; }; "dropzoneChunking": { "alias": "dropzoneChunking"; "required": false; }; }, {}, never, never, false, never>;
979
1003
  }
980
1004
 
981
1005
  declare class WarningDialogComponent implements OnInit {
@@ -1017,6 +1041,7 @@ declare class EffectCurveComponent implements OnInit, OnDestroy {
1017
1041
  private translate;
1018
1042
  private effectService;
1019
1043
  private ngZone;
1044
+ livePreviewService: LivePreviewService;
1020
1045
  private gridUpdateSubscription;
1021
1046
  private ctx;
1022
1047
  private maxWidth;
@@ -1039,7 +1064,7 @@ declare class EffectCurveComponent implements OnInit, OnDestroy {
1039
1064
  curve: EffectCurve;
1040
1065
  set isSelected(value: boolean);
1041
1066
  curveGrid: ElementRef;
1042
- 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);
1043
1068
  ngOnInit(): void;
1044
1069
  ngOnDestroy(): void;
1045
1070
  private startUpdateTimer;
@@ -1098,13 +1123,14 @@ declare class FixtureCapabilityColorComponent implements OnInit, OnDestroy {
1098
1123
  private presetService;
1099
1124
  private fixtureService;
1100
1125
  private changeDetectorRef;
1126
+ private livePreviewService;
1101
1127
  color: string;
1102
1128
  colorPicker: any;
1103
1129
  active: boolean;
1104
1130
  private colorPickerMounted;
1105
1131
  private updatingColor;
1106
1132
  private updateSubscription;
1107
- constructor(presetService: PresetService, fixtureService: FixtureService, changeDetectorRef: ChangeDetectorRef);
1133
+ constructor(presetService: PresetService, fixtureService: FixtureService, changeDetectorRef: ChangeDetectorRef, livePreviewService: LivePreviewService);
1108
1134
  private update;
1109
1135
  private setPickerColor;
1110
1136
  ngOnDestroy(): void;
@@ -1123,13 +1149,16 @@ declare class FixtureComponent implements OnInit {
1123
1149
  private fixturePoolService;
1124
1150
  fixtureService: FixtureService;
1125
1151
  introService: IntroService;
1126
- 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);
1127
1155
  ngOnInit(): void;
1128
1156
  fixtureName(presetFixture: PresetFixture): string;
1129
1157
  fixtureIsSelected(presetFixture: PresetFixture): boolean;
1130
1158
  selectFixture(event: any, presetFixture: PresetFixture): void;
1131
1159
  selectAll(): void;
1132
1160
  selectNone(): void;
1161
+ fixtureListReordered(): void;
1133
1162
  openFixturePool(): void;
1134
1163
  static ɵfac: i0.ɵɵFactoryDeclaration<FixtureComponent, never>;
1135
1164
  static ɵcmp: i0.ɵɵComponentDeclaration<FixtureComponent, "lib-app-fixture", never, {}, {}, never, never, false, never>;
@@ -1206,7 +1235,8 @@ declare class EffectComponent implements OnInit {
1206
1235
  presetService: PresetService;
1207
1236
  effectService: EffectService;
1208
1237
  private warningDialogService;
1209
- constructor(uuidService: UuidService, presetService: PresetService, effectService: EffectService, warningDialogService: WarningDialogService);
1238
+ livePreviewService: LivePreviewService;
1239
+ constructor(uuidService: UuidService, presetService: PresetService, effectService: EffectService, warningDialogService: WarningDialogService, livePreviewService: LivePreviewService);
1210
1240
  ngOnInit(): void;
1211
1241
  private addEffect;
1212
1242
  addCurveEffect(): void;
@@ -1228,6 +1258,7 @@ declare class FixturePoolComponent implements OnInit {
1228
1258
  private presetService;
1229
1259
  configService: ConfigService;
1230
1260
  private modalService;
1261
+ private livePreviewService;
1231
1262
  private profiles;
1232
1263
  filteredProfiles: FixtureProfile[];
1233
1264
  loadingProfiles: boolean;
@@ -1241,7 +1272,7 @@ declare class FixturePoolComponent implements OnInit {
1241
1272
  onClose: Subject<number>;
1242
1273
  searchExpression: string;
1243
1274
  updatingProfiles: boolean;
1244
- 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);
1245
1276
  ngOnInit(): void;
1246
1277
  private loadProfiles;
1247
1278
  selectFixture(fixture: Fixture): void;
@@ -1291,8 +1322,8 @@ declare class PresetComponent implements OnInit {
1291
1322
  declare class MasterDimmerComponent implements OnInit {
1292
1323
  projectService: ProjectService;
1293
1324
  private changeDetectorRef;
1294
- private presetService;
1295
- constructor(projectService: ProjectService, changeDetectorRef: ChangeDetectorRef, presetService: PresetService);
1325
+ private livePreviewService;
1326
+ constructor(projectService: ProjectService, changeDetectorRef: ChangeDetectorRef, livePreviewService: LivePreviewService);
1296
1327
  ngOnInit(): void;
1297
1328
  setValue(value: any): void;
1298
1329
  getValue(): number;
@@ -1303,7 +1334,8 @@ declare class MasterDimmerComponent implements OnInit {
1303
1334
  declare class FixtureCapabilityDimmerComponent implements OnInit {
1304
1335
  private presetService;
1305
1336
  private changeDetectorRef;
1306
- constructor(presetService: PresetService, changeDetectorRef: ChangeDetectorRef);
1337
+ private livePreviewService;
1338
+ constructor(presetService: PresetService, changeDetectorRef: ChangeDetectorRef, livePreviewService: LivePreviewService);
1307
1339
  ngOnInit(): void;
1308
1340
  getValue(): number;
1309
1341
  getValueText(): number;
@@ -1377,7 +1409,8 @@ declare class ArraySortPipe implements PipeTransform {
1377
1409
  declare class FixtureCapabilityPanTiltComponent implements OnInit {
1378
1410
  private presetService;
1379
1411
  private changeDetectorRef;
1380
- constructor(presetService: PresetService, changeDetectorRef: ChangeDetectorRef);
1412
+ private livePreviewService;
1413
+ constructor(presetService: PresetService, changeDetectorRef: ChangeDetectorRef, livePreviewService: LivePreviewService);
1381
1414
  ngOnInit(): void;
1382
1415
  getValuePan(): number;
1383
1416
  getValueTextPan(): number;
@@ -1392,6 +1425,7 @@ declare class FixtureCapabilityPanTiltComponent implements OnInit {
1392
1425
 
1393
1426
  declare class FixtureCapabilityChannelComponent implements OnInit {
1394
1427
  private presetService;
1428
+ private livePreviewService;
1395
1429
  sliderValue: ElementRef;
1396
1430
  selectedCapability: CachedFixtureCapability;
1397
1431
  _channel: CachedFixtureChannel;
@@ -1408,7 +1442,7 @@ declare class FixtureCapabilityChannelComponent implements OnInit {
1408
1442
  profile: FixtureProfile;
1409
1443
  set channel(value: CachedFixtureChannel);
1410
1444
  capabilityIndex: number;
1411
- constructor(presetService: PresetService);
1445
+ constructor(presetService: PresetService, livePreviewService: LivePreviewService);
1412
1446
  private updateChannel;
1413
1447
  capabilityHasRange(): boolean;
1414
1448
  getDescriptionStart(capability: CachedFixtureCapability): string;
@@ -1450,6 +1484,7 @@ declare class FixtureCapabilityColorWheelComponent implements OnInit, OnDestroy
1450
1484
  presetService: PresetService;
1451
1485
  private changeDetectorRef;
1452
1486
  private fixtureService;
1487
+ private livePreviewService;
1453
1488
  _fixtureProfile: FixtureProfile;
1454
1489
  _channel: CachedFixtureChannel;
1455
1490
  wheelName: string;
@@ -1460,7 +1495,7 @@ declare class FixtureCapabilityColorWheelComponent implements OnInit, OnDestroy
1460
1495
  set channel(value: CachedFixtureChannel);
1461
1496
  wheelIndex: number;
1462
1497
  showContainer: boolean;
1463
- constructor(presetService: PresetService, changeDetectorRef: ChangeDetectorRef, fixtureService: FixtureService);
1498
+ constructor(presetService: PresetService, changeDetectorRef: ChangeDetectorRef, fixtureService: FixtureService, livePreviewService: LivePreviewService);
1464
1499
  ngOnInit(): void;
1465
1500
  ngOnDestroy(): void;
1466
1501
  private update;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rocketshow/designer",
3
- "version": "1.56.0",
3
+ "version": "1.60.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
Binary file
Binary file