@mogura/moguchart-core 0.8.0 → 0.9.0

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/README.en.md CHANGED
@@ -1,7 +1,11 @@
1
1
  # @mogura/moguchart-core
2
2
 
3
+ [日本語](./README.md) | [Demo](https://moguchart-core.vercel.app/)
4
+
3
5
  A lightweight yet feature-rich Gantt chart Web Component built with Lit. Works with Vue, React, Angular, Svelte, and any other framework.
4
6
 
7
+ - **Demo**: [https://moguchart-core.vercel.app/](https://moguchart-core.vercel.app/)
8
+
5
9
  ## Features
6
10
 
7
11
  - 🚀 **Framework-agnostic**: Built as Web Components (Custom Elements), works in any environment.
package/README.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # @mogura/moguchart-core
2
2
 
3
- [English](./README.en.md)
3
+ [English](./README.en.md) | [Demo](https://moguchart-core.vercel.app/)
4
4
 
5
5
  Vue, React, Angular, Svelte など、どのフレームワークでも動作する、軽量で高機能な Web Components 製ガントチャートコンポーネントです。Lit で構築されています。
6
6
 
7
+ - **デモ**: [https://moguchart-core.vercel.app/](https://moguchart-core.vercel.app/)
8
+
7
9
  ## 特徴
8
10
 
9
11
  - 🚀 **フレームワーク非依存**: Web Components (Custom Elements) として実装されており、あらゆる環境で動作します。
@@ -21,6 +21,8 @@ export declare class GanttBarElement extends LitElement {
21
21
  private getX;
22
22
  private setupDragEvents;
23
23
  private onResizeStart;
24
+ /** ドラッグ開始と判定するための移動閾値(px) */
25
+ private static readonly DRAG_THRESHOLD;
24
26
  private onMoveStart;
25
27
  protected updated(changedProperties: PropertyValues): void;
26
28
  disconnectedCallback(): void;
@@ -413,8 +413,10 @@ export interface BarHoverEventDetail {
413
413
  task: GanttTask;
414
414
  /** マウスのX座標 */
415
415
  x: number;
416
- /** マウスのY座標 */
416
+ /** マウスのY座標(バー上辺) */
417
417
  y: number;
418
+ /** バー下辺のY座標 */
419
+ barBottom: number;
418
420
  }
419
421
  /**
420
422
  * タスククリックイベントの詳細