@@ -67,7 +67,6 @@ var Mouse = require('../core/Mouse');
6767 showPositions : false ,
6868 showAngleIndicator : false ,
6969 showIds : false ,
70- showShadows : false ,
7170 showVertexNumbers : false ,
7271 showConvexHulls : false ,
7372 showInternalEdges : false ,
@@ -532,55 +531,6 @@ var Mouse = require('../core/Mouse');
532531 }
533532 } ;
534533
535- /**
536- * Description
537- * @private
538- * @method bodyShadows
539- * @param {render } render
540- * @param {body[] } bodies
541- * @param {RenderingContext } context
542- */
543- Render . bodyShadows = function ( render , bodies , context ) {
544- var c = context ,
545- engine = render . engine ;
546-
547- for ( var i = 0 ; i < bodies . length ; i ++ ) {
548- var body = bodies [ i ] ;
549-
550- if ( ! body . render . visible )
551- continue ;
552-
553- if ( body . circleRadius ) {
554- c . beginPath ( ) ;
555- c . arc ( body . position . x , body . position . y , body . circleRadius , 0 , 2 * Math . PI ) ;
556- c . closePath ( ) ;
557- } else {
558- c . beginPath ( ) ;
559- c . moveTo ( body . vertices [ 0 ] . x , body . vertices [ 0 ] . y ) ;
560- for ( var j = 1 ; j < body . vertices . length ; j ++ ) {
561- c . lineTo ( body . vertices [ j ] . x , body . vertices [ j ] . y ) ;
562- }
563- c . closePath ( ) ;
564- }
565-
566- var distanceX = body . position . x - render . options . width * 0.5 ,
567- distanceY = body . position . y - render . options . height * 0.2 ,
568- distance = Math . abs ( distanceX ) + Math . abs ( distanceY ) ;
569-
570- c . shadowColor = 'rgba(0,0,0,0.15)' ;
571- c . shadowOffsetX = 0.05 * distanceX ;
572- c . shadowOffsetY = 0.05 * distanceY ;
573- c . shadowBlur = 1 + 12 * Math . min ( 1 , distance / 1000 ) ;
574-
575- c . fill ( ) ;
576-
577- c . shadowColor = null ;
578- c . shadowOffsetX = null ;
579- c . shadowOffsetY = null ;
580- c . shadowBlur = null ;
581- }
582- } ;
583-
584534 /**
585535 * Description
586536 * @private
0 commit comments