Translation:Transformations and Nested Page Items

From IDMLWiki

Jump to: navigation, search
変換と入れ子のページオブジェクト

下記は30度回転され、別の長方形の中にペーストされた長方形の例です。外側の長方形はさらに15度回転させます。

  1. <Rectangle Self="ucd" ItemTransform="0.9659258262890683 -0.25881904510252074 0.25881904510252074 0.9659258262890683 0 0">
  2.   <Properties>
  3.     <PathGeometry>
  4.       <GeometryPath PathOpen="false">
  5.         <PathPointArray>
  6.           <PathPointType Anchor="72 -324" LeftDirection="72 -324"RightDirection="72 -324"/>
  7.           <PathPointType Anchor="72 -252" LeftDirection="72 -252"RightDirection="72 -252"/>
  8.           <PathPointType Anchor="144 -252" LeftDirection="144 -252"RightDirection="144 -252"/>
  9.           <PathPointType Anchor="144 -324" LeftDirection="144 -324"RightDirection="144 -324"/>
  10.           </PathPointArray>
  11.       </GeometryPath>
  12.     </PathGeometry>
  13.   </Properties>
  14.     <Rectangle Self="uda" ItemTransform="0.8660254037844387 -0.5 0.5 0.8660254037844387 0 0">
  15.       <Properties>
  16.         <PathGeometry>
  17.           <GeometryPath PathOpen="false">
  18.           <PathPointArray>
  19.             <PathPointType Anchor="84 -312" LeftDirection="84 -312"RightDirection="84 -312"/>
  20.             <PathPointType Anchor="84 -288" LeftDirection="84 -288"RightDirection="84 -288"/>
  21.             <PathPointType Anchor="108 -288" LeftDirection="108 -288"RightDirection="108 -288"/>
  22.             <PathPointType Anchor="108 -312" LeftDirection="108 -312"RightDirection="108 -312"/>
  23.           </PathPointArray>
  24.         </GeometryPath>
  25.       </PathGeometry>
  26.     </Properties>
  27.   </Rectangle>
  28. </Rectangle>
図17 外側の長方形

Image:Fig017.png

図18 内側の長方形

Image:Fig018.png

InDesignのUIでみると、回転が重なっています。(内側の長方形の回転角度が、元々の角度と外側の回転角度の合計になっている)IDMLの変換行列の例では、この回転を反映しています。下記は外側の長方形(前述で設定済み)の変換行列の例です。

a = 0.9659258262890683 = コサイン15度

b = -0.25881904510252074 = サイン-15度

c = 0.25881904510252074 = サイン15度

d = 0.9659258262890683 = コサイン15度


下記は内側の長方形の変換行列の例です。

a = 0.8660254037844387 = コサイン30度

b = -0.5000000000000001 = サイン-30度

c = 0.5000000000000001 = サイン30度

d = 0.8660254037844387 = コサイン30度

Personal tools