scaleObj

$group scaleObj x y x0 y0 refX refY mode
scales group obj interactively

obj method group scaleObj {x y x0 y0 refX refY {mode both}} {
  if {[$self constraint size]} then {
    set centerDot [my centerDot]
    lassign [$centerDot storeXY info] centerX centerY
    $centerDot scaleObj $x $y $x0 $y0 $refX $refY $mode
    set dx [- [$centerDot cget -x] $centerX]
    set dy [- [$centerDot cget -y] $centerY]
    lappend transformL moveHorizontal $dx moveVertical $dy
    $self dots transform {*}$transformL
    $self draw
  } else {
    $self elements scaleObj $x $y $x0 $y0 $refX $refY $mode
  }
}

© Wolf-Dieter Busch | Home | Sitemap | Urheber | A-Z