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

@easyv/config

Package Overview
Dependencies
Maintainers
11
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@easyv/config - npm Package Compare versions

Comparing version 1.1.36 to 1.1.37

8

lib/index.js

@@ -302,2 +302,8 @@ "use strict";

});
Object.defineProperty(exports, "translate3d", {
enumerable: true,
get: function get() {
return _translate.translate3d;
}
});
Object.defineProperty(exports, "unit", {

@@ -323,3 +329,3 @@ enumerable: true,

var _font = _interopRequireDefault(require("./font"));
var _translate = _interopRequireDefault(require("./translate"));
var _translate = _interopRequireWildcard(require("./translate"));
var _gridLine = _interopRequireDefault(require("./gridLine"));

@@ -326,0 +332,0 @@ var _tickLine = _interopRequireDefault(require("./tickLine"));

@@ -6,3 +6,3 @@ "use strict";

});
exports["default"] = void 0;
exports.translate3d = exports["default"] = void 0;
var _default = function _default() {

@@ -36,2 +36,41 @@ var x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;

};
exports["default"] = _default;
exports["default"] = _default;
var translate3d = function translate3d() {
var x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
var y = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var z = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
return {
name: 'translate3d',
displayName: '偏移',
value: [{
name: 'x',
displayName: 'X',
value: x,
type: 'number',
config: {
suffix: 'px',
span: 12
}
}, {
name: 'y',
displayName: 'Y',
value: y,
type: 'number',
config: {
suffix: 'px',
span: 12
}
}, {
name: 'z',
displayName: 'Z',
value: z,
type: 'number',
config: {
suffix: 'px',
span: 12
}
}],
type: 'group'
};
};
exports.translate3d = translate3d;

2

package.json
{
"name": "@easyv/config",
"version": "1.1.36",
"version": "1.1.37",
"description": "",

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

import show, { showRule } from './show';
import font from './font';
import translate from './translate';
import translate, { translate3d } from './translate';
import gridLine from './gridLine';

@@ -60,2 +60,3 @@ import tickLine from './tickLine';

translate,
translate3d,
textOverflow,

@@ -62,0 +63,0 @@ extent,

@@ -28,1 +28,40 @@ export default (x = 0, y = 0) => ({

});
export const translate3d = (x = 0, y = 0, z=0) => ({
name: 'translate3d',
displayName: '偏移',
value: [
{
name: 'x',
displayName: 'X',
value: x,
type: 'number',
config: {
suffix: 'px',
span: 12,
},
},
{
name: 'y',
displayName: 'Y',
value: y,
type: 'number',
config: {
suffix: 'px',
span: 12,
},
},
{
name: 'z',
displayName: 'Z',
value: z,
type: 'number',
config: {
suffix: 'px',
span: 12
}
}
],
type: 'group',
});
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