-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest-export.html
More file actions
26 lines (24 loc) · 873 Bytes
/
test-export.html
File metadata and controls
26 lines (24 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>YChart Export Test</title>
</head>
<body>
<div id="container" style="width: 100%; height: 600px;"></div>
<script src="dist/ychart-editor.js"></script>
<script>
console.log('Testing YChart export...');
console.log('window.YChartEditor:', window.YChartEditor);
console.log('typeof window.YChartEditor:', typeof window.YChartEditor);
console.log('Is constructor?', window.YChartEditor.prototype !== undefined);
try {
const editor = new window.YChartEditor();
console.log('✅ Constructor works!', editor);
} catch (error) {
console.error('❌ Constructor failed:', error);
}
</script>
</body>
</html>