8000 Merge branch 'master' of github.com:plotly/angular-plotly.js · plotly/angular-plotly.js@85545f5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 85545f5

Browse files
committed
Merge branch 'master' of github.com:plotly/angular-plotly.js
2 parents 9f6605c + 04a979c commit 85545f5

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Plotly, Inc
3+
Copyright (c) 2021 Plotly, Inc
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "angular-plotly.js",
33
"version": "4.0.0",
4+
"license": "MIT",
45
"scripts": {
56
"ng": "ng",
67
"start": "ng serve",

projects/plotly/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "angular-plotly.js",
33
"version": "4.0.0",
4+
"license": "MIT",
45
"peerDependencies": {
56
"@angular/common": ">10.0.9",
67
"@angular/core": ">10.0.9"

projects/plotly/src/lib/plotly.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ export class PlotlyService {
9595
public plot(div: Plotly.PlotlyHTMLElement, data: Plotly.Data[], layout?: Partial<Plotly.Layout>, config?: Partial<Plotly.Config>, frames?: Partial<Plotly.Config>[]): Promise<any> {
9696
if (frames) {
9797
const obj = {data, layout, config, frames};
98-
if (typeOf(this.__getPlotly.plot === 'function')) {
98+
if (typeof(this._getPlotly().plot) === 'function') {
9999
return this._getPlotly().plot(div, obj) as Promise<any>;
100100
} else {
101101
// Adds support for Plotly 2.0.0 release candidates
102102
return this._getPlotly().newPlot(div, obj) as Promise<any>;
103103
}
104104
}
105105

106-
if (typeOf(this.__getPlotly.plot === 'function')) {
106+
if (typeof(this._getPlotly().plot) === 'function') {
107107
return this._getPlotly().plot(div, data, layout, config) as Promise<any>;
108108
} else {
109109
// Adds support for Plotly 2.0.0 release candidates

0 commit comments

Comments
 (0)
0