@rocketshow/designer 1.42.0 → 1.46.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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnDestroy, AfterViewInit, OnInit, ElementRef, ChangeDetectorRef, PipeTransform, EventEmitter } from '@angular/core';
|
|
2
|
+
import { NgZone, OnDestroy, AfterViewInit, OnInit, ElementRef, ChangeDetectorRef, PipeTransform, EventEmitter } from '@angular/core';
|
|
3
3
|
import * as i44 from '@ngx-translate/core';
|
|
4
4
|
import { TranslateService } from '@ngx-translate/core';
|
|
5
5
|
import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal';
|
|
@@ -12,6 +12,8 @@ import * as i39 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 * as i51 from '@ali-hm/angular-tree-component';
|
|
16
|
+
import { ITreeOptions } from '@ali-hm/angular-tree-component';
|
|
15
17
|
import * as i49 from 'ngx-dropzone-wrapper';
|
|
16
18
|
import { DropzoneConfigInterface } from 'ngx-dropzone-wrapper';
|
|
17
19
|
import * as i40 from '@angular/platform-browser';
|
|
@@ -197,6 +199,16 @@ declare class CachedFixtureChannel {
|
|
|
197
199
|
colorWheel: FixtureWheel;
|
|
198
200
|
}
|
|
199
201
|
|
|
202
|
+
declare class CachedFixturePixel {
|
|
203
|
+
key: string;
|
|
204
|
+
x: number;
|
|
205
|
+
y: number;
|
|
206
|
+
z: number;
|
|
207
|
+
positionX: number;
|
|
208
|
+
positionY: number;
|
|
209
|
+
positionZ: number;
|
|
210
|
+
}
|
|
211
|
+
|
|
200
212
|
declare enum Positioning {
|
|
201
213
|
topFront = "topFront",
|
|
202
214
|
topBack = "topBack",
|
|
@@ -289,7 +301,7 @@ declare class FixtureProfile {
|
|
|
289
301
|
|
|
290
302
|
declare class CachedFixture {
|
|
291
303
|
fixture: Fixture;
|
|
292
|
-
|
|
304
|
+
pixel: CachedFixturePixel;
|
|
293
305
|
profile: FixtureProfile;
|
|
294
306
|
mode: FixtureMode;
|
|
295
307
|
channels: CachedFixtureChannel[];
|
|
@@ -458,16 +470,30 @@ declare class UuidService {
|
|
|
458
470
|
static ɵprov: i0.ɵɵInjectableDeclaration<UuidService>;
|
|
459
471
|
}
|
|
460
472
|
|
|
473
|
+
type Axis = 'x' | 'y' | 'z';
|
|
474
|
+
type GroupDef = 'all' | string[] | (Partial<Record<Axis, string[]>> & {
|
|
475
|
+
name?: string[];
|
|
476
|
+
});
|
|
477
|
+
declare class FixturePixelGroupResolveService {
|
|
478
|
+
private matchNumberRule;
|
|
479
|
+
private matchesAllConstraints;
|
|
480
|
+
resolveGroupPixels(group: string, pixelGroups: Record<string, GroupDef>, allPixels: CachedFixturePixel[]): CachedFixturePixel[];
|
|
481
|
+
getPixelsForKeyOrGroup(profile: FixtureProfile, allPixelKeys: CachedFixturePixel[], keyOrGroup: string): CachedFixturePixel[];
|
|
482
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FixturePixelGroupResolveService, never>;
|
|
483
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FixturePixelGroupResolveService>;
|
|
484
|
+
}
|
|
485
|
+
|
|
461
486
|
declare class FixtureService {
|
|
462
487
|
private http;
|
|
463
488
|
private projectService;
|
|
464
489
|
private translateService;
|
|
465
490
|
private toastrService;
|
|
466
491
|
private uuidService;
|
|
492
|
+
private fixturePixelGroupResolveService;
|
|
467
493
|
cachedFixtures: CachedFixture[];
|
|
468
494
|
settingsSelection: boolean;
|
|
469
495
|
selectedSettingsFixtures: Fixture[];
|
|
470
|
-
constructor(http: HttpClient, projectService: ProjectService, translateService: TranslateService, toastrService: ToastrService, uuidService: UuidService);
|
|
496
|
+
constructor(http: HttpClient, projectService: ProjectService, translateService: TranslateService, toastrService: ToastrService, uuidService: UuidService, fixturePixelGroupResolveService: FixturePixelGroupResolveService);
|
|
471
497
|
getFixtureByUuid(uuid: string): Fixture;
|
|
472
498
|
private fixtureUuidAndPixelKeyEquals;
|
|
473
499
|
getCachedFixtureByUuid(uuid: string, pixelKey: string): CachedFixture;
|
|
@@ -494,12 +520,14 @@ declare class FixtureService {
|
|
|
494
520
|
private getChannelNameWithPixelKey;
|
|
495
521
|
private addCachedChannel;
|
|
496
522
|
private alphanumericSort;
|
|
523
|
+
private evenlySpacedPosCm;
|
|
524
|
+
private createPixel;
|
|
497
525
|
private getAllPixelKeys;
|
|
498
|
-
private
|
|
499
|
-
private
|
|
526
|
+
private getAllPixelsInGroups;
|
|
527
|
+
private getPixelsInOrder;
|
|
500
528
|
getModeChannelCount(profile: FixtureProfile, mode: FixtureMode): number;
|
|
501
529
|
getCachedChannels(profile: FixtureProfile, mode: FixtureMode, pixelKey: string): CachedFixtureChannel[];
|
|
502
|
-
|
|
530
|
+
fixtureGetUniquePixels(fixture: Fixture): CachedFixturePixel[];
|
|
503
531
|
fixtureHasGeneralChannel(fixture: Fixture): boolean;
|
|
504
532
|
updateCachedFixtures(): void;
|
|
505
533
|
capabilitiesMatch(type1: FixtureCapabilityType, type2: FixtureCapabilityType, color1: FixtureCapabilityColor, color2: FixtureCapabilityColor, wheel1: string, wheel2: string, profileUuid1: string, profileUuid2: string): boolean;
|
|
@@ -560,6 +588,8 @@ declare class ConfigService {
|
|
|
560
588
|
|
|
561
589
|
declare class EffectService {
|
|
562
590
|
selectedEffect: Effect;
|
|
591
|
+
effectsOpen: boolean;
|
|
592
|
+
effectsOpenChanged: Subject<void>;
|
|
563
593
|
constructor();
|
|
564
594
|
static ɵfac: i0.ɵɵFactoryDeclaration<EffectService, never>;
|
|
565
595
|
static ɵprov: i0.ɵɵInjectableDeclaration<EffectService>;
|
|
@@ -588,6 +618,7 @@ declare class PresetService {
|
|
|
588
618
|
switchFixtureSelection(fixture: Fixture, pixelKey: string): void;
|
|
589
619
|
selectAllFixtures(): void;
|
|
590
620
|
selectNoFixtures(): void;
|
|
621
|
+
private presetFixtueEquals;
|
|
591
622
|
removeDeletedFixtures(): void;
|
|
592
623
|
updateFixtureSelection(): void;
|
|
593
624
|
deleteCapabilityValue(preset: Preset, capabilityType: FixtureCapabilityType, color?: FixtureCapabilityColor, wheel?: string, profileUuid?: string): void;
|
|
@@ -642,6 +673,7 @@ declare class TimelineService {
|
|
|
642
673
|
private projectService;
|
|
643
674
|
private http;
|
|
644
675
|
private configService;
|
|
676
|
+
private ngZone;
|
|
645
677
|
waveSurfer: WaveSurfer;
|
|
646
678
|
playState: string;
|
|
647
679
|
zoom: number;
|
|
@@ -659,7 +691,7 @@ declare class TimelineService {
|
|
|
659
691
|
selectedCompositionIndex: number;
|
|
660
692
|
externalCompositionsAvailable: boolean;
|
|
661
693
|
loadingAudioFile: boolean;
|
|
662
|
-
constructor(sceneService: SceneService, presetService: PresetService, projectService: ProjectService, http: HttpClient, configService: ConfigService);
|
|
694
|
+
constructor(sceneService: SceneService, presetService: PresetService, projectService: ProjectService, http: HttpClient, configService: ConfigService, ngZone: NgZone);
|
|
663
695
|
private redrawAllRegions;
|
|
664
696
|
private pad;
|
|
665
697
|
private msToTime;
|
|
@@ -703,6 +735,9 @@ declare class PreviewService implements OnDestroy {
|
|
|
703
735
|
private timelineService;
|
|
704
736
|
private projectService;
|
|
705
737
|
doUpdateFixtureSetup: Subject<void>;
|
|
738
|
+
doUpdateStageAndPositions: Subject<void>;
|
|
739
|
+
private updateStageAndPositionsSubscription;
|
|
740
|
+
stageAndPositionsDirty: boolean;
|
|
706
741
|
scene: THREE.Scene;
|
|
707
742
|
private stageMeshes;
|
|
708
743
|
private stageMaterial;
|
|
@@ -734,13 +769,15 @@ declare class PreviewComponent implements AfterViewInit {
|
|
|
734
769
|
private previewService;
|
|
735
770
|
private timelineService;
|
|
736
771
|
private projectService;
|
|
772
|
+
private ngZone;
|
|
737
773
|
private renderer;
|
|
738
774
|
private scene;
|
|
739
775
|
private camera;
|
|
740
776
|
controls: OrbitControls;
|
|
741
777
|
private fixtures3d;
|
|
778
|
+
private fixtureGroups;
|
|
742
779
|
private canvasRef;
|
|
743
|
-
constructor(fixtureService: FixtureService, previewMeshService: PreviewMeshService, animationService: AnimationService, previewService: PreviewService, timelineService: TimelineService, projectService: ProjectService);
|
|
780
|
+
constructor(fixtureService: FixtureService, previewMeshService: PreviewMeshService, animationService: AnimationService, previewService: PreviewService, timelineService: TimelineService, projectService: ProjectService, ngZone: NgZone);
|
|
744
781
|
private syncFixtures;
|
|
745
782
|
private get canvas();
|
|
746
783
|
private render;
|
|
@@ -899,6 +936,7 @@ declare class DesignerComponent implements OnInit, AfterViewInit {
|
|
|
899
936
|
private fixtureService;
|
|
900
937
|
private timelineService;
|
|
901
938
|
introService: IntroService;
|
|
939
|
+
private effectService;
|
|
902
940
|
set menuHeightPx(value: number);
|
|
903
941
|
set externalCompositionsAvailable(value: boolean);
|
|
904
942
|
set restUrl(value: string);
|
|
@@ -918,7 +956,7 @@ declare class DesignerComponent implements OnInit, AfterViewInit {
|
|
|
918
956
|
currentTab: string;
|
|
919
957
|
previewComponent: PreviewComponent;
|
|
920
958
|
timelineComponent: TimelineComponent;
|
|
921
|
-
constructor(translateService: TranslateService, projectService: ProjectService, configService: ConfigService, fixturePoolService: FixturePoolService, hotkeyTargetExcludeService: HotkeyTargetExcludeService, modalService: BsModalService, userService: UserService, userEnsureLoginService: UserEnsureLoginService, projectLoadService: ProjectLoadService, warningDialogService: WarningDialogService, errorDialogService: ErrorDialogService, fixtureService: FixtureService, timelineService: TimelineService, introService: IntroService);
|
|
959
|
+
constructor(translateService: TranslateService, projectService: ProjectService, configService: ConfigService, fixturePoolService: FixturePoolService, hotkeyTargetExcludeService: HotkeyTargetExcludeService, modalService: BsModalService, userService: UserService, userEnsureLoginService: UserEnsureLoginService, projectLoadService: ProjectLoadService, warningDialogService: WarningDialogService, errorDialogService: ErrorDialogService, fixtureService: FixtureService, timelineService: TimelineService, introService: IntroService, effectService: EffectService);
|
|
922
960
|
private loadError;
|
|
923
961
|
ngOnInit(): void;
|
|
924
962
|
private calcTotalMenuHeight;
|
|
@@ -972,11 +1010,13 @@ declare class EffectCurve extends Effect {
|
|
|
972
1010
|
getValueAtMillis(timeMillis: number, fixtureIndex?: number): number;
|
|
973
1011
|
}
|
|
974
1012
|
|
|
975
|
-
declare class EffectCurveComponent implements OnInit {
|
|
1013
|
+
declare class EffectCurveComponent implements OnInit, OnDestroy {
|
|
976
1014
|
presetService: PresetService;
|
|
977
1015
|
private animationService;
|
|
978
1016
|
private fixtureService;
|
|
979
1017
|
private translate;
|
|
1018
|
+
private effectService;
|
|
1019
|
+
private ngZone;
|
|
980
1020
|
private gridUpdateSubscription;
|
|
981
1021
|
private ctx;
|
|
982
1022
|
private maxWidth;
|
|
@@ -995,11 +1035,15 @@ declare class EffectCurveComponent implements OnInit {
|
|
|
995
1035
|
availableChannels: Map<FixtureProfile, CachedFixtureChannel[]>;
|
|
996
1036
|
availableProfiles: FixtureProfile[];
|
|
997
1037
|
selectedProfiles: FixtureProfile[];
|
|
1038
|
+
private effectsOpenChangedSubscription;
|
|
998
1039
|
curve: EffectCurve;
|
|
999
1040
|
set isSelected(value: boolean);
|
|
1000
1041
|
curveGrid: ElementRef;
|
|
1001
|
-
constructor(presetService: PresetService, animationService: AnimationService, fixtureService: FixtureService, translate: TranslateService);
|
|
1042
|
+
constructor(presetService: PresetService, animationService: AnimationService, fixtureService: FixtureService, translate: TranslateService, effectService: EffectService, ngZone: NgZone);
|
|
1002
1043
|
ngOnInit(): void;
|
|
1044
|
+
ngOnDestroy(): void;
|
|
1045
|
+
private startUpdateTimer;
|
|
1046
|
+
private stopUpdateTimer;
|
|
1003
1047
|
private drawCurrentValue;
|
|
1004
1048
|
private getPhasingCount;
|
|
1005
1049
|
redraw(): void;
|
|
@@ -1094,6 +1138,7 @@ declare class FixtureComponent implements OnInit {
|
|
|
1094
1138
|
declare class FixtureSettingsPositionComponent implements OnInit {
|
|
1095
1139
|
fixtureService: FixtureService;
|
|
1096
1140
|
private presetService;
|
|
1141
|
+
private previewService;
|
|
1097
1142
|
selectUndefinedOptionValue: any;
|
|
1098
1143
|
selectedPositioning: string;
|
|
1099
1144
|
positionX: number;
|
|
@@ -1110,8 +1155,9 @@ declare class FixtureSettingsPositionComponent implements OnInit {
|
|
|
1110
1155
|
rotationZ: number;
|
|
1111
1156
|
rotationMin: number;
|
|
1112
1157
|
rotationMax: number;
|
|
1113
|
-
constructor(fixtureService: FixtureService, presetService: PresetService);
|
|
1158
|
+
constructor(fixtureService: FixtureService, presetService: PresetService, previewService: PreviewService);
|
|
1114
1159
|
ngOnInit(): void;
|
|
1160
|
+
private updated;
|
|
1115
1161
|
private updateSelection;
|
|
1116
1162
|
changePosition(positioningStr: string): void;
|
|
1117
1163
|
changePositionManual(position: string, value: any): void;
|
|
@@ -1226,8 +1272,12 @@ declare class PresetComponent implements OnInit {
|
|
|
1226
1272
|
projectService: ProjectService;
|
|
1227
1273
|
introService: IntroService;
|
|
1228
1274
|
private modalService;
|
|
1275
|
+
treeOptions: ITreeOptions;
|
|
1276
|
+
treeNodes: any;
|
|
1277
|
+
tree: ElementRef;
|
|
1229
1278
|
constructor(presetService: PresetService, sceneService: SceneService, projectService: ProjectService, introService: IntroService, modalService: BsModalService);
|
|
1230
1279
|
ngOnInit(): void;
|
|
1280
|
+
onActivate(event: any): void;
|
|
1231
1281
|
selectPreset(index: number): void;
|
|
1232
1282
|
enableCheckbox(): boolean;
|
|
1233
1283
|
activatePreset(active: boolean, index: number): void;
|
|
@@ -1651,7 +1701,7 @@ declare class DropzoneComponent {
|
|
|
1651
1701
|
|
|
1652
1702
|
declare class DesignerModule {
|
|
1653
1703
|
static ɵfac: i0.ɵɵFactoryDeclaration<DesignerModule, never>;
|
|
1654
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DesignerModule, [typeof DesignerComponent, typeof WarningDialogComponent, typeof PreviewComponent, typeof EffectCurveComponent, typeof EffectPanTiltComponent, typeof SceneComponent, typeof TimelineComponent, typeof FixtureCapabilityColorComponent, typeof FixtureComponent, typeof FixtureSettingsPositionComponent, typeof FixtureCapabilityComponent, typeof FixtureSettingsComponent, typeof EffectComponent, typeof FixturePoolComponent, typeof PresetComponent, typeof MasterDimmerComponent, typeof FixtureCapabilityDimmerComponent, typeof TimelineGridComponent, typeof CompositionSettingsComponent, typeof ArraySortPipe, typeof FixtureCapabilityPanTiltComponent, typeof FixtureCapabilityChannelComponent, typeof FixtureChannelComponent, typeof FixtureCapabilityColorWheelComponent, typeof UserLoginComponent, typeof UserRegisterComponent, typeof ProjectBrowserComponent, typeof WaitDialogComponent, typeof ProjectImportComponent, typeof ProjectShareComponent, typeof ErrorDialogComponent, typeof FixtureSettingsStageComponent, typeof IntroComponent, typeof PresetSettingsComponent, typeof SceneSettingsComponent, typeof ProjectSaveComponent, typeof FixturePoolCreateFromFileComponent, typeof DropzoneComponent], [typeof i39.RouterModule, typeof i40.BrowserModule, typeof i41.BrowserAnimationsModule, typeof i42.FormsModule, typeof i43.NgxBootstrapSliderModule, typeof i44.TranslateModule, typeof i45.AccordionModule, typeof i46.PopoverModule, typeof i47.TypeaheadModule, typeof i48.SortablejsModule, typeof i49.DropzoneModule, typeof i50.ToastrModule], [typeof DesignerComponent]>;
|
|
1704
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DesignerModule, [typeof DesignerComponent, typeof WarningDialogComponent, typeof PreviewComponent, typeof EffectCurveComponent, typeof EffectPanTiltComponent, typeof SceneComponent, typeof TimelineComponent, typeof FixtureCapabilityColorComponent, typeof FixtureComponent, typeof FixtureSettingsPositionComponent, typeof FixtureCapabilityComponent, typeof FixtureSettingsComponent, typeof EffectComponent, typeof FixturePoolComponent, typeof PresetComponent, typeof MasterDimmerComponent, typeof FixtureCapabilityDimmerComponent, typeof TimelineGridComponent, typeof CompositionSettingsComponent, typeof ArraySortPipe, typeof FixtureCapabilityPanTiltComponent, typeof FixtureCapabilityChannelComponent, typeof FixtureChannelComponent, typeof FixtureCapabilityColorWheelComponent, typeof UserLoginComponent, typeof UserRegisterComponent, typeof ProjectBrowserComponent, typeof WaitDialogComponent, typeof ProjectImportComponent, typeof ProjectShareComponent, typeof ErrorDialogComponent, typeof FixtureSettingsStageComponent, typeof IntroComponent, typeof PresetSettingsComponent, typeof SceneSettingsComponent, typeof ProjectSaveComponent, typeof FixturePoolCreateFromFileComponent, typeof DropzoneComponent], [typeof i39.RouterModule, typeof i40.BrowserModule, typeof i41.BrowserAnimationsModule, typeof i42.FormsModule, typeof i43.NgxBootstrapSliderModule, typeof i44.TranslateModule, typeof i45.AccordionModule, typeof i46.PopoverModule, typeof i47.TypeaheadModule, typeof i48.SortablejsModule, typeof i49.DropzoneModule, typeof i50.ToastrModule, typeof i51.TreeModule], [typeof DesignerComponent]>;
|
|
1655
1705
|
static ɵinj: i0.ɵɵInjectorDeclaration<DesignerModule>;
|
|
1656
1706
|
}
|
|
1657
1707
|
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|