Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.6.1^2
zouap 3 years ago
parent
commit
afb6c45eec
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      custom/public/rotation3D/rotation3D.js

+ 3
- 3
custom/public/rotation3D/rotation3D.js View File

@@ -154,7 +154,7 @@ var Rotation3D = window.Rotation3D = function (_opts) {
* y y起点 + (尺寸 * 正弦 * y压缩) - 元素宽度一半
*/
Rotation3D.prototype.itemStyle = function($item, index, rotation) {
// console.log(rotation)
console.log("itemStyle=" + rotate)
var parseSXY = circleMath.parseSXY(rotation, this);
var scale = parseSXY.scale;
var x = parseSXY.x;
@@ -219,7 +219,7 @@ Rotation3D.prototype.itemStyle = function($item, index, rotation) {
*/
Rotation3D.prototype.lineStyle = function($line, index, rotation) {
var rotate = circleMath.parseRotate(rotation, this)
// console.log(rotate)
console.log("lineStyle=" + rotate)

$line.css({
transform: 'rotate(' + rotate + 'deg)',
@@ -293,7 +293,7 @@ Rotation3D.prototype.scheduleNextFrame = function () {
*/
Rotation3D.prototype.render = function () {
var self=this;
console.log("render....");
// 图形间隔:弧度
var spacing = 2 * Math.PI / this.$item.length;
var itemRotation = this.rotation;


Loading…
Cancel
Save