2.0 first commit
This commit is contained in:
15
src/example/example.ts
Normal file
15
src/example/example.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import { generateCandleData } from '../sample-data';
|
||||
import { Handler } from '../general/handler';
|
||||
|
||||
const handler = new Handler("sadasdas", 0.556, 0.5182, "left", true);
|
||||
|
||||
handler.createToolBox();
|
||||
|
||||
const data = generateCandleData();
|
||||
if (handler.series)
|
||||
handler.series.setData(data);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
27
src/example/index.html
Normal file
27
src/example/index.html
Normal file
@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Template Drawing Primitive Plugin Example</title>
|
||||
<link rel="stylesheet" href="../general/styles.css">
|
||||
|
||||
<style>
|
||||
|
||||
#container {
|
||||
/*margin-inline: auto;
|
||||
max-width: 800px;
|
||||
height: 400px;
|
||||
background-color: rgba(240, 243, 250, 1);
|
||||
border-radius: 5px;
|
||||
overflow: hidden;*/
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container"></div>
|
||||
<script type="module" src="./example.ts"></script>
|
||||
<script type="module" src="../general/handler.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user