sea-chart 0.0.56-alpha.2 → 0.0.56-alpha.4

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.
@@ -4,7 +4,6 @@ class CellFormatterFactory {
4
4
  if (FormatterConfig[formatterType]) {
5
5
  return FormatterConfig[formatterType];
6
6
  }
7
- // return FormatterConfig[DEFAULT]; // todo
8
7
  return null;
9
8
  }
10
9
  }
@@ -204,10 +204,8 @@ export const getFormattedCell = function (column, row) {
204
204
  // is archive view: row data can get form rowdata
205
205
  value = isArchiveViewRowData(row, column) ? value : formulaRow[key];
206
206
  if (!value || !Array.isArray(value) || value.length === 0) break;
207
- const {
208
- collaborators,
209
- departments
210
- } = window.app.state;
207
+ const collaborators = context.getCollaboratorsFromCache();
208
+ const departments = context.getDepartments();
211
209
  const {
212
210
  display_column_key,
213
211
  array_type,
@@ -377,9 +375,11 @@ export const getFormattedCell = function (column, row) {
377
375
  case CellType.CREATOR:
378
376
  case CellType.LAST_MODIFIER:
379
377
  {
378
+ const collaborators = context.getCollaboratorsFromCache();
380
379
  if (value) {
381
380
  displayValue = createColumnFormatter(type, {
382
- value
381
+ value,
382
+ collaborators
383
383
  });
384
384
  }
385
385
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sea-chart",
3
- "version": "0.0.56-alpha.2",
3
+ "version": "0.0.56-alpha.4",
4
4
  "main": "./dist/index.js",
5
5
  "dependencies": {
6
6
  "@antv/data-set": "0.11.8",