diff --git a/examples/index.ts b/examples/index.ts index b9f5cf3..1708e6e 100644 --- a/examples/index.ts +++ b/examples/index.ts @@ -42,4 +42,9 @@ fineArrow.onclick = () => { const attackArrow = document.getElementById('drawAttackArrow') as HTMLElement; attackArrow.onclick = () => { new CesiumPlot.AttackArrow(Cesium, viewer, {}); -}; \ No newline at end of file +}; + +const swallowtailAttackArrow = document.getElementById('drawSwallowtailAttackArrow') as HTMLElement; +swallowtailAttackArrow.onclick = () => { + new CesiumPlot.SwallowtailAttackArrow(Cesium, viewer, {}); +}; diff --git a/index.html b/index.html index cd19f0a..fe84942 100644 --- a/index.html +++ b/index.html @@ -15,28 +15,23 @@ padding: 0; overflow: hidden; } - /* #btn { - position: absolute; - top: 10px; - left: 10px; - } */ .button-container { position: absolute; top: 10px; left: 10px; - display: flex; /* 使用 Flex 布局 */ - justify-content: center; /* 水平居中对齐 */ + display: flex; + justify-content: center; } .button { - margin: 0 10px; /* 按钮之间的间距 */ - padding: 6px 10px; /* 按钮内边距 */ - background-color: #3498db; /* 按钮背景颜色 */ - color: #ffffff; /* 按钮文字颜色 */ - border: none; /* 去除边框 */ - border-radius: 5px; /* 圆角边框 */ - cursor: pointer; /* 鼠标指针样式 */ + margin: 0 10px; + padding: 6px 10px; + background-color: #3498db; + color: #ffffff; + border: none; + border-radius: 5px; + cursor: pointer; } @@ -46,6 +41,7 @@
+