@rocketshow/designer 1.44.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
@@ -199,6 +199,16 @@ declare class CachedFixtureChannel {
199
199
  colorWheel: FixtureWheel;
200
200
  }
201
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
+
202
212
  declare enum Positioning {
203
213
  topFront = "topFront",
204
214
  topBack = "topBack",
@@ -291,7 +301,7 @@ declare class FixtureProfile {
291
301
 
292
302
  declare class CachedFixture {
293
303
  fixture: Fixture;
294
- pixelKey: string;
304
+ pixel: CachedFixturePixel;
295
305
  profile: FixtureProfile;
296
306
  mode: FixtureMode;
297
307
  channels: CachedFixtureChannel[];
@@ -460,16 +470,30 @@ declare class UuidService {
460
470
  static ɵprov: i0.ɵɵInjectableDeclaration<UuidService>;
461
471
  }
462
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
+
463
486
  declare class FixtureService {
464
487
  private http;
465
488
  private projectService;
466
489
  private translateService;
467
490
  private toastrService;
468
491
  private uuidService;
492
+ private fixturePixelGroupResolveService;
469
493
  cachedFixtures: CachedFixture[];
470
494
  settingsSelection: boolean;
471
495
  selectedSettingsFixtures: Fixture[];
472
- 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);
473
497
  getFixtureByUuid(uuid: string): Fixture;
474
498
  private fixtureUuidAndPixelKeyEquals;
475
499
  getCachedFixtureByUuid(uuid: string, pixelKey: string): CachedFixture;
@@ -496,12 +520,14 @@ declare class FixtureService {
496
520
  private getChannelNameWithPixelKey;
497
521
  private addCachedChannel;
498
522
  private alphanumericSort;
523
+ private evenlySpacedPosCm;
524
+ private createPixel;
499
525
  private getAllPixelKeys;
500
- private getAllPixelGroups;
501
- private getPixelKeysInOrder;
526
+ private getAllPixelsInGroups;
527
+ private getPixelsInOrder;
502
528
  getModeChannelCount(profile: FixtureProfile, mode: FixtureMode): number;
503
529
  getCachedChannels(profile: FixtureProfile, mode: FixtureMode, pixelKey: string): CachedFixtureChannel[];
504
- fixtureGetUniquePixelKeys(fixture: Fixture): string[];
530
+ fixtureGetUniquePixels(fixture: Fixture): CachedFixturePixel[];
505
531
  fixtureHasGeneralChannel(fixture: Fixture): boolean;
506
532
  updateCachedFixtures(): void;
507
533
  capabilitiesMatch(type1: FixtureCapabilityType, type2: FixtureCapabilityType, color1: FixtureCapabilityColor, color2: FixtureCapabilityColor, wheel1: string, wheel2: string, profileUuid1: string, profileUuid2: string): boolean;
@@ -709,6 +735,9 @@ declare class PreviewService implements OnDestroy {
709
735
  private timelineService;
710
736
  private projectService;
711
737
  doUpdateFixtureSetup: Subject<void>;
738
+ doUpdateStageAndPositions: Subject<void>;
739
+ private updateStageAndPositionsSubscription;
740
+ stageAndPositionsDirty: boolean;
712
741
  scene: THREE.Scene;
713
742
  private stageMeshes;
714
743
  private stageMaterial;
@@ -746,6 +775,7 @@ declare class PreviewComponent implements AfterViewInit {
746
775
  private camera;
747
776
  controls: OrbitControls;
748
777
  private fixtures3d;
778
+ private fixtureGroups;
749
779
  private canvasRef;
750
780
  constructor(fixtureService: FixtureService, previewMeshService: PreviewMeshService, animationService: AnimationService, previewService: PreviewService, timelineService: TimelineService, projectService: ProjectService, ngZone: NgZone);
751
781
  private syncFixtures;
@@ -1108,6 +1138,7 @@ declare class FixtureComponent implements OnInit {
1108
1138
  declare class FixtureSettingsPositionComponent implements OnInit {
1109
1139
  fixtureService: FixtureService;
1110
1140
  private presetService;
1141
+ private previewService;
1111
1142
  selectUndefinedOptionValue: any;
1112
1143
  selectedPositioning: string;
1113
1144
  positionX: number;
@@ -1124,8 +1155,9 @@ declare class FixtureSettingsPositionComponent implements OnInit {
1124
1155
  rotationZ: number;
1125
1156
  rotationMin: number;
1126
1157
  rotationMax: number;
1127
- constructor(fixtureService: FixtureService, presetService: PresetService);
1158
+ constructor(fixtureService: FixtureService, presetService: PresetService, previewService: PreviewService);
1128
1159
  ngOnInit(): void;
1160
+ private updated;
1129
1161
  private updateSelection;
1130
1162
  changePosition(positioningStr: string): void;
1131
1163
  changePositionManual(position: string, value: any): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rocketshow/designer",
3
- "version": "1.44.0",
3
+ "version": "1.46.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
Binary file
Binary file