survey-analytics 1.9.103 → 1.9.105
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.
- package/package.json +2 -2
- package/survey-analytics.types/visualizerBase.d.ts +10 -1
- package/survey-analytics.types/visualizerFactory.d.ts +13 -1
- package/survey.analytics.css +1 -1
- package/survey.analytics.datatables.css +1 -1
- package/survey.analytics.datatables.js +1 -1
- package/survey.analytics.datatables.min.css +1 -1
- package/survey.analytics.datatables.min.js +1 -1
- package/survey.analytics.js +32 -4
- package/survey.analytics.min.css +1 -1
- package/survey.analytics.min.js +2 -2
- package/survey.analytics.tabulator.css +1 -1
- package/survey.analytics.tabulator.js +1 -1
- package/survey.analytics.tabulator.min.css +1 -1
- package/survey.analytics.tabulator.min.js +1 -1
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"lint": "eslint ./src --quiet",
|
|
21
21
|
"pre-push-check": "npm run lint && npm run test"
|
|
22
22
|
},
|
|
23
|
-
"version": "1.9.
|
|
23
|
+
"version": "1.9.105",
|
|
24
24
|
"name": "survey-analytics",
|
|
25
25
|
"description": "SurveyJS analytics Library.",
|
|
26
26
|
"main": "survey.analytics.js",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"jquery": "3.5.0",
|
|
59
59
|
"muuri": "^0.8.0",
|
|
60
60
|
"plotly.js-dist-min": "^2.11.1",
|
|
61
|
-
"survey-core": "1.9.
|
|
61
|
+
"survey-core": "1.9.105",
|
|
62
62
|
"tabulator-tables": "4.8.4",
|
|
63
63
|
"wordcloud": "^1.2.2"
|
|
64
64
|
},
|
|
@@ -121,7 +121,7 @@ export declare class VisualizerBase implements IDataInfo {
|
|
|
121
121
|
* const vizPanel = new VisualizationPanel( ... );
|
|
122
122
|
*
|
|
123
123
|
* // Add a custom button to the toolbar
|
|
124
|
-
*
|
|
124
|
+
* vizPanel.visualizers[0].registerToolbarItem("my-toolbar-button", () => {
|
|
125
125
|
* return DocumentHelper.createButton(
|
|
126
126
|
* // A button click event handler
|
|
127
127
|
* () => {
|
|
@@ -152,8 +152,17 @@ export declare class VisualizerBase implements IDataInfo {
|
|
|
152
152
|
* ```
|
|
153
153
|
* @param name A custom name for the toolbar item.
|
|
154
154
|
* @param creator A function that accepts the toolbar and should return an `HTMLElement` with the toolbar item.
|
|
155
|
+
* @see unregisterToolbarItem
|
|
155
156
|
*/
|
|
156
157
|
registerToolbarItem(name: string, creator: (toolbar?: HTMLDivElement) => HTMLElement): void;
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* Unregisters a function used to create a toolbar item. Allows you to remove a toolbar item.
|
|
161
|
+
* @param name A toolbar item name.
|
|
162
|
+
* @returns A function previously used to [register](#registerToolbarItem) the removed toolbar item.
|
|
163
|
+
* @see registerToolbarItem
|
|
164
|
+
*/
|
|
165
|
+
unregisterToolbarItem(name: string): (toolbar?: HTMLDivElement) => HTMLElement;
|
|
157
166
|
/**
|
|
158
167
|
* Returns the visualizer's type.
|
|
159
168
|
*/
|
|
@@ -5,7 +5,19 @@ import { VisualizerBase } from "./visualizerBase";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class VisualizerFactory {
|
|
7
7
|
/**
|
|
8
|
-
* Creates a visualizer for a
|
|
8
|
+
* Creates a visualizer for a single question.
|
|
9
|
+
*
|
|
10
|
+
* ```js
|
|
11
|
+
* import { VisualizerFactory } from "survey-analytics";
|
|
12
|
+
*
|
|
13
|
+
* const visualizer = new VisualizerFactory.createVisualizer(
|
|
14
|
+
* question,
|
|
15
|
+
* data,
|
|
16
|
+
* options
|
|
17
|
+
* );
|
|
18
|
+
*
|
|
19
|
+
* visualizer.render("containerId")
|
|
20
|
+
* ```
|
|
9
21
|
*
|
|
10
22
|
* If a question has more than one [registered](https://surveyjs.io/dashboard/documentation/api-reference/visualizationmanager#registerVisualizer) visualizer, users can switch between them using a drop-down menu.
|
|
11
23
|
* @param question A question for which to create a visualizer.
|
package/survey.analytics.css
CHANGED