Guest User

Untitled

a guest
Dec 13th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. // color-constants.ts: no imports in this file
  2. export const aoiToImageMaterial = new Cesium.ColorMaterialProperty(
  3. new Cesium.Color(0.4, 0.6, 0.8, 0.1)
  4. );
  5.  
  6. export const aoiToImageOutline = new Cesium.Color(0.4, 0.6, 0.8, 1);
  7.  
  8. import { Component, Input } from '@angular/core';
  9.  
  10. import { Aoi } from '../../../models/aoi.model';
  11. import * as colorConstants from '../../color-constants';
  12.  
  13. @Component({
  14. selector: 'cs-aoi',
  15. templateUrl: './aoi.component.html',
  16. styleUrls: ['./aoi.component.scss']
  17. })
  18. export class AoiComponent {
  19. @Input('aoi') aoi: Aoi;
  20.  
  21. materialProperty;
  22. outlineColor;
  23.  
  24. constructor() {
  25. this.materialProperty = colorConstants.aoiToImageMaterial;
  26. this.outlineColor = colorConstants.aoiToImageOutline;
  27. }
  28.  
  29. }
Add Comment
Please, Sign In to add comment