Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

controller.bar.d.ts 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. export default class BarController extends DatasetController {
  2. static id: string;
  3. /**
  4. * @type {any}
  5. */
  6. static overrides: any;
  7. /**
  8. * Overriding primitive data parsing since we support mixed primitive/array
  9. * data for float bars
  10. * @protected
  11. */
  12. protected parsePrimitiveData(meta: any, data: any, start: any, count: any): any[];
  13. /**
  14. * Overriding array data parsing since we support mixed primitive/array
  15. * data for float bars
  16. * @protected
  17. */
  18. protected parseArrayData(meta: any, data: any, start: any, count: any): any[];
  19. /**
  20. * Overriding object data parsing since we support mixed primitive/array
  21. * value-scale data for float bars
  22. * @protected
  23. */
  24. protected parseObjectData(meta: any, data: any, start: any, count: any): any[];
  25. update(mode: any): void;
  26. /**
  27. * Returns the stacks based on groups and bar visibility.
  28. * @param {number} [last] - The dataset index
  29. * @param {number} [dataIndex] - The data index of the ruler
  30. * @returns {string[]} The list of stack IDs
  31. * @private
  32. */
  33. private _getStacks;
  34. /**
  35. * Returns the effective number of stacks based on groups and bar visibility.
  36. * @private
  37. */
  38. private _getStackCount;
  39. /**
  40. * Returns the stack index for the given dataset based on groups and bar visibility.
  41. * @param {number} [datasetIndex] - The dataset index
  42. * @param {string} [name] - The stack name to find
  43. * @param {number} [dataIndex]
  44. * @returns {number} The stack index
  45. * @private
  46. */
  47. private _getStackIndex;
  48. /**
  49. * @private
  50. */
  51. private _getRuler;
  52. /**
  53. * Note: pixel values are not clamped to the scale area.
  54. * @private
  55. */
  56. private _calculateBarValuePixels;
  57. /**
  58. * @private
  59. */
  60. private _calculateBarIndexPixels;
  61. }
  62. import DatasetController from "../core/core.datasetController.js";