source: trip-planner-front/node_modules/@angular/material/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration.d.ts

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { Migration, ResolvedResource } from '@angular/cdk/schematics';
9import * as ts from 'typescript';
10/**
11 * Migration that walks through every property assignment and switches the global `baseSpeedFactor`
12 * ripple option to the new global animation config. Also updates every class member assignment
13 * that refers to MatRipple#speedFactor.
14 */
15export declare class RippleSpeedFactorMigration extends Migration<null> {
16 enabled: boolean;
17 visitNode(node: ts.Node): void;
18 visitTemplate(template: ResolvedResource): void;
19 /** Switches binary expressions (e.g. myRipple.speedFactor = 0.5) to the new animation config. */
20 private _visitBinaryExpression;
21 /**
22 * Switches the global option `baseSpeedFactor` to the new animation config. For this
23 * we assume that the `baseSpeedFactor` is not used in combination with individual
24 * speed factors.
25 */
26 private _visitPropertyAssignment;
27 private _replaceText;
28}
Note: See TracBrowser for help on using the repository browser.