@qfo/qfchart 0.7.3 → 0.8.1
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/dist/index.d.ts +368 -14
- package/dist/qfchart.min.browser.js +34 -16
- package/dist/qfchart.min.es.js +34 -16
- package/package.json +1 -1
- package/src/QFChart.ts +460 -311
- package/src/components/AbstractPlugin.ts +234 -104
- package/src/components/DrawingEditor.ts +297 -248
- package/src/components/DrawingRendererRegistry.ts +13 -0
- package/src/components/GraphicBuilder.ts +284 -263
- package/src/components/LayoutManager.ts +72 -55
- package/src/components/SeriesBuilder.ts +110 -6
- package/src/components/TableCanvasRenderer.ts +467 -0
- package/src/components/TableOverlayRenderer.ts +38 -9
- package/src/components/TooltipFormatter.ts +97 -97
- package/src/components/renderers/BackgroundRenderer.ts +59 -47
- package/src/components/renderers/BoxRenderer.ts +113 -17
- package/src/components/renderers/FillRenderer.ts +118 -3
- package/src/components/renderers/LabelRenderer.ts +35 -9
- package/src/components/renderers/OHLCBarRenderer.ts +171 -161
- package/src/components/renderers/PolylineRenderer.ts +26 -19
- package/src/index.ts +17 -6
- package/src/plugins/ABCDPatternTool/ABCDPatternDrawingRenderer.ts +112 -0
- package/src/plugins/ABCDPatternTool/ABCDPatternTool.ts +136 -0
- package/src/plugins/ABCDPatternTool/index.ts +2 -0
- package/src/plugins/CypherPatternTool/CypherPatternDrawingRenderer.ts +80 -0
- package/src/plugins/CypherPatternTool/CypherPatternTool.ts +84 -0
- package/src/plugins/CypherPatternTool/index.ts +2 -0
- package/src/plugins/FibSpeedResistanceFanTool/FibSpeedResistanceFanDrawingRenderer.ts +163 -0
- package/src/plugins/FibSpeedResistanceFanTool/FibSpeedResistanceFanTool.ts +210 -0
- package/src/plugins/FibSpeedResistanceFanTool/index.ts +2 -0
- package/src/plugins/FibTrendExtensionTool/FibTrendExtensionDrawingRenderer.ts +141 -0
- package/src/plugins/FibTrendExtensionTool/FibTrendExtensionTool.ts +188 -0
- package/src/plugins/FibTrendExtensionTool/index.ts +2 -0
- package/src/plugins/FibonacciChannelTool/FibonacciChannelDrawingRenderer.ts +128 -0
- package/src/plugins/FibonacciChannelTool/FibonacciChannelTool.ts +231 -0
- package/src/plugins/FibonacciChannelTool/index.ts +2 -0
- package/src/plugins/FibonacciTool/FibonacciDrawingRenderer.ts +107 -0
- package/src/plugins/{FibonacciTool.ts → FibonacciTool/FibonacciTool.ts} +195 -192
- package/src/plugins/FibonacciTool/index.ts +2 -0
- package/src/plugins/HeadAndShouldersTool/HeadAndShouldersDrawingRenderer.ts +95 -0
- package/src/plugins/HeadAndShouldersTool/HeadAndShouldersTool.ts +97 -0
- package/src/plugins/HeadAndShouldersTool/index.ts +2 -0
- package/src/plugins/LineTool/LineDrawingRenderer.ts +49 -0
- package/src/plugins/{LineTool.ts → LineTool/LineTool.ts} +161 -190
- package/src/plugins/LineTool/index.ts +2 -0
- package/src/plugins/{MeasureTool.ts → MeasureTool/MeasureTool.ts} +324 -344
- package/src/plugins/MeasureTool/index.ts +1 -0
- package/src/plugins/ThreeDrivesPatternTool/ThreeDrivesPatternDrawingRenderer.ts +106 -0
- package/src/plugins/ThreeDrivesPatternTool/ThreeDrivesPatternTool.ts +98 -0
- package/src/plugins/ThreeDrivesPatternTool/index.ts +2 -0
- package/src/plugins/ToolGroup.ts +211 -0
- package/src/plugins/TrianglePatternTool/TrianglePatternDrawingRenderer.ts +107 -0
- package/src/plugins/TrianglePatternTool/TrianglePatternTool.ts +98 -0
- package/src/plugins/TrianglePatternTool/index.ts +2 -0
- package/src/plugins/XABCDPatternTool/XABCDPatternDrawingRenderer.ts +178 -0
- package/src/plugins/XABCDPatternTool/XABCDPatternTool.ts +213 -0
- package/src/plugins/XABCDPatternTool/index.ts +2 -0
- package/src/types.ts +39 -4
- package/src/utils/ColorUtils.ts +1 -1
|
@@ -1,263 +1,284 @@
|
|
|
1
|
-
import { LayoutResult } from './LayoutManager';
|
|
2
|
-
import { QFChartOptions } from '../types';
|
|
3
|
-
|
|
4
|
-
export class GraphicBuilder {
|
|
5
|
-
public static build(
|
|
6
|
-
layout: LayoutResult,
|
|
7
|
-
options: QFChartOptions,
|
|
8
|
-
onToggle: (id: string, action?: 'collapse' | 'maximize' | 'fullscreen') => void,
|
|
9
|
-
isMainCollapsed: boolean = false,
|
|
10
|
-
maximizedPaneId: string | null = null
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
//
|
|
18
|
-
//
|
|
19
|
-
//
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
//
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
1
|
+
import { LayoutResult } from './LayoutManager';
|
|
2
|
+
import { QFChartOptions } from '../types';
|
|
3
|
+
|
|
4
|
+
export class GraphicBuilder {
|
|
5
|
+
public static build(
|
|
6
|
+
layout: LayoutResult,
|
|
7
|
+
options: QFChartOptions,
|
|
8
|
+
onToggle: (id: string, action?: 'collapse' | 'maximize' | 'fullscreen') => void,
|
|
9
|
+
isMainCollapsed: boolean = false,
|
|
10
|
+
maximizedPaneId: string | null = null,
|
|
11
|
+
overlayIndicators: { id: string; titleColor?: string }[] = [],
|
|
12
|
+
): any[] {
|
|
13
|
+
const graphic: any[] = [];
|
|
14
|
+
const pixelToPercent = layout.pixelToPercent;
|
|
15
|
+
const mainPaneTop = layout.mainPaneTop;
|
|
16
|
+
|
|
17
|
+
// Main Chart Title (Only if main chart is visible or maximized)
|
|
18
|
+
// If maximizedPaneId is set and NOT main, main title should be hidden?
|
|
19
|
+
// With current LayoutManager logic, if maximizedPaneId !== main, mainPaneHeight is 0.
|
|
20
|
+
// We should check heights or IDs.
|
|
21
|
+
|
|
22
|
+
const showMain = !maximizedPaneId || maximizedPaneId === 'main';
|
|
23
|
+
|
|
24
|
+
if (showMain) {
|
|
25
|
+
const titleTopMargin = 10 * pixelToPercent;
|
|
26
|
+
graphic.push({
|
|
27
|
+
type: 'text',
|
|
28
|
+
left: '8.5%',
|
|
29
|
+
top: mainPaneTop + titleTopMargin + '%',
|
|
30
|
+
z: 10,
|
|
31
|
+
style: {
|
|
32
|
+
text: options.title || '',
|
|
33
|
+
fill: options.titleColor || '#fff',
|
|
34
|
+
font: `bold 16px ${options.fontFamily || 'sans-serif'}`,
|
|
35
|
+
textVerticalAlign: 'top',
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
// Overlay Indicator Titles (stacked below main chart title)
|
|
40
|
+
if (overlayIndicators.length > 0) {
|
|
41
|
+
const mainTitleHeight = 20 * pixelToPercent; // 16px font + padding
|
|
42
|
+
const overlayLineHeight = 16 * pixelToPercent; // 12px font + 4px gap
|
|
43
|
+
overlayIndicators.forEach((overlay, i) => {
|
|
44
|
+
graphic.push({
|
|
45
|
+
type: 'text',
|
|
46
|
+
left: '8.5%',
|
|
47
|
+
top: mainPaneTop + titleTopMargin + mainTitleHeight + i * overlayLineHeight + '%',
|
|
48
|
+
z: 10,
|
|
49
|
+
style: {
|
|
50
|
+
text: overlay.id,
|
|
51
|
+
fill: overlay.titleColor || '#9e9e9e',
|
|
52
|
+
font: `bold 12px ${options.fontFamily || 'sans-serif'}`,
|
|
53
|
+
textVerticalAlign: 'top',
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Watermark
|
|
60
|
+
if (options.watermark !== false) {
|
|
61
|
+
const bottomY = layout.mainPaneTop + layout.mainPaneHeight;
|
|
62
|
+
graphic.push({
|
|
63
|
+
type: 'text',
|
|
64
|
+
right: '11%',
|
|
65
|
+
top: bottomY - 3 + '%', // Position 5% from bottom of main chart
|
|
66
|
+
z: 10,
|
|
67
|
+
style: {
|
|
68
|
+
text: 'QFChart',
|
|
69
|
+
fill: options.fontColor || '#cbd5e1',
|
|
70
|
+
font: `bold 16px sans-serif`,
|
|
71
|
+
opacity: 0.1,
|
|
72
|
+
},
|
|
73
|
+
cursor: 'pointer',
|
|
74
|
+
onclick: () => {
|
|
75
|
+
window.open('https://quantforge.org', '_blank');
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Main Controls Group
|
|
81
|
+
const controls: any[] = [];
|
|
82
|
+
|
|
83
|
+
// Collapse Button
|
|
84
|
+
if (options.controls?.collapse) {
|
|
85
|
+
controls.push({
|
|
86
|
+
type: 'group',
|
|
87
|
+
children: [
|
|
88
|
+
{
|
|
89
|
+
type: 'rect',
|
|
90
|
+
shape: { width: 20, height: 20, r: 2 },
|
|
91
|
+
style: { fill: '#334155', stroke: '#475569', lineWidth: 1 },
|
|
92
|
+
onclick: () => onToggle('main', 'collapse'),
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
type: 'text',
|
|
96
|
+
style: {
|
|
97
|
+
text: isMainCollapsed ? '+' : '−',
|
|
98
|
+
fill: '#cbd5e1',
|
|
99
|
+
font: `bold 14px ${options.fontFamily}`,
|
|
100
|
+
x: 10,
|
|
101
|
+
y: 10,
|
|
102
|
+
textAlign: 'center',
|
|
103
|
+
textVerticalAlign: 'middle',
|
|
104
|
+
},
|
|
105
|
+
silent: true,
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Maximize Button
|
|
112
|
+
if (options.controls?.maximize) {
|
|
113
|
+
const isMaximized = maximizedPaneId === 'main';
|
|
114
|
+
// Shift x position if collapse button exists
|
|
115
|
+
const xOffset = options.controls?.collapse ? 25 : 0;
|
|
116
|
+
|
|
117
|
+
controls.push({
|
|
118
|
+
type: 'group',
|
|
119
|
+
x: xOffset,
|
|
120
|
+
children: [
|
|
121
|
+
{
|
|
122
|
+
type: 'rect',
|
|
123
|
+
shape: { width: 20, height: 20, r: 2 },
|
|
124
|
+
style: { fill: '#334155', stroke: '#475569', lineWidth: 1 },
|
|
125
|
+
onclick: () => onToggle('main', 'maximize'),
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
type: 'text',
|
|
129
|
+
style: {
|
|
130
|
+
text: isMaximized ? '❐' : '□', // Simple chars for now
|
|
131
|
+
fill: '#cbd5e1',
|
|
132
|
+
font: `14px ${options.fontFamily}`,
|
|
133
|
+
x: 10,
|
|
134
|
+
y: 10,
|
|
135
|
+
textAlign: 'center',
|
|
136
|
+
textVerticalAlign: 'middle',
|
|
137
|
+
},
|
|
138
|
+
silent: true,
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// Fullscreen Button
|
|
145
|
+
if (options.controls?.fullscreen) {
|
|
146
|
+
let xOffset = 0;
|
|
147
|
+
if (options.controls?.collapse) xOffset += 25;
|
|
148
|
+
if (options.controls?.maximize) xOffset += 25;
|
|
149
|
+
|
|
150
|
+
controls.push({
|
|
151
|
+
type: 'group',
|
|
152
|
+
x: xOffset,
|
|
153
|
+
children: [
|
|
154
|
+
{
|
|
155
|
+
type: 'rect',
|
|
156
|
+
shape: { width: 20, height: 20, r: 2 },
|
|
157
|
+
style: { fill: '#334155', stroke: '#475569', lineWidth: 1 },
|
|
158
|
+
onclick: () => onToggle('main', 'fullscreen'),
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
type: 'text',
|
|
162
|
+
style: {
|
|
163
|
+
text: '⛶',
|
|
164
|
+
fill: '#cbd5e1',
|
|
165
|
+
font: `14px ${options.fontFamily}`,
|
|
166
|
+
x: 10,
|
|
167
|
+
y: 10,
|
|
168
|
+
textAlign: 'center',
|
|
169
|
+
textVerticalAlign: 'middle',
|
|
170
|
+
},
|
|
171
|
+
silent: true,
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (controls.length > 0) {
|
|
178
|
+
graphic.push({
|
|
179
|
+
type: 'group',
|
|
180
|
+
right: '10.5%',
|
|
181
|
+
top: mainPaneTop + '%',
|
|
182
|
+
children: controls,
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// Indicator Panes
|
|
188
|
+
layout.paneLayout.forEach((pane) => {
|
|
189
|
+
// If maximizedPaneId is set, and this is NOT the maximized pane, skip rendering its controls
|
|
190
|
+
if (maximizedPaneId && pane.indicatorId !== maximizedPaneId) {
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// Title
|
|
195
|
+
graphic.push({
|
|
196
|
+
type: 'text',
|
|
197
|
+
left: '8.5%',
|
|
198
|
+
top: pane.top + 10 * pixelToPercent + '%',
|
|
199
|
+
z: 10,
|
|
200
|
+
style: {
|
|
201
|
+
text: pane.indicatorId || '',
|
|
202
|
+
fill: pane.titleColor || '#fff',
|
|
203
|
+
font: `bold 12px ${options.fontFamily || 'sans-serif'}`,
|
|
204
|
+
textVerticalAlign: 'top',
|
|
205
|
+
},
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
// Controls
|
|
209
|
+
const controls: any[] = [];
|
|
210
|
+
|
|
211
|
+
// Collapse
|
|
212
|
+
if (pane.controls?.collapse) {
|
|
213
|
+
controls.push({
|
|
214
|
+
type: 'group',
|
|
215
|
+
children: [
|
|
216
|
+
{
|
|
217
|
+
type: 'rect',
|
|
218
|
+
shape: { width: 20, height: 20, r: 2 },
|
|
219
|
+
style: { fill: '#334155', stroke: '#475569', lineWidth: 1 },
|
|
220
|
+
onclick: () => pane.indicatorId && onToggle(pane.indicatorId, 'collapse'),
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
type: 'text',
|
|
224
|
+
style: {
|
|
225
|
+
text: pane.isCollapsed ? '+' : '−',
|
|
226
|
+
fill: '#cbd5e1',
|
|
227
|
+
font: `bold 14px ${options.fontFamily}`,
|
|
228
|
+
x: 10,
|
|
229
|
+
y: 10,
|
|
230
|
+
textAlign: 'center',
|
|
231
|
+
textVerticalAlign: 'middle',
|
|
232
|
+
},
|
|
233
|
+
silent: true,
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
// Maximize
|
|
240
|
+
if (pane.controls?.maximize) {
|
|
241
|
+
// Assuming we add maximize to Indicator controls
|
|
242
|
+
const isMaximized = maximizedPaneId === pane.indicatorId;
|
|
243
|
+
const xOffset = pane.controls?.collapse ? 25 : 0;
|
|
244
|
+
|
|
245
|
+
controls.push({
|
|
246
|
+
type: 'group',
|
|
247
|
+
x: xOffset,
|
|
248
|
+
children: [
|
|
249
|
+
{
|
|
250
|
+
type: 'rect',
|
|
251
|
+
shape: { width: 20, height: 20, r: 2 },
|
|
252
|
+
style: { fill: '#334155', stroke: '#475569', lineWidth: 1 },
|
|
253
|
+
onclick: () => pane.indicatorId && onToggle(pane.indicatorId, 'maximize'),
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
type: 'text',
|
|
257
|
+
style: {
|
|
258
|
+
text: isMaximized ? '❐' : '□',
|
|
259
|
+
fill: '#cbd5e1',
|
|
260
|
+
font: `14px ${options.fontFamily}`,
|
|
261
|
+
x: 10,
|
|
262
|
+
y: 10,
|
|
263
|
+
textAlign: 'center',
|
|
264
|
+
textVerticalAlign: 'middle',
|
|
265
|
+
},
|
|
266
|
+
silent: true,
|
|
267
|
+
},
|
|
268
|
+
],
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if (controls.length > 0) {
|
|
273
|
+
graphic.push({
|
|
274
|
+
type: 'group',
|
|
275
|
+
right: '10.5%',
|
|
276
|
+
top: pane.top + '%',
|
|
277
|
+
children: controls,
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
return graphic;
|
|
283
|
+
}
|
|
284
|
+
}
|