@orbcharts/core 3.0.0-alpha.64 → 3.0.0-alpha.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -206,13 +206,13 @@ export const createBaseChart: CreateBaseChart = <T extends ChartType>({
|
|
|
206
206
|
throw new Error(createValidatorErrorMessage({
|
|
207
207
|
columnName,
|
|
208
208
|
expectToBe,
|
|
209
|
-
from: 'Chart.
|
|
209
|
+
from: 'Chart.dataFormatter$'
|
|
210
210
|
}))
|
|
211
211
|
} else if (status === 'warning') {
|
|
212
212
|
console.warn(createValidatorWarningMessage({
|
|
213
213
|
columnName,
|
|
214
214
|
expectToBe,
|
|
215
|
-
from: 'Chart.
|
|
215
|
+
from: 'Chart.dataFormatter$'
|
|
216
216
|
}))
|
|
217
217
|
}
|
|
218
218
|
|
|
@@ -239,13 +239,13 @@ export const createBaseChart: CreateBaseChart = <T extends ChartType>({
|
|
|
239
239
|
throw new Error(createValidatorErrorMessage({
|
|
240
240
|
columnName,
|
|
241
241
|
expectToBe,
|
|
242
|
-
from: 'Chart.
|
|
242
|
+
from: 'Chart.chartParams$'
|
|
243
243
|
}))
|
|
244
244
|
} else if (status === 'warning') {
|
|
245
245
|
console.warn(createValidatorWarningMessage({
|
|
246
246
|
columnName,
|
|
247
247
|
expectToBe,
|
|
248
|
-
from: 'Chart.
|
|
248
|
+
from: 'Chart.chartParams$'
|
|
249
249
|
}))
|
|
250
250
|
}
|
|
251
251
|
|
|
@@ -375,13 +375,13 @@ export const createBaseChart: CreateBaseChart = <T extends ChartType>({
|
|
|
375
375
|
throw new Error(createValidatorErrorMessage({
|
|
376
376
|
columnName,
|
|
377
377
|
expectToBe,
|
|
378
|
-
from: 'Chart.
|
|
378
|
+
from: 'Chart.data$'
|
|
379
379
|
}))
|
|
380
380
|
} else if (status === 'warning') {
|
|
381
381
|
console.warn(createValidatorWarningMessage({
|
|
382
382
|
columnName,
|
|
383
383
|
expectToBe,
|
|
384
|
-
from: 'Chart.
|
|
384
|
+
from: 'Chart.data$'
|
|
385
385
|
}))
|
|
386
386
|
}
|
|
387
387
|
|
|
@@ -50,13 +50,13 @@ function createPluginEntity <T extends ChartType, PluginName, PluginParams>({ ch
|
|
|
50
50
|
throw new Error(createValidatorErrorMessage({
|
|
51
51
|
columnName,
|
|
52
52
|
expectToBe,
|
|
53
|
-
from:
|
|
53
|
+
from: `${config.name}.params$`
|
|
54
54
|
}))
|
|
55
55
|
} else if (status === 'warning') {
|
|
56
56
|
console.warn(createValidatorWarningMessage({
|
|
57
57
|
columnName,
|
|
58
58
|
expectToBe,
|
|
59
|
-
from:
|
|
59
|
+
from: `${config.name}.params$`
|
|
60
60
|
}))
|
|
61
61
|
}
|
|
62
62
|
|
package/src/utils/commonUtils.ts
CHANGED
|
@@ -6,7 +6,8 @@ export function isPlainObject(variable: any) {
|
|
|
6
6
|
|
|
7
7
|
// 是否為function
|
|
8
8
|
export function isFunction(fn: any) {
|
|
9
|
-
return !!fn && !fn.nodename && fn.constructor != String && fn.constructor != RegExp && fn.constructor != Array && /function/i.test(fn + "");
|
|
9
|
+
// return !!fn && !fn.nodename && fn.constructor != String && fn.constructor != RegExp && fn.constructor != Array && /function/i.test(fn + "");
|
|
10
|
+
return Object.prototype.toString.call(fn) === '[object Function]'
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
// 是否為dom
|