/* * Copyright (C) 2024 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import {Component, Input} from '@angular/core'; import {VcCuratedProperties} from 'viewers/common/curated_properties'; @Component({ selector: 'view-capture-property-groups', template: `

View

Class: &ngsp; {{ properties.className }}

Hashcode: &ngsp; {{ properties.hashcode }}

Geometry

Coordinates

Left: &ngsp; {{ properties.left }}

Top: &ngsp; {{ properties.top }}

Elevation: &ngsp; {{ properties.elevation }}

Size

Height: &ngsp; {{ properties.height }}

Width: &ngsp; {{ properties.width }}

Translation

Translation X: &ngsp; {{ properties.translationX }}

Translation Y: &ngsp; {{ properties.translationY }}

Scroll

Scroll X: &ngsp; {{ properties.scrollX }}

Scroll Y: &ngsp; {{ properties.scrollY }}

Scale

Scale X: &ngsp; {{ properties.scaleX }}

Scale Y: &ngsp; {{ properties.scaleY }}

Effects

Translation

Visibility: &ngsp; {{ properties.visibility }}

Alpha: &ngsp; {{ properties.alpha }}

Will Not Draw: &ngsp; {{ properties.willNotDraw }}

Miscellaneous

Clip Children: &ngsp; {{ properties.clipChildren }}

`, styles: [ ` .group { display: flex; flex-direction: row; padding: 8px; } .group-header { width: 80px; color: gray; } .left-column { flex: 1; padding: 0 5px; } .right-column { flex: 1; border: 1px solid var(--border-color); border-left-width: 5px; padding: 0 5px; } .column-header { color: gray; } `, ], }) export class ViewCapturePropertyGroupsComponent { @Input() properties: VcCuratedProperties | undefined; }