chrome-devtools-frontend 1.0.1684555 → 1.0.1689415
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/.agents/skills/gerrit-cli/SKILL.md +29 -8
- package/.agents/skills/gerrit-cli/references/commands.md +51 -18
- package/.agents/skills/gerrit-cli/references/workflows.md +6 -6
- package/.agents/skills/gerrit-cli/scripts/import_upstream.py +43 -70
- package/config/typescript/tsconfig.base.json +1 -0
- package/config/typescript/tsconfig.eslint.json +9 -0
- package/docs/contributing/issues.md +1 -1
- package/docs/styleguide/ux/writing.md +2 -2
- package/eslint.config.mjs +18 -10
- package/front_end/core/common/Base64.ts +1 -1
- package/front_end/core/common/Color.ts +28 -6
- package/front_end/core/common/ColorConverter.ts +12 -0
- package/front_end/core/common/Console.ts +2 -1
- package/front_end/core/common/Object.ts +2 -2
- package/front_end/core/common/ResourceType.ts +12 -13
- package/front_end/core/common/Revealer.ts +1 -1
- package/front_end/core/common/Settings.ts +2 -2
- package/front_end/core/common/TextDictionary.ts +2 -2
- package/front_end/core/common/Throttler.ts +1 -1
- package/front_end/core/host/InspectorFrontendHostAPI.ts +2 -2
- package/front_end/core/host/UserMetrics.ts +51 -37
- package/front_end/core/host/host.ts +1 -1
- package/front_end/core/i18n/i18nImpl.ts +1 -1
- package/front_end/core/platform/HostRuntime.ts +3 -3
- package/front_end/core/platform/KeyboardUtilities.ts +1 -1
- package/front_end/core/protocol_client/InspectorBackend.ts +7 -6
- package/front_end/core/root/Runtime.ts +4 -2
- package/front_end/core/sdk/AnimationModel.ts +1 -1
- package/front_end/core/sdk/CPUThrottlingManager.ts +198 -0
- package/front_end/core/sdk/CSSMetadata.ts +11 -6
- package/front_end/core/sdk/CSSPropertyParser.ts +5 -3
- package/front_end/core/sdk/CSSPropertyParserMatchers.ts +90 -59
- package/front_end/core/sdk/ConsoleModel.ts +1 -1
- package/front_end/core/sdk/DOMModel.ts +3 -3
- package/front_end/core/sdk/DebuggerModel.ts +1 -1
- package/front_end/core/sdk/EmulationModel.ts +5 -0
- package/front_end/core/sdk/LayerTreeBase.ts +1 -1
- package/front_end/core/sdk/NetworkManager.ts +1 -1
- package/front_end/core/sdk/README.md +40 -0
- package/front_end/core/sdk/RehydratingConnection.ts +1 -1
- package/front_end/core/sdk/RemoteObject.ts +1 -1
- package/front_end/core/sdk/ResourceTreeModel.ts +2 -2
- package/front_end/core/sdk/SDKModel.ts +1 -1
- package/front_end/core/sdk/SDKSettings.ts +6 -0
- package/front_end/core/sdk/Script.ts +2 -1
- package/front_end/core/sdk/SecurityOrigin.ts +48 -0
- package/front_end/core/sdk/ServiceWorkerManager.ts +75 -17
- package/front_end/core/sdk/sdk.ts +2 -0
- package/front_end/core/text_utils/ContentData.ts +1 -1
- package/front_end/entrypoints/formatter_worker/FormattedContentBuilder.ts +3 -1
- package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +1 -1
- package/front_end/entrypoints/formatter_worker/ScopeParser.ts +2 -2
- package/front_end/entrypoints/formatter_worker/Substitute.ts +1 -1
- package/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.ts +1 -1
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +1 -1
- package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +1 -1
- package/front_end/entrypoints/inspector_main/nodeIcon.css +1 -1
- package/front_end/entrypoints/inspector_main/outermostTargetSelector.css +3 -3
- package/front_end/entrypoints/inspector_main/renderingOptions.css +3 -3
- package/front_end/entrypoints/js_app/js_app.ts +25 -9
- package/front_end/entrypoints/node_app/app/nodeConnectionsPanel.css +5 -5
- package/front_end/entrypoints/node_app/node_app.ts +1 -1
- package/front_end/generated/ARIAProperties.ts +39 -1
- package/front_end/generated/InspectorBackendCommands.ts +2 -1
- package/front_end/generated/SupportedCSSProperties.ts +60 -119
- package/front_end/generated/protocol-mapping.d.ts +9 -0
- package/front_end/generated/protocol-proxy-api.d.ts +7 -0
- package/front_end/generated/protocol.ts +12 -2
- package/front_end/models/ai_assistance/AiAgent2.ts +13 -7
- package/front_end/models/ai_assistance/AiConversation.ts +8 -17
- package/front_end/models/ai_assistance/AiHistoryStorage.ts +2 -2
- package/front_end/models/ai_assistance/AiUtils.ts +16 -0
- package/front_end/models/ai_assistance/EvaluateAction.ts +1 -1
- package/front_end/models/ai_assistance/README.md +1 -1
- package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +2 -3
- package/front_end/models/ai_assistance/agents/AiAgent.ts +29 -6
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +4 -3
- package/front_end/models/ai_assistance/agents/FileAgent.ts +2 -2
- package/front_end/models/ai_assistance/agents/NetworkAgent.ts +2 -2
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +1 -1
- package/front_end/models/ai_assistance/agents/StorageAgent.ts +7 -5
- package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +2 -2
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +9 -7
- package/front_end/models/ai_assistance/ai_assistance.ts +8 -0
- package/front_end/models/ai_assistance/contexts/AccessibilityContext.ts +16 -1
- package/front_end/models/ai_assistance/contexts/FileContext.ts +6 -0
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +150 -325
- package/front_end/models/ai_assistance/injected.ts +5 -3
- package/front_end/models/ai_assistance/performance/AIContext.ts +1 -1
- package/front_end/models/ai_assistance/skills/README.md +1 -1
- package/front_end/models/ai_assistance/skills/accessibility.md +19 -10
- package/front_end/models/ai_assistance/skills/network.md +13 -7
- package/front_end/models/ai_assistance/skills/performance.md +22 -16
- package/front_end/models/ai_assistance/skills/sources.md +13 -7
- package/front_end/models/ai_assistance/skills/storage.md +19 -18
- package/front_end/models/ai_assistance/skills/styling.md +30 -37
- package/front_end/models/ai_assistance/tools/CookieUtils.ts +120 -0
- package/front_end/models/ai_assistance/tools/DOMStorageUtils.ts +53 -4
- package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +8 -32
- package/front_end/models/ai_assistance/tools/GetCookieValues.ts +146 -0
- package/front_end/models/ai_assistance/tools/GetDetailedCallTree.ts +11 -9
- package/front_end/models/ai_assistance/tools/GetElementAccessibilityDetails.ts +17 -5
- package/front_end/models/ai_assistance/tools/GetFunctionCode.ts +12 -11
- package/front_end/models/ai_assistance/tools/GetInsightDetails.ts +11 -11
- package/front_end/models/ai_assistance/tools/GetLighthouseAudits.ts +3 -2
- package/front_end/models/ai_assistance/tools/GetNetworkRequestDetails.ts +3 -3
- package/front_end/models/ai_assistance/tools/GetResourceContent.ts +12 -12
- package/front_end/models/ai_assistance/tools/GetSourceContent.ts +3 -2
- package/front_end/models/ai_assistance/tools/GetStorageBreakdown.ts +132 -0
- package/front_end/models/ai_assistance/tools/GetStorageValues.ts +17 -4
- package/front_end/models/ai_assistance/tools/GetStyles.ts +3 -3
- package/front_end/models/ai_assistance/tools/GetTraceEventByKey.ts +9 -8
- package/front_end/models/ai_assistance/tools/GetTraceMainThreadSummary.ts +13 -14
- package/front_end/models/ai_assistance/tools/GetTraceNetworkSummary.ts +12 -10
- package/front_end/models/ai_assistance/tools/ListCookies.ts +93 -0
- package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +15 -6
- package/front_end/models/ai_assistance/tools/ListPageOrigins.ts +3 -3
- package/front_end/models/ai_assistance/tools/ListSources.ts +5 -3
- package/front_end/models/ai_assistance/tools/ListStorageKeys.ts +16 -4
- package/front_end/models/ai_assistance/tools/RecordPerformanceTrace.ts +3 -2
- package/front_end/models/ai_assistance/tools/ResolveDevtoolsNodePath.ts +4 -3
- package/front_end/models/ai_assistance/tools/RunLighthouse.ts +9 -9
- package/front_end/models/ai_assistance/tools/SelectTraceEventByKey.ts +9 -8
- package/front_end/models/ai_assistance/tools/Tool.ts +21 -11
- package/front_end/models/ai_assistance/tools/ToolRegistry.ts +41 -8
- package/front_end/models/badges/AiExplorerBadge.ts +3 -3
- package/front_end/models/badges/CodeWhispererBadge.ts +2 -2
- package/front_end/models/badges/DOMDetectiveBadge.ts +3 -3
- package/front_end/models/badges/SpeedsterBadge.ts +3 -3
- package/front_end/models/badges/StarterBadge.ts +4 -4
- package/front_end/models/bindings/CompilerScriptMapping.ts +11 -2
- package/front_end/models/bindings/ContentProviderBasedProject.ts +3 -2
- package/front_end/models/breakpoints/BreakpointManager.ts +1 -1
- package/front_end/models/emulation/EmulatedDevices.ts +2 -2
- package/front_end/models/formatter/FormatterWorkerPool.ts +2 -2
- package/front_end/models/formatter/ScriptFormatter.ts +1 -2
- package/front_end/models/geometry/GeometryImpl.ts +2 -2
- package/front_end/models/heap_snapshot/HeapSnapshotModel.ts +1 -1
- package/front_end/models/heap_snapshot/HeapSnapshotProxy.ts +3 -2
- package/front_end/models/issues_manager/ContentSecurityPolicyIssue.ts +5 -5
- package/front_end/models/issues_manager/GenericIssue.ts +18 -18
- package/front_end/models/issues_manager/StylesheetLoadingIssue.ts +1 -1
- package/front_end/models/javascript_metadata/{NativeFunctions.js → NativeFunctions.ts} +25 -9
- package/front_end/models/live-metrics/LiveMetrics.ts +9 -3
- package/front_end/models/live-metrics/web-vitals-injected/spec/spec.ts +58 -6
- package/front_end/models/live-metrics/web-vitals-injected/web-vitals-injected.ts +2 -62
- package/front_end/models/network_time_calculator/RequestTimeRanges.ts +2 -2
- package/front_end/models/persistence/AutomaticFileSystemWorkspaceBinding.ts +5 -0
- package/front_end/models/persistence/IsolatedFileSystem.ts +1 -1
- package/front_end/models/persistence/NetworkPersistenceManager.ts +35 -6
- package/front_end/models/stack_trace/StackTraceImpl.ts +2 -2
- package/front_end/models/trace/LanternComputationData.ts +2 -3
- package/front_end/models/trace/extras/StackTraceForEvent.ts +3 -2
- package/front_end/models/trace/extras/ThirdParties.ts +9 -9
- package/front_end/models/trace/handlers/AsyncJSCallsHandler.ts +7 -4
- package/front_end/models/trace/handlers/FramesHandler.ts +3 -3
- package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +2 -2
- package/front_end/models/trace/handlers/SamplesHandler.ts +4 -2
- package/front_end/models/trace/handlers/UserInteractionsHandler.ts +1 -1
- package/front_end/models/trace/handlers/WarningsHandler.ts +2 -2
- package/front_end/models/trace/helpers/Network.ts +3 -3
- package/front_end/models/trace/helpers/Trace.ts +1 -1
- package/front_end/models/trace/insights/CLSCulprits.ts +2 -1
- package/front_end/models/trace/insights/Cache.ts +3 -1
- package/front_end/models/trace/insights/CharacterSet.ts +3 -1
- package/front_end/models/trace/insights/DOMSize.ts +3 -1
- package/front_end/models/trace/insights/DocumentLatency.ts +3 -1
- package/front_end/models/trace/insights/DuplicatedJavaScript.ts +3 -1
- package/front_end/models/trace/insights/FontDisplay.ts +2 -1
- package/front_end/models/trace/insights/ForcedReflow.ts +2 -1
- package/front_end/models/trace/insights/INPBreakdown.ts +3 -1
- package/front_end/models/trace/insights/ImageDelivery.ts +3 -1
- package/front_end/models/trace/insights/LCPBreakdown.ts +3 -1
- package/front_end/models/trace/insights/LCPDiscovery.ts +3 -1
- package/front_end/models/trace/insights/LegacyJavaScript.ts +3 -1
- package/front_end/models/trace/insights/ModernHTTP.ts +2 -1
- package/front_end/models/trace/insights/NetworkDependencyTree.ts +2 -1
- package/front_end/models/trace/insights/RenderBlocking.ts +5 -4
- package/front_end/models/trace/insights/SlowCSSSelector.ts +3 -1
- package/front_end/models/trace/insights/ThirdParties.ts +5 -3
- package/front_end/models/trace/insights/Viewport.ts +2 -1
- package/front_end/models/trace/lantern/simulation/Constants.ts +34 -2
- package/front_end/models/trace/lantern/simulation/DNSCache.ts +1 -1
- package/front_end/models/trace/types/TraceEvents.ts +8 -3
- package/front_end/models/trace_source_maps_resolver/SourceMapsResolver.ts +2 -1
- package/front_end/models/workspace/WorkspaceImpl.ts +18 -2
- package/front_end/panels/accessibility/AccessibilityAnnouncementRecordingView.ts +686 -2
- package/front_end/panels/accessibility/accessibilityNode.css +4 -4
- package/front_end/panels/accessibility/accessibilityProperties.css +1 -1
- package/front_end/panels/accessibility/accessibilitySidebarView.css +2 -2
- package/front_end/panels/accessibility/axBreadcrumbs.css +13 -13
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +14 -14
- package/front_end/panels/ai_assistance/ExternalHandler.ts +1 -1
- package/front_end/panels/ai_assistance/aiAssistancePanel.css +1 -1
- package/front_end/panels/ai_assistance/components/ChatInput.ts +3 -2
- package/front_end/panels/ai_assistance/components/ChatView.ts +1 -1
- package/front_end/panels/ai_assistance/components/DisabledWidget.ts +1 -1
- package/front_end/panels/ai_assistance/components/ExploreWidget.ts +1 -1
- package/front_end/panels/ai_assistance/components/chatInput.css +12 -12
- package/front_end/panels/ai_assistance/components/chatMessage.css +16 -16
- package/front_end/panels/ai_assistance/components/chatView.css +2 -2
- package/front_end/panels/ai_assistance/components/exploreWidget.css +1 -1
- package/front_end/panels/ai_assistance/components/exportForAgentsDialog.css +4 -0
- package/front_end/panels/ai_assistance/components/walkthroughView.css +6 -6
- package/front_end/panels/animation/animationTimeline.css +62 -62
- package/front_end/panels/application/ApplicationPanelSidebar.ts +6 -1
- package/front_end/panels/application/BackgroundServiceView.ts +290 -252
- package/front_end/panels/application/WebMCPView.ts +15 -7
- package/front_end/panels/application/appManifestView.css +5 -5
- package/front_end/panels/application/backgroundServiceView.css +18 -2
- package/front_end/panels/application/components/AdsView.ts +100 -4
- package/front_end/panels/application/components/adsView.css +8 -5
- package/front_end/panels/application/components/backForwardCacheView.css +5 -5
- package/front_end/panels/application/components/bounceTrackingMitigationsView.css +1 -1
- package/front_end/panels/application/components/endpointsGrid.css +1 -1
- package/front_end/panels/application/components/permissionsPolicySection.css +1 -1
- package/front_end/panels/application/components/protocolHandlersView.css +6 -6
- package/front_end/panels/application/components/reportsGrid.css +1 -1
- package/front_end/panels/application/components/serviceWorkerRouterView.css +4 -4
- package/front_end/panels/application/components/trustTokensView.css +7 -7
- package/front_end/panels/application/cookieItemsView.css +3 -3
- package/front_end/panels/application/deviceBoundSessionsView.css +3 -3
- package/front_end/panels/application/frameDetailsReportView.css +11 -11
- package/front_end/panels/application/indexedDBViews.css +7 -7
- package/front_end/panels/application/originTrialTokenRows.css +2 -2
- package/front_end/panels/application/originTrialTreeView.css +3 -3
- package/front_end/panels/application/preloading/components/RuleSetDetailsView.css +2 -2
- package/front_end/panels/application/preloading/components/preloadingDetailsReportView.css +1 -1
- package/front_end/panels/application/preloading/components/preloadingDisabledInfobar.css +2 -2
- package/front_end/panels/application/preloading/components/preloadingGrid.css +2 -2
- package/front_end/panels/application/preloading/components/usedPreloadingView.css +7 -7
- package/front_end/panels/application/preloading/preloadingView.css +1 -1
- package/front_end/panels/application/preloading/preloadingViewDropDown.css +3 -3
- package/front_end/panels/application/serviceWorkerCacheViews.css +5 -5
- package/front_end/panels/application/serviceWorkerUpdateCycleView.css +12 -12
- package/front_end/panels/application/serviceWorkersView.css +15 -16
- package/front_end/panels/application/storageView.css +5 -5
- package/front_end/panels/application/webMCPView.css +9 -9
- package/front_end/panels/autofill/autofillView.css +4 -4
- package/front_end/panels/browser_debugger/categorizedBreakpointsSidebarPane.css +4 -4
- package/front_end/panels/browser_debugger/domBreakpointsSidebarPane.css +5 -3
- package/front_end/panels/browser_debugger/xhrBreakpointsSidebarPane.css +4 -4
- package/front_end/panels/changes/changesSidebar.css +1 -1
- package/front_end/panels/changes/changesView.css +1 -1
- package/front_end/panels/changes/combinedDiffView.css +1 -1
- package/front_end/panels/common/CPUThrottlingOption.ts +5 -10
- package/front_end/panels/common/badgeNotification.css +2 -2
- package/front_end/panels/common/domLinkifier.css +1 -1
- package/front_end/panels/common/gdpSignUpDialog.css +3 -3
- package/front_end/panels/common/geminiRebrandPromoDialog.css +1 -1
- package/front_end/panels/console/ConsolePrompt.ts +6 -3
- package/front_end/panels/console/ConsoleView.ts +6 -3
- package/front_end/panels/console/ConsoleViewMessage.ts +3 -1
- package/front_end/panels/console/console-meta.ts +5 -24
- package/front_end/panels/console/consoleContextSelector.css +2 -2
- package/front_end/panels/console/consolePinPane.css +9 -9
- package/front_end/panels/console/consolePrompt.css +5 -5
- package/front_end/panels/console/consoleView.css +39 -39
- package/front_end/panels/coverage/coverageListView.css +2 -2
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +34 -34
- package/front_end/panels/css_overview/cssOverviewProcessingView.css +5 -5
- package/front_end/panels/css_overview/cssOverviewSidebarPanel.css +1 -1
- package/front_end/panels/css_overview/cssOverviewStartView.css +17 -17
- package/front_end/panels/elements/AdoptedStyleSheetTreeElement.ts +209 -62
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +4 -4
- package/front_end/panels/elements/DOMTreeContextMenu.ts +59 -54
- package/front_end/panels/elements/ElementsPanel.ts +1 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +130 -94
- package/front_end/panels/elements/ElementsTreeOutline.ts +1751 -363
- package/front_end/panels/elements/ShortcutTreeElement.ts +6 -3
- package/front_end/panels/elements/StylePropertiesSection.ts +65 -8
- package/front_end/panels/elements/StylePropertyTreeElement.ts +6 -0
- package/front_end/panels/elements/StylesSidebarPane.ts +143 -8
- package/front_end/panels/elements/classesPaneWidget.css +6 -6
- package/front_end/panels/elements/components/stylePropertyEditor.css +7 -7
- package/front_end/panels/elements/computedStyleWidget.css +1 -1
- package/front_end/panels/elements/elementStatePaneWidget.css +8 -8
- package/front_end/panels/elements/elements-meta.ts +14 -0
- package/front_end/panels/elements/elementsPanel.css +4 -4
- package/front_end/panels/elements/elementsTreeOutline.css +222 -38
- package/front_end/panels/elements/layersWidget.css +4 -4
- package/front_end/panels/elements/layoutPane.css +18 -18
- package/front_end/panels/elements/metricsSidebarPane.css +11 -11
- package/front_end/panels/elements/platformFontsWidget.css +5 -5
- package/front_end/panels/elements/propertiesWidget.css +2 -2
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +20 -20
- package/front_end/panels/elements/stylesSidebarPane.css +37 -20
- package/front_end/panels/emulation/deviceModeView.css +49 -49
- package/front_end/panels/emulation/mediaQueryInspector.css +18 -18
- package/front_end/panels/event_listeners/eventListenersView.css +1 -1
- package/front_end/panels/explain/components/consoleInsight.css +29 -29
- package/front_end/panels/issues/components/elementsPanelLink.css +2 -2
- package/front_end/panels/issues/components/hideIssuesMenu.css +1 -1
- package/front_end/panels/issues/issuesPane.css +2 -2
- package/front_end/panels/issues/issuesTree.css +50 -50
- package/front_end/panels/layer_viewer/Layers3DView.ts +9 -10
- package/front_end/panels/layer_viewer/layerDetailsView.css +1 -1
- package/front_end/panels/layer_viewer/layerTreeOutline.css +2 -2
- package/front_end/panels/layer_viewer/layers3DView.css +1 -1
- package/front_end/panels/layer_viewer/paintProfiler.css +1 -1
- package/front_end/panels/lighthouse/LighthouseReportSelector.ts +2 -2
- package/front_end/panels/media/playerListView.css +9 -9
- package/front_end/panels/media/playerMessagesView.css +8 -8
- package/front_end/panels/media/playerPropertiesView.css +6 -6
- package/front_end/panels/mobile_throttling/NetworkPanelIndicator.ts +1 -1
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +9 -9
- package/front_end/panels/network/NetworkDataGridNode.ts +1 -0
- package/front_end/panels/network/NetworkPanel.ts +9 -4
- package/front_end/panels/network/RequestConditionsDrawer.ts +12 -12
- package/front_end/panels/network/RequestPayloadView.ts +78 -26
- package/front_end/panels/network/binaryResourceView.css +1 -1
- package/front_end/panels/network/components/EditableSpan.css +3 -3
- package/front_end/panels/network/components/HeaderSectionRow.css +14 -14
- package/front_end/panels/network/components/RequestHeaderSection.css +7 -7
- package/front_end/panels/network/components/RequestHeadersView.css +18 -18
- package/front_end/panels/network/components/RequestTrustTokensView.css +1 -1
- package/front_end/panels/network/network-meta.ts +9 -9
- package/front_end/panels/network/networkConfigView.css +11 -11
- package/front_end/panels/network/networkLogView.css +35 -35
- package/front_end/panels/network/networkManageCustomHeadersView.css +1 -1
- package/front_end/panels/network/networkPanel.css +7 -7
- package/front_end/panels/network/networkTimingTable.css +13 -13
- package/front_end/panels/network/requestConditionsDrawer.css +4 -4
- package/front_end/panels/network/requestCookiesView.css +5 -5
- package/front_end/panels/network/requestDeviceBoundSessionsView.css +1 -1
- package/front_end/panels/network/requestHTMLView.css +1 -1
- package/front_end/panels/network/requestHeadersTree.css +19 -19
- package/front_end/panels/network/requestInitiatorView.css +1 -1
- package/front_end/panels/network/requestInitiatorViewTree.css +3 -3
- package/front_end/panels/network/requestPayloadTree.css +5 -5
- package/front_end/panels/network/requestPayloadView.css +1 -1
- package/front_end/panels/network/resourceChunkView.css +3 -3
- package/front_end/panels/network/signedExchangeInfoTree.css +6 -6
- package/front_end/panels/profiler/heapProfiler.css +15 -15
- package/front_end/panels/profiler/profileLauncherView.css +10 -10
- package/front_end/panels/recorder/RecordingView.ts +1 -1
- package/front_end/panels/recorder/StepEditor.ts +86 -7
- package/front_end/panels/recorder/TimelineSection.ts +2 -1
- package/front_end/panels/recorder/createRecordingView.css +17 -17
- package/front_end/panels/recorder/extensionView.css +5 -5
- package/front_end/panels/recorder/injected/RecordingClient.ts +1 -1
- package/front_end/panels/recorder/models/SchemaUtils.ts +2 -2
- package/front_end/panels/recorder/models/ScreenshotStorage.ts +1 -1
- package/front_end/panels/recorder/recorderPanel.css +7 -7
- package/front_end/panels/recorder/recordingListView.css +12 -12
- package/front_end/panels/recorder/recordingView.css +47 -47
- package/front_end/panels/recorder/stepEditor.css +2 -2
- package/front_end/panels/recorder/stepView.css +20 -20
- package/front_end/panels/recorder/timelineSection.css +9 -9
- package/front_end/panels/screencast/screencastView.css +12 -12
- package/front_end/panels/search/searchResultsPane.css +10 -10
- package/front_end/panels/search/searchView.css +9 -9
- package/front_end/panels/security/SecurityPanel.ts +84 -54
- package/front_end/panels/security/mainView.css +26 -26
- package/front_end/panels/security/originView.css +15 -15
- package/front_end/panels/sensors/locationsSettingsTab.css +6 -6
- package/front_end/panels/sensors/sensors.css +28 -28
- package/front_end/panels/settings/components/syncSection.css +5 -5
- package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +13 -13
- package/front_end/panels/settings/emulation/devicesSettingsTab.css +16 -16
- package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +2 -2
- package/front_end/panels/settings/keybindsSettingsTab.css +2 -2
- package/front_end/panels/settings/settingsScreen.css +5 -5
- package/front_end/panels/sources/UISourceCodeFrame.ts +1 -1
- package/front_end/panels/sources/breakpointEditDialog.css +9 -9
- package/front_end/panels/sources/breakpointsView.css +25 -25
- package/front_end/panels/sources/callStackSidebarPane.css +10 -10
- package/front_end/panels/sources/components/HeadersView.css +6 -6
- package/front_end/panels/sources/debuggerPausedMessage.css +4 -4
- package/front_end/panels/sources/dialog.css +2 -2
- package/front_end/panels/sources/navigatorTree.css +2 -2
- package/front_end/panels/sources/navigatorView.css +2 -2
- package/front_end/panels/sources/scopeChainSidebarPane.css +1 -1
- package/front_end/panels/sources/sourcesNavigator.css +1 -1
- package/front_end/panels/sources/sourcesPanel.css +2 -2
- package/front_end/panels/sources/sourcesView.css +1 -1
- package/front_end/panels/sources/threadsSidebarPane.css +5 -5
- package/front_end/panels/sources/watchExpressionsSidebarPane.css +8 -8
- package/front_end/panels/timeline/TimelineDetailsView.ts +9 -21
- package/front_end/panels/timeline/TimelineFlameChartView.ts +3 -5
- package/front_end/panels/timeline/TimelineMiniMap.ts +3 -3
- package/front_end/panels/timeline/components/LiveMetricsView.ts +1 -1
- package/front_end/panels/timeline/components/breadcrumbsUI.css +3 -3
- package/front_end/panels/timeline/components/exportTraceOptions.css +1 -1
- package/front_end/panels/timeline/components/fieldSettingsDialog.css +13 -13
- package/front_end/panels/timeline/components/ignoreListSetting.css +3 -3
- package/front_end/panels/timeline/components/liveMetricsView.css +39 -39
- package/front_end/panels/timeline/components/metricCard.css +20 -20
- package/front_end/panels/timeline/components/networkRequestDetails.css +9 -9
- package/front_end/panels/timeline/components/networkRequestTooltip.css +14 -14
- package/front_end/panels/timeline/components/networkTrackWidget.css +2 -2
- package/front_end/panels/timeline/components/originMap.css +4 -4
- package/front_end/panels/timeline/components/relatedInsightChips.css +1 -1
- package/front_end/panels/timeline/components/sidebarAnnotationsTab.css +4 -4
- package/front_end/panels/timeline/components/sidebarInsightsTab.css +5 -5
- package/front_end/panels/timeline/components/sidebarSingleInsightSet.css +1 -1
- package/front_end/panels/timeline/components/timelineSummary.css +4 -4
- package/front_end/panels/timeline/overlays/OverlaysImpl.ts +4 -4
- package/front_end/panels/timeline/overlays/components/EntriesLinkOverlay.ts +1 -1
- package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +6 -6
- package/front_end/panels/timeline/overlays/components/TimeRangeOverlay.ts +1 -1
- package/front_end/panels/timeline/thirdPartyTreeView.css +5 -5
- package/front_end/panels/timeline/timeline-meta.ts +0 -6
- package/front_end/panels/timeline/timelineDetailsView.css +11 -11
- package/front_end/panels/timeline/timelinePanel.css +20 -20
- package/front_end/panels/timeline/timelineTreeView.css +8 -8
- package/front_end/panels/webauthn/webauthnPane.css +6 -6
- package/front_end/panels/whats_new/ReleaseNoteText.ts +2 -2
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/i18n/i18n-impl.ts +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +15 -1
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +42 -8
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.js +15 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.d.ts +14 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.js +23 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.js +77 -6
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +15 -1
- package/front_end/third_party/puppeteer/package/package.json +2 -2
- package/front_end/third_party/puppeteer/package/src/cdp/Frame.ts +16 -2
- package/front_end/third_party/puppeteer/package/src/cdp/WebMCP.ts +36 -1
- package/front_end/third_party/puppeteer/package/src/generated/injected.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/injected/Poller.ts +86 -6
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/third_party/web-vitals/README.chromium +2 -2
- package/front_end/third_party/web-vitals/package/README.md +22 -7
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.js +6 -2
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.d.ts +2 -2
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.js +30 -3
- package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.d.ts +14 -0
- package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.js +19 -13
- package/front_end/third_party/web-vitals/package/dist/modules/lib/bindReporter.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/doubleRAF.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.d.ts +3 -3
- package/front_end/third_party/web-vitals/package/dist/modules/lib/softNavs.js +3 -1
- package/front_end/third_party/web-vitals/package/dist/modules/types/lcp.d.ts +15 -1
- package/front_end/third_party/web-vitals/package/package.json +1 -2
- package/front_end/third_party/web-vitals/package/src/attribution/onINP.ts +9 -2
- package/front_end/third_party/web-vitals/package/src/attribution/onLCP.ts +36 -5
- package/front_end/third_party/web-vitals/package/src/lib/InteractionManager.ts +21 -15
- package/front_end/third_party/web-vitals/package/src/lib/doubleRAF.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/lib/softNavs.ts +4 -1
- package/front_end/third_party/web-vitals/package/src/types/lcp.ts +16 -1
- package/front_end/third_party/web-vitals/rebuild.sh +3 -3
- package/front_end/ui/comments/CommentAnchorResolver.ts +15 -4
- package/front_end/ui/comments/commentsOverlay.css +6 -5
- package/front_end/ui/components/adorners/Adorner.ts +1 -1
- package/front_end/ui/components/adorners/adorner.css +6 -6
- package/front_end/ui/components/buttons/FloatingButton.ts +1 -1
- package/front_end/ui/components/buttons/button.css +9 -9
- package/front_end/ui/components/buttons/floatingButton.css +2 -2
- package/front_end/ui/components/buttons/textButton.css +12 -12
- package/front_end/ui/components/dialogs/Dialog.ts +1 -1
- package/front_end/ui/components/dialogs/dialog.css +1 -1
- package/front_end/ui/components/diff_view/diffView.css +3 -3
- package/front_end/ui/components/expandable_list/expandableList.css +9 -9
- package/front_end/ui/components/highlighting/HighlightElement.ts +1 -1
- package/front_end/ui/components/highlighting/HighlightManager.ts +4 -0
- package/front_end/ui/components/icon_button/iconButton.css +2 -2
- package/front_end/ui/components/input/checkbox.css +8 -8
- package/front_end/ui/components/input/textInput.css +3 -3
- package/front_end/ui/components/issue_counter/issueLinkIcon.css +2 -2
- package/front_end/ui/components/linkifier/linkifierImpl.css +1 -1
- package/front_end/ui/components/markdown_view/MarkdownImagesMap.ts +1 -1
- package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +1 -1
- package/front_end/ui/components/markdown_view/codeBlock.css +2 -2
- package/front_end/ui/components/markdown_view/markdownView.css +7 -7
- package/front_end/ui/components/menus/menuGroup.css +2 -2
- package/front_end/ui/components/menus/menuItem.css +2 -2
- package/front_end/ui/components/menus/selectMenu.css +2 -2
- package/front_end/ui/components/menus/selectMenuButton.css +4 -4
- package/front_end/ui/components/panel_feedback/panelFeedback.css +15 -15
- package/front_end/ui/components/panel_feedback/previewToggle.css +2 -2
- package/front_end/ui/components/panel_introduction_steps/panelIntroductionSteps.css +7 -7
- package/front_end/ui/components/report_view/report.css +3 -3
- package/front_end/ui/components/report_view/reportSectionDivider.css +1 -1
- package/front_end/ui/components/report_view/reportValue.css +1 -1
- package/front_end/ui/components/request_link_icon/requestLinkIcon.css +2 -2
- package/front_end/ui/components/settings/settingCheckbox.css +6 -6
- package/front_end/ui/components/text_editor/TextEditor.ts +3 -1
- package/front_end/ui/components/text_editor/config.ts +16 -4
- package/front_end/ui/kit/icons/icon.css +4 -4
- package/front_end/ui/kit/link/link.css +1 -1
- package/front_end/ui/legacy/ActionRegistration.ts +23 -23
- package/front_end/ui/legacy/Dialog.ts +1 -1
- package/front_end/ui/legacy/DockController.ts +3 -3
- package/front_end/ui/legacy/EmptyWidget.ts +13 -34
- package/front_end/ui/legacy/FilterBar.ts +4 -4
- package/front_end/ui/legacy/Infobar.ts +2 -2
- package/front_end/ui/legacy/InspectorDrawerView.ts +6 -6
- package/front_end/ui/legacy/InspectorView.ts +19 -26
- package/front_end/ui/legacy/ListWidget.ts +7 -7
- package/front_end/ui/legacy/PlusButton.ts +1 -3
- package/front_end/ui/legacy/RemoteDebuggingTerminatedScreen.ts +6 -6
- package/front_end/ui/legacy/SearchableView.ts +16 -16
- package/front_end/ui/legacy/SoftContextMenu.ts +8 -8
- package/front_end/ui/legacy/SoftDropDown.ts +1 -1
- package/front_end/ui/legacy/SuggestBox.ts +2 -2
- package/front_end/ui/legacy/TabbedPane.ts +10 -10
- package/front_end/ui/legacy/TargetCrashedScreen.ts +2 -2
- package/front_end/ui/legacy/Toolbar.ts +5 -5
- package/front_end/ui/legacy/Treeoutline.ts +1 -1
- package/front_end/ui/legacy/UIUtils.ts +80 -20
- package/front_end/ui/legacy/ViewManager.ts +1 -1
- package/front_end/ui/legacy/ViewRegistration.ts +7 -7
- package/front_end/ui/legacy/Widget.ts +5 -5
- package/front_end/ui/legacy/checkboxTextLabel.css +3 -3
- package/front_end/ui/legacy/components/color_picker/ColorFormatSpec.ts +16 -0
- package/front_end/ui/legacy/components/color_picker/FormatPickerContextMenu.ts +1 -0
- package/front_end/ui/legacy/components/color_picker/spectrum.css +90 -90
- package/front_end/ui/legacy/components/cookie_table/cookiesTable.css +1 -1
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +26 -28
- package/front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts +3 -7
- package/front_end/ui/legacy/components/inline_editor/bezierEditor.css +13 -13
- package/front_end/ui/legacy/components/inline_editor/colorSwatch.css +7 -7
- package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +5 -5
- package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +18 -18
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +104 -86
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +8 -6
- package/front_end/ui/legacy/components/object_ui/objectPopover.css +4 -4
- package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +6 -6
- package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +28 -11
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +0 -4
- package/front_end/ui/legacy/components/perf_ui/chartViewport.css +4 -4
- package/front_end/ui/legacy/components/perf_ui/filmStripView.css +6 -6
- package/front_end/ui/legacy/components/perf_ui/flameChart.css +7 -7
- package/front_end/ui/legacy/components/perf_ui/overviewGrid.css +11 -11
- package/front_end/ui/legacy/components/perf_ui/pieChart.css +6 -6
- package/front_end/ui/legacy/components/perf_ui/timelineGrid.css +5 -5
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +3 -3
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/imageView.css +1 -1
- package/front_end/ui/legacy/components/source_frame/jsonView.css +1 -1
- package/front_end/ui/legacy/components/source_frame/resourceSourceFrame.css +1 -1
- package/front_end/ui/legacy/components/source_frame/xmlTree.css +3 -3
- package/front_end/ui/legacy/components/utils/imagePreview.css +1 -1
- package/front_end/ui/legacy/components/utils/jsUtils.css +10 -10
- package/front_end/ui/legacy/dropTarget.css +2 -2
- package/front_end/ui/legacy/emptyWidget.css +6 -0
- package/front_end/ui/legacy/filter.css +19 -19
- package/front_end/ui/legacy/infobar.css +2 -2
- package/front_end/ui/legacy/inspectorCommon.css +67 -67
- package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +1 -1
- package/front_end/ui/legacy/listWidget.css +5 -5
- package/front_end/ui/legacy/progressIndicator.css +4 -4
- package/front_end/ui/legacy/reportView.css +7 -7
- package/front_end/ui/legacy/searchableView.css +5 -5
- package/front_end/ui/legacy/smallBubble.css +3 -3
- package/front_end/ui/legacy/softContextMenu.css +4 -4
- package/front_end/ui/legacy/softDropDownButton.css +1 -1
- package/front_end/ui/legacy/splitWidget.css +9 -31
- package/front_end/ui/legacy/suggestBox.css +4 -4
- package/front_end/ui/legacy/tabbedPane.css +17 -17
- package/front_end/ui/legacy/textPrompt.css +2 -2
- package/front_end/ui/legacy/toolbar.css +4 -4
- package/front_end/ui/legacy/treeoutline.css +14 -14
- package/front_end/ui/legacy/viewContainers.css +6 -6
- package/front_end/ui/settings/ConsoleSettings.ts +34 -0
- package/front_end/ui/visual_logging/KnownContextValues.ts +12 -0
- package/inspector_overlay/common.ts +12 -12
- package/inspector_overlay/css_grid_label_helpers.ts +16 -17
- package/inspector_overlay/drag_resize_handler.ts +2 -2
- package/inspector_overlay/highlight_common.ts +11 -13
- package/inspector_overlay/highlight_container_query.ts +2 -2
- package/inspector_overlay/highlight_flex_common.ts +6 -7
- package/inspector_overlay/highlight_grid_common.ts +3 -3
- package/inspector_overlay/highlight_isolated_element.ts +12 -3
- package/inspector_overlay/highlight_scroll_snap.ts +2 -2
- package/inspector_overlay/loadCSS.rollup.js +0 -1
- package/inspector_overlay/testing/InspectorOverlayHelpers.ts +13 -13
- package/inspector_overlay/tool_green_dev_anchors.ts +3 -3
- package/inspector_overlay/tool_highlight.ts +9 -9
- package/inspector_overlay/tool_paused.ts +4 -4
- package/inspector_overlay/tool_persistent.ts +11 -11
- package/inspector_overlay/tool_screenshot.ts +7 -7
- package/inspector_overlay/tool_source_order.ts +4 -4
- package/inspector_overlay/tool_viewport_size.ts +3 -3
- package/inspector_overlay/tool_window_controls.ts +4 -4
- package/mcp/mcp.ts +1 -0
- package/package.json +2 -2
- package/front_end/generated/protocol-tsconfig.json +0 -10
- package/front_end/panels/js_timeline/DIR_METADATA +0 -3
- package/front_end/panels/js_timeline/js_timeline-meta.ts +0 -193
- package/front_end/panels/js_timeline/js_timeline.ts +0 -1
- /package/front_end/entrypoints/{formatter_worker/FormatterActions.ts → formatter_actions/formatter_actions.ts} +0 -0
|
@@ -134,9 +134,9 @@
|
|
|
134
134
|
text-align: left;
|
|
135
135
|
|
|
136
136
|
&:focus-visible {
|
|
137
|
-
outline:
|
|
138
|
-
outline-offset:
|
|
139
|
-
border-radius:
|
|
137
|
+
outline: var(--sys-size-2) solid var(--sys-color-state-focus-ring);
|
|
138
|
+
outline-offset: var(--sys-size-2);
|
|
139
|
+
border-radius: var(--sys-size-2);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
.tabbed-pane-header {
|
|
145
145
|
display: flex;
|
|
146
146
|
flex: 0 0 27px;
|
|
147
|
-
border-bottom:
|
|
147
|
+
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
148
148
|
overflow: visible;
|
|
149
149
|
width: 100%;
|
|
150
150
|
background-color: var(--app-color-toolbar-background);
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
.tabbed-pane-header-tab-icon {
|
|
170
|
-
min-width:
|
|
170
|
+
min-width: var(--sys-size-7);
|
|
171
171
|
display: flex;
|
|
172
172
|
align-items: center;
|
|
173
173
|
margin-right: var(--sys-size-2);
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
--override-dragging-box-shadow-color: rgb(0 0 0 / 37%);
|
|
273
273
|
|
|
274
274
|
position: relative;
|
|
275
|
-
box-shadow: 0
|
|
275
|
+
box-shadow: 0 var(--sys-size-1) var(--sys-size-3) 0 var(--override-dragging-box-shadow-color);
|
|
276
276
|
background-color: var(--app-color-toolbar-background);
|
|
277
277
|
}
|
|
278
278
|
|
|
@@ -349,9 +349,9 @@
|
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
.tabbed-pane-shadow.vertical-tab-layout .tabbed-pane-header-tab {
|
|
352
|
-
height: var(--size-12
|
|
353
|
-
padding: 0 var(--size-8
|
|
354
|
-
border-radius: 0
|
|
352
|
+
height: var(--sys-size-12);
|
|
353
|
+
padding: 0 var(--sys-size-8) 0 var(--sys-size-7);
|
|
354
|
+
border-radius: 0 var(--sys-shape-corner-full) var(--sys-shape-corner-full) 0;
|
|
355
355
|
color: var(--sys-color-on-surface);
|
|
356
356
|
position: relative;
|
|
357
357
|
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
}
|
|
371
371
|
|
|
372
372
|
&:focus-visible {
|
|
373
|
-
outline:
|
|
373
|
+
outline: var(--sys-size-2) solid var(--sys-color-state-focus-ring);
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
&:active::before {
|
|
@@ -388,7 +388,7 @@
|
|
|
388
388
|
.tabbed-pane-tab-slider {
|
|
389
389
|
height: 3px;
|
|
390
390
|
position: absolute;
|
|
391
|
-
bottom: -
|
|
391
|
+
bottom: calc(-1 * var(--sys-size-1));
|
|
392
392
|
background-color: var(--sys-color-primary);
|
|
393
393
|
border-radius: var(--sys-shape-corner-full) var(--sys-shape-corner-full) 0 0;
|
|
394
394
|
left: 0;
|
|
@@ -413,20 +413,20 @@
|
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
.tabbed-pane-left-toolbar {
|
|
416
|
-
margin-right: -
|
|
416
|
+
margin-right: calc(-1 * var(--sys-size-3));
|
|
417
417
|
flex: none;
|
|
418
418
|
}
|
|
419
419
|
|
|
420
420
|
.tabbed-pane-right-toolbar {
|
|
421
|
-
margin-left: -
|
|
421
|
+
margin-left: calc(-1 * var(--sys-size-3));
|
|
422
422
|
flex: none;
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
.preview-icon {
|
|
426
426
|
--override-tabbed-pane-preview-icon-color: var(--icon-default);
|
|
427
427
|
|
|
428
|
-
width:
|
|
429
|
-
height:
|
|
428
|
+
width: var(--sys-size-8);
|
|
429
|
+
height: var(--sys-size-8);
|
|
430
430
|
display: flex;
|
|
431
431
|
align-items: center;
|
|
432
432
|
justify-content: center;
|
|
@@ -446,7 +446,7 @@
|
|
|
446
446
|
|
|
447
447
|
.tabbed-pane-header {
|
|
448
448
|
forced-color-adjust: none;
|
|
449
|
-
border-bottom:
|
|
449
|
+
border-bottom: var(--sys-size-1) solid transparent;
|
|
450
450
|
background-color: ButtonFace;
|
|
451
451
|
}
|
|
452
452
|
|
|
@@ -523,7 +523,7 @@
|
|
|
523
523
|
|
|
524
524
|
.spark {
|
|
525
525
|
position: absolute;
|
|
526
|
-
top:
|
|
526
|
+
top: var(--sys-size-2);
|
|
527
527
|
|
|
528
528
|
--icon-default: var(--sys-color-primary);
|
|
529
529
|
}
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
box-shadow: var(--drop-shadow);
|
|
14
14
|
background-color: var(--sys-color-cdt-base-container);
|
|
15
15
|
text-overflow: clip !important; /* stylelint-disable-line declaration-no-important */
|
|
16
|
-
margin: 0 -
|
|
17
|
-
padding: 0
|
|
16
|
+
margin: 0 calc(-1 * var(--sys-size-2)) calc(-1 * var(--sys-size-1));
|
|
17
|
+
padding: 0 var(--sys-size-2) var(--sys-size-1);
|
|
18
18
|
opacity: 100% !important; /* stylelint-disable-line declaration-no-important */
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
:host {
|
|
8
|
-
padding: 0
|
|
8
|
+
padding: 0 var(--sys-size-2);
|
|
9
9
|
position: relative;
|
|
10
10
|
white-space: nowrap;
|
|
11
11
|
overflow: hidden;
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
flex-direction: column;
|
|
22
22
|
inset: 0;
|
|
23
23
|
background-color: var(--sys-color-cdt-base-container);
|
|
24
|
-
border:
|
|
25
|
-
margin-top: -
|
|
26
|
-
width:
|
|
24
|
+
border: var(--sys-size-1) solid var(--sys-color-divider);
|
|
25
|
+
margin-top: calc(-1 * var(--sys-size-1));
|
|
26
|
+
width: var(--sys-size-12);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
:host([hidden]) {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
:host {
|
|
8
8
|
flex: 1 1 auto;
|
|
9
|
-
padding:
|
|
9
|
+
padding: var(--sys-size-2) 0 0;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
:host(devtools-tree) {
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.tree-outline {
|
|
22
|
-
padding: 0 0
|
|
22
|
+
padding: 0 0 var(--sys-size-3) var(--sys-size-3);
|
|
23
23
|
margin: 0;
|
|
24
24
|
z-index: 0;
|
|
25
25
|
position: relative;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.tree-outline:focus-visible {
|
|
29
|
-
box-shadow: 0 0 0
|
|
29
|
+
box-shadow: 0 0 0 var(--sys-size-2) var(--sys-color-state-focus-ring) inset;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.tree-outline li .selection {
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
|
|
47
47
|
.tree-outline:not(.hide-selection-when-blurred) li.elements-drag-over .selection {
|
|
48
48
|
display: block;
|
|
49
|
-
margin-top: -
|
|
50
|
-
border-top:
|
|
49
|
+
margin-top: calc(-1 * var(--sys-size-2));
|
|
50
|
+
border-top: var(--sys-size-2) solid;
|
|
51
51
|
border-top-color: var(--sys-color-tonal-container);
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.tree-outline:not(.hide-selection-when-blurred) li.in-clipboard .highlight {
|
|
68
|
-
outline:
|
|
68
|
+
outline: var(--sys-size-1) dotted var(--sys-color-neutral-outline);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
ol.tree-outline:not(.hide-selection-when-blurred) li.selected:focus .selection {
|
|
@@ -78,7 +78,7 @@ ol.tree-outline,
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.tree-outline ol {
|
|
81
|
-
padding-left:
|
|
81
|
+
padding-left: var(--sys-size-6);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.tree-outline li {
|
|
@@ -87,7 +87,7 @@ ol.tree-outline,
|
|
|
87
87
|
position: relative;
|
|
88
88
|
display: flex;
|
|
89
89
|
align-items: center;
|
|
90
|
-
min-height:
|
|
90
|
+
min-height: var(--sys-size-8);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
ol.tree-outline:not(.hide-selection-when-blurred) li.selected:focus {
|
|
@@ -110,11 +110,11 @@ ol.tree-outline:not(.hide-selection-when-blurred) li.selected:focus {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.tree-outline li .leading-icons {
|
|
113
|
-
margin-right:
|
|
113
|
+
margin-right: var(--sys-size-3);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
.tree-outline li .trailing-icons {
|
|
117
|
-
margin-left:
|
|
117
|
+
margin-left: var(--sys-size-3);
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
.tree-outline li::before {
|
|
@@ -145,8 +145,8 @@ ol.tree-outline:not(.hide-selection-when-blurred) li.selected:focus {
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.tree-outline.tree-outline-dense li {
|
|
148
|
-
margin-top:
|
|
149
|
-
min-height:
|
|
148
|
+
margin-top: var(--sys-size-1);
|
|
149
|
+
min-height: var(--sys-size-6);
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
.tree-outline.tree-outline-dense li.parent {
|
|
@@ -163,7 +163,7 @@ ol.tree-outline:not(.hide-selection-when-blurred) li.selected:focus {
|
|
|
163
163
|
|
|
164
164
|
.tree-outline.hide-selection-when-blurred .selected:focus-visible {
|
|
165
165
|
background: var(--sys-color-state-focus-highlight);
|
|
166
|
-
border-radius:
|
|
166
|
+
border-radius: var(--sys-size-2);
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
.tree-outline-disclosure:not(.tree-outline-disclosure-hide-overflow) .tree-outline.hide-selection-when-blurred .selected:focus-visible {
|
|
@@ -181,7 +181,7 @@ ol.tree-outline:not(.hide-selection-when-blurred) li.selected:focus {
|
|
|
181
181
|
height: var(--sys-size-10);
|
|
182
182
|
margin-right: var(--sys-size-3);
|
|
183
183
|
padding-right: var(--sys-size-3);
|
|
184
|
-
padding-left:
|
|
184
|
+
padding-left: var(--sys-size-4);
|
|
185
185
|
|
|
186
186
|
&::before {
|
|
187
187
|
flex-shrink: 0;
|
|
@@ -35,17 +35,17 @@ found in the LICENSE file. */
|
|
|
35
35
|
display: flex;
|
|
36
36
|
align-items: center;
|
|
37
37
|
background-color: var(--sys-color-surface2);
|
|
38
|
-
height:
|
|
38
|
+
height: var(--sys-size-10);
|
|
39
39
|
padding: 0 5px;
|
|
40
40
|
white-space: nowrap;
|
|
41
41
|
overflow: hidden;
|
|
42
42
|
position: relative;
|
|
43
|
-
border-bottom:
|
|
43
|
+
border-bottom: var(--sys-size-1) solid transparent;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.expandable-view-title.expanded,
|
|
47
47
|
.expandable-view-title:last-child {
|
|
48
|
-
border-bottom:
|
|
48
|
+
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.expandable-view-title devtools-toolbar {
|
|
@@ -63,8 +63,8 @@ found in the LICENSE file. */
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.title-expand-icon {
|
|
66
|
-
margin-right:
|
|
67
|
-
margin-bottom: -
|
|
66
|
+
margin-right: var(--sys-size-2);
|
|
67
|
+
margin-bottom: calc(-1 * var(--sys-size-2));
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.expandable-view-title:focus-visible {
|
|
@@ -80,7 +80,7 @@ found in the LICENSE file. */
|
|
|
80
80
|
forced-color-adjust: none;
|
|
81
81
|
color: HighlightText;
|
|
82
82
|
background-color: Highlight;
|
|
83
|
-
box-shadow: 0 0 0
|
|
83
|
+
box-shadow: 0 0 0 var(--sys-size-2) Highlight inset;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
.expandable-view-title:focus-visible .title-expand-icon {
|
|
@@ -30,3 +30,37 @@ export const consoleHistoryAutocompleteSettingDescriptor: Common.Settings.Settin
|
|
|
30
30
|
type: Common.Settings.SettingType.BOOLEAN,
|
|
31
31
|
defaultValue: true,
|
|
32
32
|
};
|
|
33
|
+
|
|
34
|
+
export const consoleAutocompleteOnEnterSettingDescriptor: Common.Settings.SettingDescriptor<boolean> = {
|
|
35
|
+
name: 'console-autocomplete-on-enter',
|
|
36
|
+
type: Common.Settings.SettingType.BOOLEAN,
|
|
37
|
+
defaultValue: false,
|
|
38
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const consoleGroupSimilarSettingDescriptor: Common.Settings.SettingDescriptor<boolean> = {
|
|
42
|
+
name: 'console-group-similar',
|
|
43
|
+
type: Common.Settings.SettingType.BOOLEAN,
|
|
44
|
+
defaultValue: true,
|
|
45
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const consoleShowsCorsErrorsSettingDescriptor: Common.Settings.SettingDescriptor<boolean> = {
|
|
49
|
+
name: 'console-shows-cors-errors',
|
|
50
|
+
type: Common.Settings.SettingType.BOOLEAN,
|
|
51
|
+
defaultValue: true,
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export const consoleEagerEvalSettingDescriptor: Common.Settings.SettingDescriptor<boolean> = {
|
|
55
|
+
name: 'console-eager-eval',
|
|
56
|
+
type: Common.Settings.SettingType.BOOLEAN,
|
|
57
|
+
defaultValue: true,
|
|
58
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export const consoleTraceExpandSettingDescriptor: Common.Settings.SettingDescriptor<boolean> = {
|
|
62
|
+
name: 'console-trace-expand',
|
|
63
|
+
type: Common.Settings.SettingType.BOOLEAN,
|
|
64
|
+
defaultValue: true,
|
|
65
|
+
storageType: Common.Settings.SettingStorageType.SYNCED,
|
|
66
|
+
};
|
|
@@ -347,6 +347,9 @@ export const knownContextValues = new Set([
|
|
|
347
347
|
'added-size',
|
|
348
348
|
'addedSize',
|
|
349
349
|
'additive-symbols',
|
|
350
|
+
'adopted-style-sheet',
|
|
351
|
+
'adopted-style-sheet-contents',
|
|
352
|
+
'adopted-style-sheets',
|
|
350
353
|
'adorner-settings',
|
|
351
354
|
'ads',
|
|
352
355
|
'af',
|
|
@@ -745,6 +748,7 @@ export const knownContextValues = new Set([
|
|
|
745
748
|
'cache-storage.refresh',
|
|
746
749
|
'cache-widget',
|
|
747
750
|
'calibrated-cpu-throttling',
|
|
751
|
+
'call-log',
|
|
748
752
|
'call-tree',
|
|
749
753
|
'cancel',
|
|
750
754
|
'cancel-animation-frame',
|
|
@@ -1510,6 +1514,7 @@ export const knownContextValues = new Set([
|
|
|
1510
1514
|
'edit',
|
|
1511
1515
|
'edit-and-resend',
|
|
1512
1516
|
'edit-and-resend-as-fetch',
|
|
1517
|
+
'edit-and-run',
|
|
1513
1518
|
'edit-attribute',
|
|
1514
1519
|
'edit-breakpoint',
|
|
1515
1520
|
'edit-item',
|
|
@@ -1747,6 +1752,7 @@ export const knownContextValues = new Set([
|
|
|
1747
1752
|
'filter-bar',
|
|
1748
1753
|
'filter-bitset',
|
|
1749
1754
|
'filter-by-rule-set',
|
|
1755
|
+
'filter-by-status',
|
|
1750
1756
|
'finish',
|
|
1751
1757
|
'firefox-android-mobile',
|
|
1752
1758
|
'firefox-android-tablet',
|
|
@@ -3552,6 +3558,7 @@ export const knownContextValues = new Set([
|
|
|
3552
3558
|
'rule-width',
|
|
3553
3559
|
'rulers-enable',
|
|
3554
3560
|
'run',
|
|
3561
|
+
'run-tool',
|
|
3555
3562
|
'rx',
|
|
3556
3563
|
'ry',
|
|
3557
3564
|
'sab-details',
|
|
@@ -3841,6 +3848,7 @@ export const knownContextValues = new Set([
|
|
|
3841
3848
|
'show-grid-track-sizes-true',
|
|
3842
3849
|
'show-html-comments',
|
|
3843
3850
|
'show-html-comments-false',
|
|
3851
|
+
'show-inactive-css-rules',
|
|
3844
3852
|
'show-inherited-computed-style-properties',
|
|
3845
3853
|
'show-issue-associated-with-this',
|
|
3846
3854
|
'show-layout-shift-regions',
|
|
@@ -4436,6 +4444,9 @@ export const knownContextValues = new Set([
|
|
|
4436
4444
|
'toggle-recording',
|
|
4437
4445
|
'toggle-similar-issues',
|
|
4438
4446
|
'toggle-url-decoding',
|
|
4447
|
+
'tool',
|
|
4448
|
+
'tool-details',
|
|
4449
|
+
'tool-list',
|
|
4439
4450
|
'top',
|
|
4440
4451
|
'top-layer',
|
|
4441
4452
|
'total',
|
|
@@ -4607,6 +4618,7 @@ export const knownContextValues = new Set([
|
|
|
4607
4618
|
'webauthn.remove-credential',
|
|
4608
4619
|
'webgl-error-fired',
|
|
4609
4620
|
'webgl-warning-fired',
|
|
4621
|
+
'webmcp-view',
|
|
4610
4622
|
'webmcp.call-inputs',
|
|
4611
4623
|
'webmcp.call-outputs',
|
|
4612
4624
|
'webmcp.cancel-call',
|
|
@@ -84,26 +84,26 @@ export class Overlay {
|
|
|
84
84
|
this.style = style;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
setCanvas(canvas: HTMLCanvasElement) {
|
|
87
|
+
setCanvas(canvas: HTMLCanvasElement): void {
|
|
88
88
|
this.canvas = canvas;
|
|
89
89
|
this._context = canvas.getContext('2d');
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
install() {
|
|
92
|
+
install(): void {
|
|
93
93
|
for (const style of this.style) {
|
|
94
94
|
adoptStyleSheet(style);
|
|
95
95
|
}
|
|
96
96
|
this._installed = true;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
uninstall() {
|
|
99
|
+
uninstall(): void {
|
|
100
100
|
for (const style of this.style) {
|
|
101
101
|
document.adoptedStyleSheets = document.adoptedStyleSheets.filter(s => s !== style);
|
|
102
102
|
}
|
|
103
103
|
this._installed = false;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
reset(resetData?: ResetData) {
|
|
106
|
+
reset(resetData?: ResetData): void {
|
|
107
107
|
if (resetData) {
|
|
108
108
|
this.viewportSize = resetData.viewportSize;
|
|
109
109
|
this.viewportSizeForMediaQueries = resetData.viewportSizeForMediaQueries;
|
|
@@ -117,7 +117,7 @@ export class Overlay {
|
|
|
117
117
|
this.resetCanvas();
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
resetCanvas() {
|
|
120
|
+
resetCanvas(): void {
|
|
121
121
|
if (!this.canvas || !this._context) {
|
|
122
122
|
return;
|
|
123
123
|
}
|
|
@@ -133,7 +133,7 @@ export class Overlay {
|
|
|
133
133
|
this.canvasHeight = this.viewportSize.height;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
setPlatform(platform: string) {
|
|
136
|
+
setPlatform(platform: string): void {
|
|
137
137
|
this.platform = platform;
|
|
138
138
|
this.document.body.classList.add('platform-' + platform);
|
|
139
139
|
if (!this._installed) {
|
|
@@ -141,13 +141,13 @@ export class Overlay {
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
dispatch(message: unknown[]) {
|
|
144
|
+
dispatch(message: unknown[]): void {
|
|
145
145
|
const functionName = message.shift() as string;
|
|
146
146
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
147
147
|
(this as any)[functionName].apply(this, message);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
eventHasCtrlOrMeta(event: KeyboardEvent) {
|
|
150
|
+
eventHasCtrlOrMeta(event: KeyboardEvent): boolean {
|
|
151
151
|
return this.platform === 'mac' ? (event.metaKey && !event.ctrlKey) : (event.ctrlKey && !event.metaKey);
|
|
152
152
|
}
|
|
153
153
|
|
|
@@ -177,7 +177,7 @@ export class Overlay {
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
export function log(text: string) {
|
|
180
|
+
export function log(text: string): void {
|
|
181
181
|
let element = document.getElementById('log');
|
|
182
182
|
if (!element) {
|
|
183
183
|
element = createChild(document.body, 'div');
|
|
@@ -201,7 +201,7 @@ export function createTextChild(parent: HTMLElement, text: string): Text {
|
|
|
201
201
|
return element;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
export function createElement(tagName: string, className?: string) {
|
|
204
|
+
export function createElement(tagName: string, className?: string): HTMLElement {
|
|
205
205
|
const element = document.createElement(tagName);
|
|
206
206
|
if (className) {
|
|
207
207
|
element.className = className;
|
|
@@ -209,7 +209,7 @@ export function createElement(tagName: string, className?: string) {
|
|
|
209
209
|
return element;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
export function ellipsify(str: string, maxLength: number) {
|
|
212
|
+
export function ellipsify(str: string, maxLength: number): string {
|
|
213
213
|
if (str.length <= maxLength) {
|
|
214
214
|
return String(str);
|
|
215
215
|
}
|
|
@@ -231,6 +231,6 @@ declare global {
|
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
export function adoptStyleSheet(styleSheet: CSSStyleSheet) {
|
|
234
|
+
export function adoptStyleSheet(styleSheet: CSSStyleSheet): void {
|
|
235
235
|
document.adoptedStyleSheets = [...document.adoptedStyleSheets, styleSheet];
|
|
236
236
|
}
|
|
@@ -145,10 +145,9 @@ export interface GridLabelState {
|
|
|
145
145
|
* Places all of the required grid labels on the overlay. This includes row and
|
|
146
146
|
* column line number labels, and area labels.
|
|
147
147
|
*/
|
|
148
|
-
export function drawGridLabels(
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
writingModeMatrix: DOMMatrix|undefined = new DOMMatrix()) {
|
|
148
|
+
export function drawGridLabels(config: GridHighlightConfig, gridBounds: Bounds, areaBounds: AreaBounds[],
|
|
149
|
+
canvasSize: CanvasSize, labelState: GridLabelState, emulationScaleFactor: number,
|
|
150
|
+
writingModeMatrix: DOMMatrix|undefined = new DOMMatrix()): void {
|
|
152
151
|
// Find and clear the layer for the node specified in the config, or the default layer:
|
|
153
152
|
// Each node has a layer for grid labels in order to draw multiple grid highlights
|
|
154
153
|
// at once.
|
|
@@ -382,7 +381,7 @@ export function normalizePositionData(config: NormalizePositionDataConfig, bound
|
|
|
382
381
|
*/
|
|
383
382
|
export function drawGridLineNumbers(
|
|
384
383
|
container: HTMLElement, data: GridPositionNormalizedData, canvasSize: CanvasSize, emulationScaleFactor: number,
|
|
385
|
-
writingModeMatrix: DOMMatrix|undefined = new DOMMatrix(), writingMode: string|undefined = 'horizontal-tb') {
|
|
384
|
+
writingModeMatrix: DOMMatrix|undefined = new DOMMatrix(), writingMode: string|undefined = 'horizontal-tb'): void {
|
|
386
385
|
if (!data.columns.positive.names) {
|
|
387
386
|
for (const [i, pos] of positionIterator(data.columns.positive.positions, 'x')) {
|
|
388
387
|
const element = createLabelElement(container, (i + 1).toString(), 'column');
|
|
@@ -418,10 +417,10 @@ export function drawGridLineNumbers(
|
|
|
418
417
|
/**
|
|
419
418
|
* Places the grid track size labels on the overlay.
|
|
420
419
|
*/
|
|
421
|
-
export function drawGridTrackSizes(
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
420
|
+
export function drawGridTrackSizes(container: HTMLElement, trackSizes: TrackSize[], direction: 'row'|'column',
|
|
421
|
+
canvasSize: CanvasSize, emulationScaleFactor: number,
|
|
422
|
+
writingModeMatrix: DOMMatrix|undefined = new DOMMatrix(),
|
|
423
|
+
writingMode: string|undefined = 'horizontal-tb'): void {
|
|
425
424
|
const {main, cross} = getAxes(writingMode);
|
|
426
425
|
const {crossSize} = getCanvasSizes(writingMode, canvasSize);
|
|
427
426
|
|
|
@@ -451,10 +450,10 @@ export function drawGridTrackSizes(
|
|
|
451
450
|
/**
|
|
452
451
|
* Places the grid row and column name labels on the overlay.
|
|
453
452
|
*/
|
|
454
|
-
export function drawGridLineNames(
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
453
|
+
export function drawGridLineNames(container: HTMLElement, data: GridPositionNormalizedDataWithNames,
|
|
454
|
+
canvasSize: CanvasSize, emulationScaleFactor: number,
|
|
455
|
+
writingModeMatrix: DOMMatrix|undefined = new DOMMatrix(),
|
|
456
|
+
writingMode: string|undefined = 'horizontal-tb'): void {
|
|
458
457
|
for (const [i, pos] of data.columns.positive.positions.entries()) {
|
|
459
458
|
const names = data.columns.positive.names[i];
|
|
460
459
|
const element = createLabelElement(container, makeLineNameLabelContent(names), 'column');
|
|
@@ -487,9 +486,9 @@ function makeLineNameLabelContent(names: string[]): HTMLElement {
|
|
|
487
486
|
/**
|
|
488
487
|
* Places the grid area name labels on the overlay.
|
|
489
488
|
*/
|
|
490
|
-
export function drawGridAreaNames(
|
|
491
|
-
|
|
492
|
-
|
|
489
|
+
export function drawGridAreaNames(container: HTMLElement, areaBounds: AreaBounds[],
|
|
490
|
+
writingModeMatrix: DOMMatrix|undefined = new DOMMatrix(),
|
|
491
|
+
writingMode: string|undefined = 'horizontal-tb'): void {
|
|
493
492
|
for (const {name, bounds} of areaBounds) {
|
|
494
493
|
const element = createLabelElement(container, name, 'row');
|
|
495
494
|
const {width, height} = getLabelSize(element, writingMode);
|
|
@@ -982,7 +981,7 @@ function getLabelPositionByArrowType(
|
|
|
982
981
|
* This is also made to generate the defaultLabelTextColor for all of the default label colors that the
|
|
983
982
|
* OverlayColorGenerator produces.
|
|
984
983
|
*/
|
|
985
|
-
export function generateLegibleTextColor(backgroundColor: string) {
|
|
984
|
+
export function generateLegibleTextColor(backgroundColor: string): '#121212'|'white'|null {
|
|
986
985
|
let rgb: number[] = [];
|
|
987
986
|
|
|
988
987
|
// Try to parse it as a #rrggbbaa string first
|
|
@@ -45,12 +45,12 @@ export class DragResizeHandler {
|
|
|
45
45
|
this.boundMousedown = this.onMousedown.bind(this);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
install() {
|
|
48
|
+
install(): void {
|
|
49
49
|
this.document.body.addEventListener('mousemove', this.boundMousemove);
|
|
50
50
|
this.document.body.addEventListener('mousedown', this.boundMousedown);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
uninstall() {
|
|
53
|
+
uninstall(): void {
|
|
54
54
|
this.document.body.removeEventListener('mousemove', this.boundMousemove);
|
|
55
55
|
this.document.body.removeEventListener('mousedown', this.boundMousedown);
|
|
56
56
|
}
|
|
@@ -33,8 +33,8 @@ export const enum LinePattern {
|
|
|
33
33
|
DASHED = 'dashed',
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export function drawPathWithLineStyle(
|
|
37
|
-
|
|
36
|
+
export function drawPathWithLineStyle(context: CanvasRenderingContext2D, path: Path2D, lineStyle?: LineStyle,
|
|
37
|
+
lineWidth = 1): void {
|
|
38
38
|
if (lineStyle?.color) {
|
|
39
39
|
context.save();
|
|
40
40
|
context.translate(0.5, 0.5);
|
|
@@ -51,8 +51,8 @@ export function drawPathWithLineStyle(
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
export function fillPathWithBoxStyle(
|
|
55
|
-
|
|
54
|
+
export function fillPathWithBoxStyle(context: CanvasRenderingContext2D, path: Path2D, bounds: PathBounds, angle: number,
|
|
55
|
+
boxStyle?: BoxStyle): void {
|
|
56
56
|
if (!boxStyle) {
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
@@ -157,9 +157,8 @@ let hatchLineColor = '';
|
|
|
157
157
|
* |\ \ \ |
|
|
158
158
|
* **********
|
|
159
159
|
*/
|
|
160
|
-
export function hatchFillPath(
|
|
161
|
-
|
|
162
|
-
rotationAngle: number, flipDirection: boolean|undefined) {
|
|
160
|
+
export function hatchFillPath(context: CanvasRenderingContext2D, path: Path2D, bounds: Bounds, delta: number,
|
|
161
|
+
color: string, rotationAngle: number, flipDirection: boolean|undefined): void {
|
|
163
162
|
// Make the bounds be at most the canvas size if it is bigger in any direction.
|
|
164
163
|
// Making the bounds bigger than the canvas is useless as what's drawn there won't be visible.
|
|
165
164
|
if (context.canvas.width < bounds.maxX - bounds.minX || context.canvas.height < bounds.maxY - bounds.minY) {
|
|
@@ -204,8 +203,8 @@ export function hatchFillPath(
|
|
|
204
203
|
* Given a quad, create the corresponding path object. This also accepts a list of quads to clip from the resulting
|
|
205
204
|
* path.
|
|
206
205
|
*/
|
|
207
|
-
export function createPathForQuad(
|
|
208
|
-
|
|
206
|
+
export function createPathForQuad(outerQuad: Quad, quadsToClip: Quad[], bounds: PathBounds,
|
|
207
|
+
emulationScaleFactor: number): Path2D {
|
|
209
208
|
let commands = [
|
|
210
209
|
'M',
|
|
211
210
|
outerQuad.p1.x,
|
|
@@ -274,10 +273,9 @@ export function formatColor(hexa: string, colorFormat: string): string {
|
|
|
274
273
|
return hexa;
|
|
275
274
|
}
|
|
276
275
|
|
|
277
|
-
export function drawPath(
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
emulationScaleFactor: number) {
|
|
276
|
+
export function drawPath(context: CanvasRenderingContext2D, commands: PathCommands, fillColor: string|undefined,
|
|
277
|
+
outlineColor: string|undefined, outlinePattern: LinePattern|undefined, bounds: PathBounds,
|
|
278
|
+
emulationScaleFactor: number): Path2D {
|
|
281
279
|
context.save();
|
|
282
280
|
const path = buildPath(commands, bounds, emulationScaleFactor);
|
|
283
281
|
if (fillColor) {
|
|
@@ -17,8 +17,8 @@ export interface ContainerQueryHighlight {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export function drawContainerQueryHighlight(
|
|
21
|
-
|
|
20
|
+
export function drawContainerQueryHighlight(highlight: ContainerQueryHighlight, context: CanvasRenderingContext2D,
|
|
21
|
+
emulationScaleFactor: number): void {
|
|
22
22
|
const config = highlight.containerQueryContainerHighlightConfig;
|
|
23
23
|
const bounds = emptyBounds();
|
|
24
24
|
const borderPath = buildPath(highlight.containerBorder, bounds, emulationScaleFactor);
|