Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
Add resize feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeru committed May 27, 2022
1 parent e4c5336 commit ed1b767
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 8 deletions.
20 changes: 20 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/**
* /*
* Copyright (c) 2019 Software AG, Darmstadt, Germany and/or its licensors
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
*/
import './polyfills';
import './ng1';

Expand Down
22 changes: 14 additions & 8 deletions src/advanced-radial-gauge/advanced-radial-gauge.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @format
*
*/

import { CoreModule, HOOK_COMPONENTS } from "@c8y/ngx-components";
Expand All @@ -25,9 +25,15 @@ import { AdvancedRadialGauge } from "./advanced-radial-gauge.component";
import { NgModule } from "@angular/core";
import { HttpClientModule } from "@angular/common/http";
import { DecimalPipe } from "@angular/common";
import { NgxEchartsModule } from 'ngx-echarts';
import * as echarts from 'echarts';
import { AngularResizedEventModule } from 'angular-resize-event';

@NgModule({
imports: [CoreModule, HttpClientModule],
imports: [CoreModule, HttpClientModule, NgxEchartsModule.forRoot({
echarts
}),
AngularResizedEventModule],
declarations: [AdvancedRadialGauge, AdvancedRadialGaugeConfig],
entryComponents: [AdvancedRadialGauge, AdvancedRadialGaugeConfig],
providers: [
Expand All @@ -43,16 +49,16 @@ import { DecimalPipe } from "@angular/common";
previewImage: require("@widget-assets/img-preview.png"),
data: {
ng1: {
options: {
noDeviceTarget: false,
noNewWidgets: false,
deviceTargetNotRequired: false,
groupsSelectable: true
options: {
noDeviceTarget: false,
noNewWidgets: false,
deviceTargetNotRequired: false,
groupsSelectable: true
},
},
},
},
}
],
})
export class AdvancedRadialGaugeModule {}
export class AdvancedRadialGaugeModule { }

0 comments on commit ed1b767

Please sign in to comment.