- Created separate MoneyFlix project directory - Copied Node.js redirector from production server - Added CRM PHP code (Redirects module, Core classes, Config, Routes, Views) - Created comprehensive documentation (README_MONEYFLIX.md) - Added sync script to keep CRM code updated (sync-from-crm.sh) - Configured .gitignore for Node.js and PHP - Set up proper project structure for multi-client isolation This separates MoneyFlix from the main CRM to avoid confusion between different client systems and provides a dedicated environment for MoneyFlix-specific development and maintenance.
65 lines
1.7 KiB
TypeScript
65 lines
1.7 KiB
TypeScript
export default class DoughnutController extends DatasetController {
|
|
static id: string;
|
|
static descriptors: {
|
|
_scriptable: (name: any) => boolean;
|
|
_indexable: (name: any) => boolean;
|
|
};
|
|
/**
|
|
* @type {any}
|
|
*/
|
|
static overrides: any;
|
|
constructor(chart: any, datasetIndex: any);
|
|
innerRadius: number;
|
|
outerRadius: number;
|
|
offsetX: number;
|
|
offsetY: number;
|
|
/**
|
|
* Override data parsing, since we are not using scales
|
|
*/
|
|
parse(start: any, count: any): void;
|
|
/**
|
|
* @private
|
|
*/
|
|
private _getRotation;
|
|
/**
|
|
* @private
|
|
*/
|
|
private _getCircumference;
|
|
/**
|
|
* Get the maximal rotation & circumference extents
|
|
* across all visible datasets.
|
|
*/
|
|
_getRotationExtents(): {
|
|
rotation: number;
|
|
circumference: number;
|
|
};
|
|
/**
|
|
* @private
|
|
*/
|
|
private _circumference;
|
|
calculateTotal(): number;
|
|
calculateCircumference(value: any): number;
|
|
getLabelAndValue(index: any): {
|
|
label: any;
|
|
value: string;
|
|
};
|
|
getMaxBorderWidth(arcs: any): number;
|
|
getMaxOffset(arcs: any): number;
|
|
/**
|
|
* Get radius length offset of the dataset in relation to the visible datasets weights. This allows determining the inner and outer radius correctly
|
|
* @private
|
|
*/
|
|
private _getRingWeightOffset;
|
|
/**
|
|
* @private
|
|
*/
|
|
private _getRingWeight;
|
|
/**
|
|
* Returns the sum of all visible data set weights.
|
|
* @private
|
|
*/
|
|
private _getVisibleDatasetWeightTotal;
|
|
}
|
|
export type Chart = import('../core/core.controller.js').default;
|
|
import DatasetController from "../core/core.datasetController.js";
|