UNPKG

monaca-lib

Version:

Monaca cloud API bindings for JavaScript

882 lines (733 loc) 17.8 kB
/* * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. * Copyright (C) 2009 Anthony Ricaud <rik@webkit.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #timeline-overview-panel { flex: none; position: relative; border-bottom: 1px solid rgb(140, 140, 140); } #timeline-overview-panel .timeline-graph-bar { pointer-events: none; } .timeline-records-title, .timeline-records-list { background-color: #eee; } .timeline-records-title { padding: 3px 3px 3px 5px; flex: 0 0 19px; color: rgb(92, 110, 129); text-shadow: rgba(255, 255, 255, 0.75) 0 1px 0; } .timeline-records-list { flex: auto; } #timeline-overview-grid { background-color: rgb(255, 255, 255); } .timeline-overview-frames-mode #timeline-overview-grid { display: none; } #timeline-overview-grid .resources-dividers-label-bar { pointer-events: auto; } .timeline-overview-frames-mode .overview-grid-window, .timeline-overview-frames-mode .overview-grid-dividers-background { height: 100%; } #timeline-container { border-right: 0 none transparent; overflow-y: scroll; overflow-x: hidden; } .timeline-details-split { flex: auto; } .timeline-view { flex: auto; overflow: auto; } .timeline-view-stack { flex: auto; display: flex; } #timeline-container .webkit-html-external-link, #timeline-container .webkit-html-resource-link { color: inherit; } .timeline-tree-item { height: 18px; line-height: 15px; padding-right: 5px; padding-left: 5px; padding-top: 2px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; } .timeline-tree-item.selected { background-color: rgb(56, 121, 217) !important; color: white; } .timeline-tree-item.hovered:not(.selected), .timeline-graph-side.hovered { background-color: rgba(0, 0, 0, 0.05) !important; } .timeline-expandable { position: absolute; border-left: 1px solid rgb(163, 163, 163); pointer-events: none; } .timeline-expandable-left { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; border-top: 1px solid rgb(163, 163, 163); border-bottom: 1px solid rgb(163, 163, 163); } .timeline-tree-item-expand-arrow { display: inline-block; -webkit-user-select: none; -webkit-mask-image: url(Images/statusbarButtonGlyphs.png); -webkit-mask-size: 320px 144px; width: 10px; height: 10px; content: ""; background-color: rgb(110, 110, 110); position: relative; top: -1px; left: -1px; } @media (-webkit-min-device-pixel-ratio: 1.5) { .timeline-tree-item-expand-arrow { -webkit-mask-image: url(Images/statusbarButtonGlyphs_2x.png); } } /* media */ .timeline-tree-item-expand-arrow.parent { -webkit-mask-position: -4px -96px; } .timeline-tree-item-expand-arrow.parent.expanded { -webkit-mask-position: -20px -96px; } .timeline-expandable-arrow { background-image: url(Images/statusbarButtonGlyphs.png); background-size: 320px 144px; opacity: 0.5; width: 10px; height: 10px; position: relative; top: 3px; left: 2px; } @media (-webkit-min-device-pixel-ratio: 1.5) { .timeline-expandable-arrow { background-image: url(Images/statusbarButtonGlyphs_2x.png); } } /* media */ .timeline-expandable-collapsed .timeline-expandable-arrow { background-position: -4px -96px; } .timeline-expandable-expanded .timeline-expandable-arrow { background-position: -20px -96px; } .timeline-tree-item .type { padding-left: 5px; } .timeline-tree-item .count { font-weight: bold; } .timeline-tree-item .timeline-tree-icon { position: relative; top: -1px; left: 1px; width: 7px; height: 7px; border-radius: 1px; border-style: solid; border-width: 1px; display: inline-block; } .timeline-tree-item.background .timeline-tree-icon { background: none !important; } .timeline-tree-item-warning { display: block; background-image: url(Images/statusbarButtonGlyphs.png); background-size: 320px 144px; width: 10px; height: 10px; float: right; background-position: -202px -107px; position: relative; top: 2px; } .timeline-tree-item-child-warning { opacity: 0.6; } @media (-webkit-min-device-pixel-ratio: 1.5) { .timeline-tree-item-warning { background-image: url(Images/statusbarButtonGlyphs_2x.png); } } /* media */ .timeline-tree-item .data.dimmed { color: rgba(0, 0, 0, 0.7); pointer-events: none; padding-left: 4px; } .timeline-tree-item.selected .data.dimmed { color: rgba(255, 255, 255, 0.8); pointer-events: auto; } .timeline-tree-item.selected .timeline-tree-item-expand-arrow { background-color: white; } #timeline-overview-events, #timeline-overview-memory, #timeline-overview-power { flex: 0 0 60px; z-index: 160; width: 100%; } #timeline-overview-memory { flex-basis: 20px; } #timeline-overview-frames { flex-basis: 79px; } #timeline-overview-pane { flex: auto; position: relative; overflow: hidden; } #timeline-overview-container { display: flex; flex-direction: column; flex: none; position: relative; overflow: hidden; } #timeline-overview-container canvas { width: 100%; height: 100%; } #timeline-overview-frames canvas { z-index: 200; background-color: rgba(255, 255, 255, 0.8); } #timeline-graphs { position: absolute; left: 0; right: 0; max-height: 100%; top: 20px; } .timeline-graph-side { position: relative; height: 18px; padding: 0 5px; white-space: nowrap; margin-top: 0; border-top: 1px solid transparent; overflow: hidden; } .timeline-graph-side.selected { background-color: rgba(56, 121, 217, 0.1) !important; } .timeline-graph-bar-area { position: absolute; top: 0; bottom: 0; right: 0; left: 3px; pointer-events: none; } .timeline-graph-bar { position: absolute; top: -1px; bottom: 0; margin: auto -2px; height: 10px; min-width: 5px; z-index: 180; pointer-events: visibleFill; border-radius: 1px; border: 1px solid; } .timeline-graph-bar.cpu { opacity: 0.7; } .timeline-graph-side.background .timeline-graph-bar { background: transparent !important; border-width: 2px; } .timeline-aggregated-category { display: inline-block; height: 11px; margin-right: 5px; position: relative; top: 2px; width: 10px; border: solid 1px; } .popover ul { margin: 0; padding: 0; list-style-type: none; } #resources-container-content { overflow: hidden; min-height: 100%; } .memory-graph-label { position: absolute; left: 5px; font-size: 9px; color: rgb(50%, 50%, 50%); white-space: nowrap; } #memory-graphs-canvas-container { overflow: hidden; flex: auto; position: relative; } #memory-counters-graph { flex: auto; } #memory-graphs-canvas-container .memory-counter-marker { position: absolute; border-radius: 3px; width: 5px; height: 5px; margin-left: -3px; margin-top: -2px; } #memory-graphs-container > div:last-child { background-color: #eee; overflow-y: hidden; } #memory-graphs-container .sidebar-tree-section { flex: 0 0 24px; padding: 5px 0 0 5px; } .memory-counter-sidebar-info { flex: 0 0 18px; margin-left: 5px; white-space: nowrap; } .memory-counter-sidebar-info .swatch { margin-left: 1px; margin-right: 2px; width: 10px; height: 10px; position: relative; top: 1px; display: inline-block; line-height: 1px; background-image: none; border: 1px solid rgba(0,0,0,0.3); opacity: 0.5; -webkit-user-select: none; } .memory-counter-sidebar-info .title { margin: 4px; } .memory-counter-value { margin: 4px; } #counter-values-bar { flex: 0 0 18px; border-bottom: solid 1px lightgray; width: 100%; overflow: hidden; line-height: 18px; } .timeline .resources-event-divider { height: 19px; width: 6px; pointer-events: auto; margin-left: -2px; } .timeline .resources-event-divider::before { height: 19px; width: 2px; margin: 0 2px; background-color: rgb(163, 109, 0); bottom: auto; content: ""; display: block; } .timeline .resources-event-divider:hover::before { width: 4px; margin: 0 1px; } .timeline .resources-event-divider.timeline-frame-divider::before { display: none; } .timeline .resources-event-divider.resources-red-divider::before { background-color: rgb(255, 0, 0); } .timeline .resources-event-divider.resources-blue-divider::before { background-color: rgb(0, 0, 255); } .timeline .resources-event-divider.resources-orange-divider::before { background-color: rgb(255, 178, 23); } .timeline .resources-event-divider.resources-green-divider::before { background-color: rgb(0, 130, 0); } .resources-divider:last-child { border-color: transparent; } .timeline .resources-event-divider.timeline-frame-divider { background-color: rgba(180, 180, 180, 0.8); border-style: none; width: 1px; height: 100%; pointer-events: none; } .timeline-frame-container { height: 19px; overflow: hidden; background-color: rgb(220, 220, 220); opacity: 0.8; color: black; text-align: center; z-index: 220; pointer-events: auto; } .timeline-frame-strip { position: absolute; height: 19px; padding-top: 3px; } .timeline-frame-strip.selected { background-color: rgb(56, 121, 217); color: white; } #timeline-grid-header { pointer-events: none; height: 19px; } #timeline-graph-records-header { pointer-events: none; height: 19px; padding: 1px 0; justify-content: center; } .timeline-utilization-strip { z-index: 250; overflow: hidden; flex: 0 1 12px; position: relative; height: 9px; } .timeline-utilization-strip .timeline-graph-bar { border-color: rgb(192, 192, 192); background-color: rgba(0, 0, 0, 0.1); margin: 1.5px auto; height: auto; } .timeline-utilization-strip.gpu .timeline-graph-bar { background-color: #00a; border: none; opacity: 0.3; min-width: 0; } .timeline-utilization-strip.gpu .timeline-graph-bar.gpu-task-foreign { background-color: #aaa; } .timeline-cpu-curtain-left, .timeline-cpu-curtain-right { background-color: rgba(210, 210, 210, 0.5); position: absolute; top: 0; height: 100%; z-index: 300; } .timeline-cpu-curtain-left { left: 0; } .timeline-cpu-curtain-right { right: 0; } .image-preview-container { background: transparent; text-align: left; border-spacing: 0; } .image-preview-container img { max-width: 100px; max-height: 100px; background-image: url(Images/checker.png); -webkit-user-select: text; -webkit-user-drag: auto; } .image-container { padding: 0; } .timeline-filters-header { flex: 0 0 23px; overflow: hidden; } .timeline-details { vertical-align: top; } .timeline-details-title { border-bottom: 1px solid #B8B8B8; font-weight: bold; padding-bottom: 5px; padding-top: 0; white-space: nowrap; } .timeline-details-row-title { font-weight: bold; text-align: right; white-space: nowrap; } .timeline-details-row-data { white-space: nowrap; } .timeline-details-view { color: #333; overflow: hidden; } .timeline-details-view-body { flex: auto; overflow: auto; position: relative; background-color: #eee; } .timeline-details-view-block { flex: none; display: flex; flex-direction: column; } .timeline-details-view-row { display: flex; border-bottom: 1px solid #e1e1e1; } .timeline-details-view-row-title { font-weight: bold; color: rgb(48, 57, 66); width: 170px; line-height: 24px; padding-left: 10px; flex: none; } .timeline-details-view-row-value { padding-left: 10px; border-left: 1px solid #e1e1e1; min-height: 24px; line-height: 24px; -webkit-user-select: text; } .timeline-details-view-row-value .stack-preview-container { line-height: 11px; } .timeline-details-view-row-details { padding-left: 10px; } .timeline-details-view-pie-chart-wrapper { margin: 8px 10px 8px 0; } .timeline-details-view-pie-chart { margin-right: 8px; } .timeline-details-view-row-details .image-preview-container { padding: 10px; } .timeline-details-view-row-details table { padding-left: 10px; } .timeline-details-view-row-details table td { text-align: left; vertical-align: top; } .timeline-details-view-row-details table td .section { margin-top: -1px; } .timeline-details-view-row-details table td .section > .header .title { white-space: nowrap; } .timeline-details-view-row-stack-trace { padding: 4px 0 4px 20px; } .timeline-details-view-row-stack-trace div { white-space: nowrap; text-overflow: ellipsis; line-height: 12px; } .timeline-aggregated-info { flex: none; position: relative; margin-left: 5px; } .timeline-aggregated-info-legend > div { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .timeline-flamechart { overflow: hidden; } .timeline-progress-pane { color: #777; background-color: rgba(255, 255, 255, 0.8); font-size: 30px; z-index: 500; display: flex; justify-content: center; align-items: center; } .layer-tree, .profiler-log-view { overflow: auto; } .layer-tree::shadow .dimmed { opacity: 0.6; padding-left: 5px; } .layers-3d-view { overflow: hidden; -webkit-user-select: none; } .layers-3d-view canvas { flex: 1 1; } .transform-control-panel { white-space: nowrap; flex: none; } .layer-details-view .empty-view { font-size: 16px; } .layer-details-view table td { padding-left: 8px; } .layer-details-view table td:first-child { font-weight: bold; } .layer-details-view .scroll-rect.active { background-color: rgba(100, 100, 100, 0.2); } .paint-profiler-overview .progress-banner { color: #777; background-color: rgba(255, 255, 255, 0.8); font-size: 20px; z-index: 500; display: flex; justify-content: center; align-items: center; } .paint-profiler-canvas-container { flex: auto; position: relative; } .paint-profiler-overview { background-color: #eee; } .paint-profiler-pie-chart { width: 60px !important; height: 60px !important; padding: 2px; overflow: hidden; font-size: 10px; } .paint-profiler-canvas-container canvas { z-index: 200; background-color: white; opacity: 0.95; height: 100%; width: 100%; } .paint-profiler-canvas-container .overview-grid-dividers-background, .paint-profiler-canvas-container .overview-grid-window { bottom: 0; height: auto; } .paint-profiler-canvas-container .overview-grid-window-resizer { z-index: 2000; } .paint-profiler-image-view { overflow: hidden; } .paint-profiler-image-view .paint-profiler-image-container { -webkit-transform-origin: 0 0; } .paint-profiler-image-view .paint-profiler-image-container div { border-color: rgba(100, 100, 100, 0.4); border-style: solid; z-index: 100; position: absolute; top: 0; left: 0; } .paint-profiler-image-view img { border: solid 1px black; } .layer-details-view ul { list-style: none; -webkit-padding-start: 0; -webkit-margin-before: 0; -webkit-margin-after: 0; } .layer-details-view a { padding: 8px; display: block; } .timeline-layers-view > div:last-child, .timeline-layers-view-properties > div:last-child { background-color: #eee; } .timeline-layers-view-properties table { width: 100%; border-collapse: collapse; } .timeline-layers-view-properties td { border: 1px solid #e1e1e1; line-height: 22px; } .timeline-paint-profiler-log-split > div:last-child { background-color: #eee; z-index: 0; } .timeline-gap { flex: none; } .invalidations-group { margin-top: 4px; line-height: normal; } .invalidations-group > .header { padding-left: 0; } .invalidations-group > .content { margin-left: 25px; } .invalidations-group > .content > .node-list { border-left: 1px solid #e1e1e1; }