jsgantt-improved
Advanced tools
Comparing version 2.4.8 to 2.4.9
@@ -598,4 +598,3 @@ "use strict"; | ||
if (this.vTaskList[i].getBarText()) { | ||
console.log(vTaskWidth); | ||
var textBar = draw_utils_1.newNode(vTmpDiv2, 'span', this.vDivId + 'tasktextbar_' + vID, 'textbar', this.vTaskList[i].getBarText(), this.vTaskList[i].getCompRestStr()); | ||
draw_utils_1.newNode(vTmpDiv2, 'span', this.vDivId + 'tasktextbar_' + vID, 'textbar', this.vTaskList[i].getBarText(), this.vTaskList[i].getCompRestStr()); | ||
} | ||
@@ -602,0 +601,0 @@ this.vTaskList[i].setTaskDiv(vTmpDiv2); |
@@ -798,2 +798,76 @@ "use strict"; | ||
exports.tr = tr; | ||
var ja = { | ||
'format': 'タイムライン表示', | ||
'hour': '時', | ||
'day': '日', | ||
'week': '週', | ||
'month': '月', | ||
'quarter': '四半期', | ||
'hours': '時間', | ||
'days': '日間', | ||
'weeks': '週間', | ||
'months': '月間', | ||
'quarters': '四半期', | ||
'hr': '時', | ||
'dy': '日', | ||
'wk': '週', | ||
'mth': '月', | ||
'qtr': '四', | ||
'hrs': '時間', | ||
'dys': '日間', | ||
'wks': '週間', | ||
'mths': '月間', | ||
'qtrs': '四半期', | ||
'resource': 'リソース', | ||
'duration': '期間', | ||
'comp': '進捗率', | ||
'completion': '進捗率', | ||
'startdate': '開始日', | ||
'planstartdate': '予定開始日', | ||
'enddate': '期日', | ||
'planenddate': '予定期日', | ||
'cost': 'コスト', | ||
'moreinfo': '詳細', | ||
'notes': 'ノート', | ||
'january': '1月', | ||
'february': '2月', | ||
'march': '3月', | ||
'april': '4月', | ||
'maylong': '5月', | ||
'june': '6月', | ||
'july': '7月', | ||
'august': '8月', | ||
'september': '9月', | ||
'october': '10月', | ||
'november': '11月', | ||
'december': '12月', | ||
'jan': '1月', | ||
'feb': '2月', | ||
'mar': '3月', | ||
'apr': '4月', | ||
'may': '5月', | ||
'jun': '6月', | ||
'jul': '7月', | ||
'aug': '8月', | ||
'sep': '9月', | ||
'oct': '10月', | ||
'nov': '11月', | ||
'dec': '12月', | ||
'sunday': '日曜日', | ||
'monday': '月曜日', | ||
'tuesday': '火曜日', | ||
'wednesday': '水曜日', | ||
'thursday': '木曜日', | ||
'friday': '金曜日', | ||
'saturday': '土曜日', | ||
'sun': '日', | ||
'mon': '月', | ||
'tue': '火', | ||
'wed': '水', | ||
'thu': '木', | ||
'fri': '金', | ||
'sat': '土', | ||
'tooltipLoading': 'ローディング中...' | ||
}; | ||
exports.ja = ja; | ||
//# sourceMappingURL=lang.js.map |
@@ -516,3 +516,2 @@ "use strict"; | ||
} | ||
// console.log(path); | ||
if (!path[task.pID].childrens) { | ||
@@ -519,0 +518,0 @@ path[task.pID].childrens = []; |
@@ -40,3 +40,5 @@ | ||
### a) Using Method() ### | ||
Using `g.AddTaskItemObject` method we have to pass all data in "key":"value" format, as shown below. Any numerica data, like pID below should be passed without quotes while text/character data like pName and any dates must be enclosed in quotes. Also, in this way we can pass any custom variables like "category" and "section" shown below. Adding such custom variables will **NOT** add corresponding columns in the data table on left side of gantt chart. Such custom variables can be then accessed inside jsgantt.js file by using `task.getDataObject().yourCustomAttr`. | ||
If you want to have custom variables data to be shown in the task table, you should set additional headers for these variables. See [Additional Headers](#AdditionalHeaders) below. | ||
```javascript | ||
@@ -77,2 +79,4 @@ | ||
This method takes only the variables defined above and explained below. You can **NOT** pass custom variables this way. | ||
| Parameter | Description | | ||
@@ -453,3 +457,3 @@ |:--------|:------------------------------------------------| | ||
Putting all this information together the final code to produce the chart included in the example index file provided is as follows: | ||
<span id='AdditionalHeaders'></span> | ||
```html | ||
@@ -558,2 +562,2 @@ <link href="jsgantt.css" rel="stylesheet" type="text/css"/> | ||
This temp div has class `gscrollbar-calculation-container`, so if you have top level styles you can't controll - you may add styles to this class to fix scrollbar calculation. | ||
This temp div has class `gscrollbar-calculation-container`, so if you have top level styles you can't controll - you may add styles to this class to fix scrollbar calculation. |
{ | ||
"name": "jsgantt-improved", | ||
"version": "2.4.8", | ||
"version": "2.4.9", | ||
"description": "jsgantt-improved", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -659,4 +659,3 @@ import * as lang from './lang'; | ||
if (this.vTaskList[i].getBarText()) { | ||
console.log(vTaskWidth) | ||
const textBar = newNode(vTmpDiv2, 'span', this.vDivId + 'tasktextbar_' + vID, 'textbar', this.vTaskList[i].getBarText(), this.vTaskList[i].getCompRestStr()); | ||
newNode(vTmpDiv2, 'span', this.vDivId + 'tasktextbar_' + vID, 'textbar', this.vTaskList[i].getBarText(), this.vTaskList[i].getCompRestStr()); | ||
} | ||
@@ -663,0 +662,0 @@ this.vTaskList[i].setTaskDiv(vTmpDiv2); |
@@ -801,3 +801,78 @@ const es = { | ||
const ja = | ||
{ | ||
'format': 'タイムライン表示', | ||
'hour': '時', | ||
'day': '日', | ||
'week': '週', | ||
'month': '月', | ||
'quarter': '四半期', | ||
'hours': '時間', | ||
'days': '日間', | ||
'weeks': '週間', | ||
'months': '月間', | ||
'quarters': '四半期', | ||
'hr': '時', | ||
'dy': '日', | ||
'wk': '週', | ||
'mth': '月', | ||
'qtr': '四', | ||
'hrs': '時間', | ||
'dys': '日間', | ||
'wks': '週間', | ||
'mths': '月間', | ||
'qtrs': '四半期', | ||
'resource': 'リソース', | ||
'duration': '期間', | ||
'comp': '進捗率', | ||
'completion': '進捗率', | ||
'startdate': '開始日', | ||
'planstartdate': '予定開始日', | ||
'enddate': '期日', | ||
'planenddate': '予定期日', | ||
'cost': 'コスト', | ||
'moreinfo': '詳細', | ||
'notes': 'ノート', | ||
'january': '1月', | ||
'february': '2月', | ||
'march': '3月', | ||
'april': '4月', | ||
'maylong': '5月', | ||
'june': '6月', | ||
'july': '7月', | ||
'august': '8月', | ||
'september': '9月', | ||
'october': '10月', | ||
'november': '11月', | ||
'december': '12月', | ||
'jan': '1月', | ||
'feb': '2月', | ||
'mar': '3月', | ||
'apr': '4月', | ||
'may': '5月', | ||
'jun': '6月', | ||
'jul': '7月', | ||
'aug': '8月', | ||
'sep': '9月', | ||
'oct': '10月', | ||
'nov': '11月', | ||
'dec': '12月', | ||
'sunday': '日曜日', | ||
'monday': '月曜日', | ||
'tuesday': '火曜日', | ||
'wednesday': '水曜日', | ||
'thursday': '木曜日', | ||
'friday': '金曜日', | ||
'saturday': '土曜日', | ||
'sun': '日', | ||
'mon': '月', | ||
'tue': '火', | ||
'wed': '水', | ||
'thu': '木', | ||
'fri': '金', | ||
'sat': '土', | ||
'tooltipLoading': 'ローディング中...' | ||
} | ||
export { en, es, de, pt, fr, ru, cn, sv, nl, id, tr } | ||
export { en, es, de, pt, fr, ru, cn, sv, nl, id, tr, ja } |
@@ -532,3 +532,3 @@ | ||
} | ||
// console.log(path); | ||
if (!path[task.pID].childrens) { | ||
@@ -535,0 +535,0 @@ path[task.pID].childrens = []; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
5326996
123635