Ignite UI for Angular の重大な変更
このトピックでは、Ignite UI for Angular の重大な変更に関する情報と、古いコードを最新の API に更新する方法について説明します。
Import ステートメントの変更
Import ステートメントは、API クラスと列挙型へのフル パスではなくパッケージ名のみを使用するように簡素化されました。
これらの重大な変更は、パッケージおよびコンポーネントの 8.2.12 バージョン で導入されました。
| 影響されるパッケージ | 影響されるコンポーネント |
|---|---|
| igniteui-angular-excel | Excel ライブラリ |
| igniteui-angular-spreadsheet | スプレッドシート |
| igniteui-angular-maps | 地理マップ、ツリーマップ |
| igniteui-angular-gauges | ブレット グラフ、リニア ゲージ、ラジアル ゲージ |
| igniteui-angular-charts | カテゴリ チャート、データ チャート、ドーナツ チャート、ファイナンシャル チャート、円チャート、ズーム スライダー |
| igniteui-angular-core | すべてのクラスと列挙型 |
-
All types of charts/series have marker outlines with 2px thickness
-
Bar/Column/Waterfall series have outlines with 1px thickness (other series have 2px thickness)
-
Bar/Column/Waterfall series have square corners instead of rounded corners anymore
-
Point/Bubble/ScatterSeries/PolarScatter series have markers with 70% transparent fill
-
Point/Bubble/ScatterSeries/PolarScatter series have markers with fill that matches marker outline. To revert to the previous styling behavior for these series a new property has been added to the series,
MarkerFillMode, which can be set to normal to mimic the prior behavior. -
Scatter High Density series has new colors for min/max heat properties
Old heat min color New heat min color #FF7446B9#ff8b5bb1Old heat max color New heat max color #FFC62828#ffee5879 -
Financial/Waterfall series have new colors for negative fill of their visuals
Old negative brush new negative brush #FFC62828#ffee5879
変更後のコード
API クラスと列挙型へのフル パスの代わりにパッケージ名のみを使用できます。
注: Data Grid コンポーネントとそれに対応するモジュールの名前も変更されました。
| Affected Packages | Affected Components |
|---|---|
| igniteui-angular-excel | Excel Library |
| igniteui-angular-spreadsheet | Spreadsheet |
| igniteui-angular-maps | Geo Map, Treemap |
| igniteui-angular-gauges | Bullet Graph, Linear Gauge, Radial Gauge |
| igniteui-angular-charts | Category Chart, Data Chart, Donut Chart, Financial Chart], Pie Chart, Zoom Slider |
| igniteui-angular-core | all classes and enums |
変更前のコード
以前は、API クラスと列挙型への完全なパスを使用してインポートする必要がありました。
Please also note that the name of the Data Grid component and its corresponding modules have also changed.
// gauges:
import { IgxLinearGaugeComponent } from 'igniteui-webcomponents-gauges/ES5/igx-linear-gauge-component';
import { IgxLinearGaugeModule } from 'igniteui-webcomponents-gauges/ES5/igx-linear-gauge-module';
import { IgxLinearGraphRange } from 'igniteui-webcomponents-gauges/ES5/igx-linear-graph-range';
import { IgxRadialGaugeComponent } from "igniteui-webcomponents-gauges/ES5/igx-radial-gauge-component";
import { IgxRadialGaugeModule } from "igniteui-webcomponents-gauges/ES5/igx-radial-gauge-module";
import { IgxRadialGaugeRange } from "igniteui-webcomponents-gauges/ES5/igx-radial-gauge-range";
import { SweepDirection } from "igniteui-webcomponents-core/ES5/SweepDirection";
// charts:
import { IgxFinancialChartComponent } from "igniteui-webcomponents-charts/ES5/igx-financial-chart-component";
import { IgxFinancialChartModule } from "igniteui-webcomponents-charts/ES5/igx-financial-chart-module";
import { IgxDataChartComponent } from "igniteui-webcomponents-charts/ES5/igx-data-chart-component";
import { IgxDataChartCoreModule } from "igniteui-webcomponents-charts/ES5/igx-data-chart-core-module";
// maps:
import { IgxGeographicMapComponent } from "igniteui-webcomponents-maps/ES5/igx-geographic-map-component";
import { IgxGeographicMapModule } from "igniteui-webcomponents-maps/ES5/igx-geographic-map-module";
Code Before Changes
Before, you had to import using full paths to API classes and enums:
// gauges:
import { IgxLinearGaugeComponent } from 'igniteui-webcomponents-gauges/ES5/igx-linear-gauge-component';
import { IgxLinearGaugeModule } from 'igniteui-webcomponents-gauges/ES5/igx-linear-gauge-module';
import { IgxLinearGraphRange } from 'igniteui-webcomponents-gauges/ES5/igx-linear-graph-range';
import { IgxRadialGaugeComponent } from "igniteui-webcomponents-gauges/ES5/igx-radial-gauge-component";
import { IgxRadialGaugeModule } from "igniteui-webcomponents-gauges/ES5/igx-radial-gauge-module";
import { IgxRadialGaugeRange } from "igniteui-webcomponents-gauges/ES5/igx-radial-gauge-range";
import { SweepDirection } from "igniteui-webcomponents-core/ES5/SweepDirection";
// charts:
import { IgxFinancialChartComponent } from "igniteui-webcomponents-charts/ES5/igx-financial-chart-component";
import { IgxFinancialChartModule } from "igniteui-webcomponents-charts/ES5/igx-financial-chart-module";
import { IgxDataChartComponent } from "igniteui-webcomponents-charts/ES5/igx-data-chart-component";
import { IgxDataChartCoreModule } from "igniteui-webcomponents-charts/ES5/igx-data-chart-core-module";
// maps:
import { IgxGeographicMapComponent } from "igniteui-webcomponents-maps/ES5/igx-geographic-map-component";
import { IgxGeographicMapModule } from "igniteui-webcomponents-maps/ES5/igx-geographic-map-module";