@@ -75,7 +75,7 @@ return /******/ (function(modules) { // webpackBootstrap
75
75
/******/ }
76
76
/******/
77
77
/******/ var hotApplyOnUpdate = true ;
78
- /******/ var hotCurrentHash = "f48d32093e3626691a18 " ; // eslint-disable-line no-unused-vars
78
+ /******/ var hotCurrentHash = "a0b3bb5aa532c2b4f460 " ; // eslint-disable-line no-unused-vars
79
79
/******/ var hotCurrentModuleData = { } ;
80
80
/******/ var hotCurrentParents = [ ] ; // eslint-disable-line no-unused-vars
81
81
/******/
@@ -4078,7 +4078,7 @@ return /******/ (function(modules) { // webpackBootstrap
4078
4078
/* WEBPACK VAR INJECTION */ ( function ( riot ) {
4079
4079
4080
4080
4081
- riot . tag2 ( 'little-handle' , '' , '' , ' class="{this.CLASSES[\'little-handle \']}" riot-style="{this.getStyle() }"', function ( opts ) {
4081
+ riot . tag2 ( 'little-handle' , '<div class="{this.CLASSES[\'little-handle__point\']}" riot-style="{this.getPointStyle()}"></div> <div class="{this.CLASSES[\'little-handle__line \']}" riot-style="{this.getLineStyle()}"></div>' , '' , 'class="{this.CLASSES[\'little-handle\'] }"', function ( opts ) {
4082
4082
'use strict' ;
4083
4083
4084
4084
var _extends = Object . assign || function ( target ) { for ( var i = 1 ; i < arguments . length ; i ++ ) { var source = arguments [ i ] ; for ( var key in source ) { if ( Object . prototype . hasOwnProperty . call ( source , key ) ) { target [ key ] = source [ key ] ; } } } return target ; } ;
@@ -4120,13 +4120,20 @@ return /******/ (function(modules) { // webpackBootstrap
4120
4120
return { radius : radius , angle : angle } ;
4121
4121
} ;
4122
4122
4123
- this . getStyle = function ( ) {
4123
+ this . getPointStyle = function ( ) {
4124
4124
var point = angleToPoint ( _this . angle , _this . radius ) ;
4125
4125
4126
4126
var translate = 'transform: translate(' + point . x + 'px, ' + point . y + 'px) rotate(' + _this . angle + 'deg)' ;
4127
4127
return '' + mojs . h . prefix . css + translate + '; ' + translate ;
4128
4128
} ;
4129
4129
4130
+ this . getLineStyle = function ( ) {
4131
+ var point = angleToPoint ( _this . angle , _this . radius ) ;
4132
+
4133
+ var translate = 'transform: rotate(' + _this . angle + 'deg) scaleY(' + _this . radius + ')' ;
4134
+ return '' + mojs . h . prefix . css + translate + '; ' + translate ;
4135
+ } ;
4136
+
4130
4137
this . on ( 'mount' , function ( ) {
4131
4138
var hammertime = ( 0 , _propagatingHammerjs2 . default ) ( new _hammerjs2 . default ( _this . root ) ) . on ( 'pan' , function ( e ) {
4132
4139
var point = angleToPoint ( _this . angle , _this . radius ) ,
@@ -4179,7 +4186,9 @@ return /******/ (function(modules) { // webpackBootstrap
4179
4186
/***/ function ( module , exports ) {
4180
4187
4181
4188
module . exports = {
4182
- "little-handle" : "_little-handle_xdcpx_3"
4189
+ "little-handle" : "_little-handle_1rkhn_3" ,
4190
+ "little-handle__point" : "_little-handle__point_1rkhn_1" ,
4191
+ "little-handle__line" : "_little-handle__line_1rkhn_1"
4183
4192
} ;
4184
4193
4185
4194
/***/ } ,
@@ -4217,7 +4226,7 @@ return /******/ (function(modules) { // webpackBootstrap
4217
4226
4218
4227
4219
4228
// module
4220
- exports . push ( [ module . id , "._little-handle_xdcpx_3{ width:6px;height:6px;background:#ff512f;position:absolute }._little-handle_xdcpx_3 :after{content:'';position:absolute;width:200%;height:200%;left:50%;top:50%;margin-left:-100%;margin-top:-100%}" , "" ] ) ;
4229
+ exports . push ( [ module . id , "._little-handle_1rkhn_3{position:absolute;left:50%;top:50%; width:0;height:0}._little-handle__point_1rkhn_1{position:absolute;z-index:1;width: 6px;height:6px;left:50%;top:50%;margin-left:-3px;margin-top:-3px; background:#ff512f;box-shadow:1px 1px 0 rgba(0,0,0,.5) }._little-handle__point_1rkhn_1 :after{content:'';position:absolute;width:200%;height:200%;left:50%;top:50%;margin-left:-100%;margin-top:-100%}._little-handle__line_1rkhn_1{position:absolute;width:1px;height:1px;margin-left:-1px;margin-top:-1px;left:50%;top:50%;background:#ff512f;-webkit-transform-origin:50% 100%;transform-origin:50% 100%;box-shadow:1px 0 0 rgba(0,0,0,.5) }" , "" ] ) ;
4221
4230
4222
4231
// exports
4223
4232
@@ -9962,9 +9971,9 @@ return /******/ (function(modules) { // webpackBootstrap
9962
9971
/***/ function ( module , exports ) {
9963
9972
9964
9973
module . exports = {
9965
- "point" : "_point_3a5h7_5 " ,
9966
- "is-selected" : "_is-selected_3a5h7_40 " ,
9967
- "is-hide-handles" : "_is-hide-handles_3a5h7_51 "
9974
+ "point" : "_point_vx4ul_5 " ,
9975
+ "is-selected" : "_is-selected_vx4ul_32 " ,
9976
+ "is-hide-handles" : "_is-hide-handles_vx4ul_43 "
9968
9977
} ;
9969
9978
9970
9979
/***/ } ,
@@ -10002,7 +10011,7 @@ return /******/ (function(modules) { // webpackBootstrap
10002
10011
10003
10012
10004
10013
// module
10005
- exports . push ( [ module . id , "._point_3a5h7_5 {position:absolute;width:10px;height:10px;margin-left:-5px;margin-top:-5px;cursor:move;background:#fff;border-radius:50%;z-index:3;box-shadow:3px 3px 0 rgba(0,0,0,.5);border:2px solid #fff}._point_3a5h7_5 little-handle{position:absolute;left:50%;top:50%;margin-left:-3px;margin-top:-3px; display:none}._point_3a5h7_5 :after{content:'';position:absolute;left:50%;top:50%;width:20px;height:20px;margin-left:-10px;margin-top:-10px}._point_3a5h7_5 ._is-selected_3a5h7_40,._point_3a5h7_5 :hover{border-color:#ff512f}._point_3a5h7_5 ._is-selected_3a5h7_40 little-handle{display:block}._point_3a5h7_5 ._is-hide-handles_3a5h7_51 little-handle{display:none}" , "" ] ) ;
10014
+ exports . push ( [ module . id , "._point_vx4ul_5 {position:absolute;width:10px;height:10px;margin-left:-5px;margin-top:-5px;cursor:move;background:#fff;border-radius:50%;z-index:3;box-shadow:3px 3px 0 rgba(0,0,0,.5);border:2px solid #fff}._point_vx4ul_5 little-handle{display:none}._point_vx4ul_5 :after{content:'';position:absolute;left:50%;top:50%;width:20px;height:20px;margin-left:-10px;margin-top:-10px}._point_vx4ul_5 ._is-selected_vx4ul_32,._point_vx4ul_5 :hover{border-color:#ff512f}._point_vx4ul_5 ._is-selected_vx4ul_32 little-handle{display:block}._point_vx4ul_5 ._is-hide-handles_vx4ul_43 little-handle{display:none}" , "" ] ) ;
10006
10015
10007
10016
// exports
10008
10017
0 commit comments