mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Add "Show graph" button to the signal properties in the side pane only for Angular apps. This required storing the signal graph in a separate service. PR Close #62853
40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.dev/license
|
|
*/
|
|
|
|
import {SupportedApis} from '../../../../protocol';
|
|
import {
|
|
ngDebugDependencyInjectionApiIsSupported,
|
|
ngDebugProfilerApiIsSupported,
|
|
ngDebugRoutesApiIsSupported,
|
|
ngDebugSignalGraphApiIsSupported,
|
|
ngDebugSignalPropertiesInspectionApiIsSupported,
|
|
ngDebugTransferStateApiIsSupported,
|
|
} from './ng-debug-api';
|
|
|
|
/**
|
|
* Returns an object with all available Devtools APIs.
|
|
*
|
|
* @returns `SupportedApis`
|
|
*/
|
|
export function getSupportedApis(): SupportedApis {
|
|
const profiler = ngDebugProfilerApiIsSupported();
|
|
const dependencyInjection = ngDebugDependencyInjectionApiIsSupported();
|
|
const routes = ngDebugRoutesApiIsSupported();
|
|
const signals = ngDebugSignalGraphApiIsSupported();
|
|
const transferState = ngDebugTransferStateApiIsSupported();
|
|
const signalPropertiesInspection = ngDebugSignalPropertiesInspectionApiIsSupported();
|
|
|
|
return {
|
|
profiler,
|
|
dependencyInjection,
|
|
routes,
|
|
signals,
|
|
transferState,
|
|
signalPropertiesInspection,
|
|
};
|
|
}
|