Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

Dui

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Dui - npm Package Compare versions

Comparing version 0.1.19 to 0.2.0

2

package.json
{
"name": "Dui",
"version": "0.1.19",
"version": "0.2.0",
"description": "针对某部门的UI组件开发",

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

@@ -13,8 +13,8 @@ export default {

if (left < width / 2) {
return width / 2;
if (left < 0) {
return 0;
}
if (left > (containerWidth - width / 2)) {
return containerWidth - width / 2;
if (left > (containerWidth - width)) {
return containerWidth - width;
}

@@ -28,8 +28,8 @@

if (top < height / 2) {
return height / 2;
if (top < 0) {
return 0;
}
if (top > (containerHeight - height / 2)) {
return containerHeight - height / 2;
if (top > (containerHeight - height)) {
return containerHeight - height;
}

@@ -36,0 +36,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc