d2-charts-api
Advanced tools
Comparing version 29.0.0 to 29.0.1
@@ -10,3 +10,3 @@ 'use strict'; | ||
exports.default = function (layout, metaData, dashboard) { | ||
return _extends(getTextObject(layout, metaData, dashboard), DEFAULT_TITLE, dashboard ? DASHBOARD_TITLE : undefined); | ||
return _extends(getTextObject(layout, metaData, dashboard), DEFAULT_TITLE_STYLE, dashboard ? DASHBOARD_TITLE_STYLE : undefined); | ||
}; | ||
@@ -24,3 +24,3 @@ | ||
var DEFAULT_TITLE = { | ||
var DEFAULT_TITLE_STYLE = { | ||
margin: 30, | ||
@@ -33,3 +33,3 @@ y: 18, | ||
var DASHBOARD_TITLE = { | ||
var DASHBOARD_TITLE_STYLE = { | ||
margin: 15, | ||
@@ -56,3 +56,3 @@ y: 12, | ||
// filters | ||
if (layout.filters) { | ||
if (layout.filters && !dashboard) { | ||
return (0, _getFilterTitle2.default)(layout.filters, metaData); | ||
@@ -69,2 +69,4 @@ } | ||
} | ||
; | ||
//# sourceMappingURL=title.js.map |
{ | ||
"name": "d2-charts-api", | ||
"version": "29.0.0", | ||
"version": "29.0.1", | ||
"description": "DHIS2 charts api", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
import isString from 'd2-utilizr/lib/isString'; | ||
import getFilterTitle from './getFilterTitle'; | ||
const DEFAULT_TITLE = { | ||
const DEFAULT_TITLE_STYLE = { | ||
margin: 30, | ||
@@ -12,3 +12,3 @@ y: 18, | ||
const DASHBOARD_TITLE = { | ||
const DASHBOARD_TITLE_STYLE = { | ||
margin: 15, | ||
@@ -35,3 +35,3 @@ y: 12, | ||
// filters | ||
if (layout.filters) { | ||
if (layout.filters && !dashboard) { | ||
return getFilterTitle(layout.filters, metaData); | ||
@@ -52,5 +52,5 @@ } | ||
getTextObject(layout, metaData, dashboard), | ||
DEFAULT_TITLE, | ||
dashboard ? DASHBOARD_TITLE : undefined | ||
DEFAULT_TITLE_STYLE, | ||
dashboard ? DASHBOARD_TITLE_STYLE : undefined | ||
); | ||
} | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
340842
4825