@easyv/config
Advanced tools
Comparing version 1.1.36 to 1.1.37
@@ -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; |
{ | ||
"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', | ||
}); | ||
725334
13165