🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

glibline

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glibline - npm Package Compare versions

Comparing version
0.0.10
to
0.1.1
+9
-2
models/timeline.ts

@@ -465,4 +465,11 @@ import { h } from "../h";

onclick: (e: MouseEvent) => {
let startPx = Math.min(this.lastX, this.endX);
let endPx = Math.max(this.lastX, this.endX);
const rect = this.timeline.getBoundingClientRect();
let startPx = Math.min(
this.lastX - rect.left,
this.endX - rect.left
);
let endPx = Math.max(
this.lastX - rect.left,
this.endX - rect.left
);
const startTime = this.getTimeByPx(startPx);

@@ -469,0 +476,0 @@ const endTime = this.getTimeByPx(endPx);

+1
-1
{
"name": "glibline",
"version": "0.0.10",
"version": "0.1.1",
"description": "时间轴(timeline),用于实现根据时间对数据事件操作。",

@@ -5,0 +5,0 @@ "main": "index.ts",