O ECMAScript 言語束縛
目次
この付録は正式なものである。
This appendix is normative.
O.1 Module dom
- Prototype Object DOMException
- DOMException クラスは以下の定数を持つ:
- DOMException.INDEX_SIZE_ERR
-
この定数は Number 型で、値は 1 。
This constant is of type Number and its value is 1.
- DOMException.DOMSTRING_SIZE_ERR
-
この定数は Number 型で、値は 2 。
This constant is of type Number and its value is 2.
- DOMException.HIERARCHY_REQUEST_ERR
-
この定数は Number 型で、値は 3 。
This constant is of type Number and its value is 3.
- DOMException.WRONG_DOCUMENT_ERR
-
この定数は Number 型で、値は 4 。
This constant is of type Number and its value is 4.
- DOMException.INVALID_CHARACTER_ERR
-
この定数は Number 型で、値は 5 。
This constant is of type Number and its value is 5.
- DOMException.NO_DATA_ALLOWED_ERR
-
この定数は Number 型で、値は 6 。
This constant is of type Number and its value is 6.
- DOMException.NO_MODIFICATION_ALLOWED_ERR
-
この定数は Number 型で、値は 7 。
This constant is of type Number and its value is 7.
- DOMException.NOT_FOUND_ERR
-
この定数は Number 型で、値は 8 。
This constant is of type Number and its value is 8.
- DOMException.NOT_SUPPORTED_ERR
-
この定数は Number 型で、値は 9 。
This constant is of type Number and its value is 9.
- DOMException.INUSE_ATTRIBUTE_ERR
-
この定数は Number 型で、値は 10 。
This constant is of type Number and its value is 10.
- DOMException.INVALID_STATE_ERR
-
この定数は Number 型で、値は 11 。
This constant is of type Number and its value is 11.
- DOMException.SYNTAX_ERR
-
この定数は Number 型で、値は 12 。
This constant is of type Number and its value is 12.
- DOMException.INVALID_MODIFICATION_ERR
-
この定数は Number 型で、値は 13 。
This constant is of type Number and its value is 13.
- DOMException.NAMESPACE_ERR
-
この定数は Number 型で、値は 14 。
This constant is of type Number and its value is 14.
- DOMException.INVALID_ACCESS_ERR
-
この定数は Number 型で、値は 15 。
This constant is of type Number and its value is 15.
- DOMException.VALIDATION_ERR
-
この定数は Number 型で、値は 16 。
This constant is of type Number and its value is 16.
- DOMException.TYPE_MISMATCH_ERR
-
この定数は Number 型で、値は 17 。
This constant is of type Number and its value is 17.
- Object DOMException
- DOMException オブジェクトは以下のプロパティを持つ:
- code
-
このプロパティの型は Number 。
This property is of type Number.
- Object Node
- Node オブジェクトは以下のプロパティを持つ:
- namespaceURI
-
このプロパティの型は String 。
This property is of type String.
- localName
-
このプロパティの型は String 。
This property is of type String.
- parentNode
-
このプロパティの型は Node 。
This property is of type Node.
- ownerDocument
-
このプロパティの型は Document 。
This property is of type Document.
- textContent
-
このプロパティの型は String 。
This property is of type String.
- Node オブジェクトは以下のメソッドを持つ:
- appendChild(newChild)
-
このメソッドは Node を返す。パラメタ newChild は Node 型。
This method returns a(n) Node. The newChild parameter is of type Node.
- insertBefore(newChild, refChild)
-
このメソッドは Node を返す。パラメタ newChild は Node 型, refChild は Node 型。
This method returns a(n) Node. The newChild parameter is of type Node. The refChild parameter is of type Node.
- removeChild(oldChild)
-
このメソッドは Node を返す。パラメタ oldChild は Node 型。
This method returns a(n) Node. The oldChild parameter is of type Node.
- cloneNode(deep)
-
このメソッドは Node を返す。パラメタ deep は Boolean 型。
This method returns a(n) Node. The deep parameter is of type Boolean.
- Object Element
Element は下で定義されるメソッドとプロパティの他に Node, ElementTraversal のすべてのメソッドとプロパティを持つ。
Element has all the properties and methods of Node, ElementTraversal as well as the properties and methods defined below.
- Element オブジェクトは以下のメソッドを持つ:
- getAttributeNS(namespaceURI, localName)
-
このメソッドは String を返す。パラメタ namespaceURI は String 型, localName は String 型。
This method returns a(n) String. The namespaceURI parameter is of type String. The localName parameter is of type String.
- setAttributeNS(namespaceURI, qualifiedName, value)
-
このメソッドに返り値は無い。パラメタ namespaceURI は String 型, qualifiedName は String 型, value は String 型。
This method has no return value. The namespaceURI parameter is of type String. The qualifiedName parameter is of type String. The value parameter is of type String.
- getAttribute(name)
-
このメソッドは String を返す。パラメタ name は String 型。
This method returns a(n) String. The name parameter is of type String.
- setAttribute(name, value)
-
このメソッドに返り値は無い。パラメタ name は String 型, value は String 型。
This method has no return value. The name parameter is of type String. The value parameter is of type String.
- Object Document
Document は下で定義されるメソッドとプロパティの他に Node のすべてのメソッドとプロパティを持つ。
Document has all the properties and methods of Node as well as the properties and methods defined below.
- Document オブジェクトは以下のプロパティを持つ:
- documentElement
-
このプロパティの型は Element 。
This property is of type Element.
- Document オブジェクトは以下のメソッドを持つ:
- createElementNS(namespaceURI, qualifiedName)
-
このメソッドは Element を返す。パラメタ namespaceURI は String 型, qualifiedName は String 型。
This method returns a(n) Element. The namespaceURI parameter is of type String. The qualifiedName parameter is of type String.
- getElementById(elementId)
-
このメソッドは Element を返す。パラメタ elementId は String 型。
This method returns a(n) Element. The elementId parameter is of type String.
- Object ElementTraversal
- ElementTraversal オブジェクトは以下のプロパティを持つ:
- firstElementChild
-
このプロパティの型は Element 。
This property is of type Element.
- lastElementChild
-
このプロパティの型は Element 。
This property is of type Element.
- nextElementSibling
-
このプロパティの型は Element 。
This property is of type Element.
- previousElementSibling
-
このプロパティの型は Element 。
This property is of type Element.
- childElementCount
-
このプロパティの型は Number 。
This property is of type Number.
- Object Location
- Location オブジェクトは以下のメソッドを持つ:
- assign(iri)
-
このメソッドに返り値は無い。パラメタ iri は String 型。
This method has no return value. The iri parameter is of type String.
- reload()
-
このメソッドに返り値は無い。
This method has no return value.
- Object Window
- Window オブジェクトは以下のプロパティを持つ:
- parent
-
このプロパティの型は Window 。
This property is of type Window.
- location
-
このプロパティの型は Location 。
This property is of type Location.
O.2 Module views
- Object AbstractView
- AbstractView オブジェクトは以下のプロパティを持つ:
- document
-
このプロパティの型は DocumentView 。
This property is of type DocumentView.
- Object DocumentView
- DocumentView オブジェクトは以下のプロパティを持つ:
- defaultView
-
このプロパティの型は AbstractView 。
This property is of type AbstractView.
O.3 Module events
- Object EventTarget
- EventTarget オブジェクトは以下のメソッドを持つ:
- addEventListener(type, listener, useCapture)
-
このメソッドに返り値は無い。パラメタ type は String 型, listener は EventListener 型, useCapture は Boolean 型。
This method has no return value. The type parameter is of type String. The listener parameter is of type EventListener. The useCapture parameter is of type Boolean.
- removeEventListener(type, listener, useCapture)
-
このメソッドに返り値は無い。パラメタ type は String 型, listener は EventListener 型, useCapture は Boolean 型。
This method has no return value. The type parameter is of type String. The listener parameter is of type EventListener. The useCapture parameter is of type Boolean.
- Function EventListener
ECMAScript においては EventListener の指定に2通りのやり方がある。
一つ目は ECMAScript Function オブジェクトで関数それ自身が handleEvent 処理の実装とみなされるもの。
二つ目は handleEvent 処理の実装を与える handleEvent プロパティを持つ ECMAScript オブジェクト。
ECMAScript Function オブジェクトが handleEvent プロパティも持っていた場合、 Function 自身ではなくその handleEvent プロパティが handleEvent 処理の実装を与えるものと見なされる。
In ECMAScript, an EventListener can be specified in one of two ways. The first is an ECMAScript Function object, where the function itself is considered to be the implementation of the handleEvent operation. The second is an ECMAScript object with a property handleEvent, which provides the implementation of the handleEvent operation. If an ECMAScript Function object also has a handleEvent property, then that handleEvent property and not the Function itself is considered to be the implementation of the handleEvent operation.
- EventListener オブジェクトは以下のメソッドを持つ:
- handleEvent(evt)
-
このメソッドに返り値は無い。パラメタ evt は Event 型。
This method has no return value. The evt parameter is of type Event.
- Object Event
- Event オブジェクトは以下のプロパティを持つ:
- target
-
このプロパティの型は EventTarget 。
This property is of type EventTarget.
- currentTarget
-
このプロパティの型は EventTarget 。
This property is of type EventTarget.
- type
-
このプロパティの型は String 。
This property is of type String.
- cancelable
-
このプロパティの型は Boolean 。
This property is of type Boolean.
- defaultPrevented
-
このプロパティの型は Boolean 。
This property is of type Boolean.
- Event オブジェクトは以下のメソッドを持つ:
- stopPropagation()
-
このメソッドに返り値は無い。
This method has no return value.
- preventDefault()
-
このメソッドに返り値は無い。
This method has no return value.
- Object MouseEvent
MouseEvent は下で定義されるメソッドとプロパティの他に UIEvent のすべてのメソッドとプロパティを持つ。
MouseEvent has all the properties and methods of UIEvent as well as the properties and methods defined below.
- MouseEvent オブジェクトは以下のプロパティを持つ:
- screenX
-
このプロパティの型は Number 。
This property is of type Number.
- screenY
-
このプロパティの型は Number 。
This property is of type Number.
- clientX
-
このプロパティの型は Number 。
This property is of type Number.
- clientY
-
このプロパティの型は Number 。
This property is of type Number.
- button
-
このプロパティの型は Number 。
This property is of type Number.
- Object MouseWheelEvent
MouseWheelEvent は下で定義されるメソッドとプロパティの他に MouseEvent のすべてのメソッドとプロパティを持つ。
MouseWheelEvent has all the properties and methods of MouseEvent as well as the properties and methods defined below.
- MouseWheelEvent オブジェクトは以下のプロパティを持つ:
- wheelDelta
-
このプロパティの型は Number 。
This property is of type Number.
- Object TextEvent
TextEvent は下で定義されるメソッドとプロパティの他に UIEvent のすべてのメソッドとプロパティを持つ。
TextEvent has all the properties and methods of UIEvent as well as the properties and methods defined below.
- TextEvent オブジェクトは以下のプロパティを持つ:
- data
-
このプロパティの型は String 。
This property is of type String.
- Object KeyboardEvent
KeyboardEvent は下で定義されるメソッドとプロパティの他に UIEvent のすべてのメソッドとプロパティを持つ。
KeyboardEvent has all the properties and methods of UIEvent as well as the properties and methods defined below.
- KeyboardEvent オブジェクトは以下のプロパティを持つ:
- keyIdentifier
-
このプロパティの型は String 。
This property is of type String.
- Object UIEvent
UIEvent は下で定義されるメソッドとプロパティの他に Event のすべてのメソッドとプロパティを持つ。
UIEvent has all the properties and methods of Event as well as the properties and methods defined below.
- UIEvent オブジェクトは以下のプロパティを持つ:
- detail
-
このプロパティの型は Number 。
This property is of type Number.
- Object ProgressEvent
ProgressEvent は下で定義されるメソッドとプロパティの他に Event のすべてのメソッドとプロパティを持つ。
ProgressEvent has all the properties and methods of Event as well as the properties and methods defined below.
- ProgressEvent オブジェクトは以下のプロパティを持つ:
- lengthComputable
-
このプロパティの型は Boolean 。
This property is of type Boolean.
- loaded
-
このプロパティの型は Number 。
This property is of type Number.
- total
-
このプロパティの型は Number 。
This property is of type Number.
O.4 Module smil
- Object ElementTimeControl
- ElementTimeControl オブジェクトは以下のメソッドを持つ:
- beginElementAt(offset)
-
このメソッドに返り値は無い。パラメタ offset は Number 型。
This method has no return value. The offset parameter is of type Number.
- beginElement()
-
このメソッドに返り値は無い。
This method has no return value.
- endElementAt(offset)
-
このメソッドに返り値は無い。パラメタ offset は Number 型。
This method has no return value. The offset parameter is of type Number.
- endElement()
-
このメソッドに返り値は無い。
This method has no return value.
- Object TimeEvent
TimeEvent は下で定義されるメソッドとプロパティの他に Event のすべてのメソッドとプロパティを持つ。
TimeEvent has all the properties and methods of Event as well as the properties and methods defined below.
- TimeEvent オブジェクトは以下のプロパティを持つ:
- detail
-
このプロパティの型は Number 。
This property is of type Number.
O.5 Module svg
- Prototype Object SVGException
- SVGException クラスは以下の定数を持つ:
- SVGException.SVG_WRONG_TYPE_ERR
-
この定数は Number 型で、値は 0 。
This constant is of type Number and its value is 0.
- SVGException.SVG_INVALID_VALUE_ERR
-
この定数は Number 型で、値は 1 。
This constant is of type Number and its value is 1.
- SVGException.SVG_MATRIX_NOT_INVERTABLE
-
この定数は Number 型で、値は 2 。
This constant is of type Number and its value is 2.
- Object SVGException
- SVGException オブジェクトは以下のプロパティを持つ:
- code
-
このプロパティの型は Number 。
This property is of type Number.
- Object SVGDocument
SVGDocument は下で定義されるメソッドとプロパティの他に Document, EventTarget のすべてのメソッドとプロパティを持つ。
SVGDocument has all the properties and methods of Document, EventTarget as well as the properties and methods defined below.
- Object SVGUseElement
SVGUseElement は下で定義されるメソッドとプロパティの他に SVGLocatableElement のすべてのメソッドとプロパティを持つ。
SVGUseElement has all the properties and methods of SVGLocatableElement as well as the properties and methods defined below.
- Object SVGElementInstance
SVGElementInstance は下で定義されるメソッドとプロパティの他に EventTarget のすべてのメソッドとプロパティを持つ。
SVGElementInstance has all the properties and methods of EventTarget as well as the properties and methods defined below.
- SVGElementInstance オブジェクトは以下のプロパティを持つ:
- correspondingElement
-
このプロパティの型は SVGElement 。
This property is of type SVGElement.
- correspondingUseElement
-
このプロパティの型は SVGUseElement 。
This property is of type SVGUseElement.
- Prototype Object SVGSVGElement
- SVGSVGElement クラスは以下の定数を持つ:
- SVGSVGElement.NAV_AUTO
-
この定数は Number 型で、値は 1 。
This constant is of type Number and its value is 1.
- SVGSVGElement.NAV_NEXT
-
この定数は Number 型で、値は 2 。
This constant is of type Number and its value is 2.
- SVGSVGElement.NAV_PREV
-
この定数は Number 型で、値は 3 。
This constant is of type Number and its value is 3.
- SVGSVGElement.NAV_UP
-
この定数は Number 型で、値は 4 。
This constant is of type Number and its value is 4.
- SVGSVGElement.NAV_UP_RIGHT
-
この定数は Number 型で、値は 5 。
This constant is of type Number and its value is 5.
- SVGSVGElement.NAV_RIGHT
-
この定数は Number 型で、値は 6 。
This constant is of type Number and its value is 6.
- SVGSVGElement.NAV_DOWN_RIGHT
-
この定数は Number 型で、値は 7 。
This constant is of type Number and its value is 7.
- SVGSVGElement.NAV_DOWN
-
この定数は Number 型で、値は 8 。
This constant is of type Number and its value is 8.
- SVGSVGElement.NAV_DOWN_LEFT
-
この定数は Number 型で、値は 9 。
This constant is of type Number and its value is 9.
- SVGSVGElement.NAV_LEFT
-
この定数は Number 型で、値は 10 。
This constant is of type Number and its value is 10.
- SVGSVGElement.NAV_UP_LEFT
-
この定数は Number 型で、値は 11 。
This constant is of type Number and its value is 11.
- Object SVGSVGElement
SVGSVGElement は下で定義されるメソッドとプロパティの他に SVGLocatableElement, SVGTimedElement のすべてのメソッドとプロパティを持つ。
SVGSVGElement has all the properties and methods of SVGLocatableElement, SVGTimedElement as well as the properties and methods defined below.
- SVGSVGElement オブジェクトは以下のプロパティを持つ:
- currentScale
-
このプロパティの型は Number 。
This property is of type Number.
- currentRotate
-
このプロパティの型は Number 。
This property is of type Number.
- currentTranslate
-
このプロパティの型は SVGPoint 。
This property is of type SVGPoint.
- viewport
-
このプロパティの型は SVGRect 。
This property is of type SVGRect.
- SVGSVGElement オブジェクトは以下のメソッドを持つ:
- getCurrentTime()
-
このメソッドは Number を返す。
This method returns a(n) Number.
- setCurrentTime(seconds)
-
このメソッドに返り値は無い。パラメタ seconds は Number 型。
This method has no return value. The seconds parameter is of type Number.
- createSVGMatrixComponents(a, b, c, d, e, f)
-
このメソッドは SVGMatrix を返す。パラメタ a は Number 型, b は Number 型, c は Number 型, d は Number 型, e は Number 型, f は Number 型。
This method returns a(n) SVGMatrix. The a parameter is of type Number. The b parameter is of type Number. The c parameter is of type Number. The d parameter is of type Number. The e parameter is of type Number. The f parameter is of type Number.
- createSVGRect()
-
このメソッドは SVGRect を返す。
This method returns a(n) SVGRect.
- createSVGPoint()
-
このメソッドは SVGPoint を返す。
This method returns a(n) SVGPoint.
- createSVGPath()
-
このメソッドは SVGPath を返す。
This method returns a(n) SVGPath.
- createSVGRGBColor(red, green, blue)
-
このメソッドは SVGRGBColor を返す。パラメタ red は Number 型, green は Number 型, blue は Number 型。
This method returns a(n) SVGRGBColor. The red parameter is of type Number. The green parameter is of type Number. The blue parameter is of type Number.
- moveFocus(motionType)
-
このメソッドに返り値は無い。パラメタ motionType は Number 型。
This method has no return value. The motionType parameter is of type Number.
- setFocus(theObject)
-
このメソッドに返り値は無い。パラメタ theObject は EventTarget 型。
This method has no return value. The theObject parameter is of type EventTarget.
- getCurrentFocusedObject()
-
このメソッドは EventTarget を返す。
This method returns a(n) EventTarget.
- Object SVGRGBColor
- SVGRGBColor オブジェクトは以下のプロパティを持つ:
- red
-
このプロパティの型は Number 。
This property is of type Number.
- green
-
このプロパティの型は Number 。
This property is of type Number.
- blue
-
このプロパティの型は Number 。
This property is of type Number.
- Object SVGRect
- SVGRect オブジェクトは以下のプロパティを持つ:
- x
-
このプロパティの型は Number 。
This property is of type Number.
- y
-
このプロパティの型は Number 。
This property is of type Number.
- width
-
このプロパティの型は Number 。
This property is of type Number.
- height
-
このプロパティの型は Number 。
This property is of type Number.
- Object SVGPoint
- SVGPoint オブジェクトは以下のプロパティを持つ:
- x
-
このプロパティの型は Number 。
This property is of type Number.
- y
-
このプロパティの型は Number 。
This property is of type Number.
- SVGPoint オブジェクトは以下のメソッドを持つ:
- matrixTransform(matrix)
-
このメソッドは SVGPoint を返す。パラメタ matrix は SVGMatrix 型。
This method returns a(n) SVGPoint. The matrix parameter is of type SVGMatrix.
- Prototype Object SVGPath
- SVGPath クラスは以下の定数を持つ:
- SVGPath.MOVE_TO
-
この定数は Number 型で、値は 77 。
This constant is of type Number and its value is 77.
- SVGPath.LINE_TO
-
この定数は Number 型で、値は 76 。
This constant is of type Number and its value is 76.
- SVGPath.CURVE_TO
-
この定数は Number 型で、値は 67 。
This constant is of type Number and its value is 67.
- SVGPath.QUAD_TO
-
この定数は Number 型で、値は 81 。
This constant is of type Number and its value is 81.
- SVGPath.CLOSE
-
この定数は Number 型で、値は 90 。
This constant is of type Number and its value is 90.
- Object SVGPath
- SVGPath オブジェクトは以下のプロパティを持つ:
- numberOfSegments
-
このプロパティの型は Number 。
This property is of type Number.
- SVGPath オブジェクトは以下のメソッドを持つ:
- getSegment(cmdIndex)
-
このメソッドは Number を返す。パラメタ cmdIndex は Number 型。
This method returns a(n) Number. The cmdIndex parameter is of type Number.
- getSegmentParam(cmdIndex, paramIndex)
-
このメソッドは Number を返す。パラメタ cmdIndex は Number 型, paramIndex は Number 型。
This method returns a(n) Number. The cmdIndex parameter is of type Number. The paramIndex parameter is of type Number.
- moveTo(x, y)
-
このメソッドに返り値は無い。パラメタ x は Number 型, y は Number 型。
This method has no return value. The x parameter is of type Number. The y parameter is of type Number.
- lineTo(x, y)
-
このメソッドに返り値は無い。パラメタ x は Number 型, y は Number 型。
This method has no return value. The x parameter is of type Number. The y parameter is of type Number.
- quadTo(x1, y1, x2, y2)
-
このメソッドに返り値は無い。パラメタ x1 は Number 型, y1 は Number 型, x2 は Number 型, y2 は Number 型。
This method has no return value. The x1 parameter is of type Number. The y1 parameter is of type Number. The x2 parameter is of type Number. The y2 parameter is of type Number.
- curveTo(x1, y1, x2, y2, x3, y3)
-
このメソッドに返り値は無い。パラメタ x1 は Number 型, y1 は Number 型, x2 は Number 型, y2 は Number 型, x3 は Number 型, y3 は Number 型。
This method has no return value. The x1 parameter is of type Number. The y1 parameter is of type Number. The x2 parameter is of type Number. The y2 parameter is of type Number. The x3 parameter is of type Number. The y3 parameter is of type Number.
- close()
-
このメソッドに返り値は無い。
This method has no return value.
- Object SVGMatrix
- SVGMatrix オブジェクトは以下のメソッドを持つ:
- getComponent(index)
-
このメソッドは Number を返す。パラメタ index は Number 型。
This method returns a(n) Number. The index parameter is of type Number.
- mMultiply(secondMatrix)
-
このメソッドは SVGMatrix を返す。パラメタ secondMatrix は SVGMatrix 型。
This method returns a(n) SVGMatrix. The secondMatrix parameter is of type SVGMatrix.
- inverse()
-
このメソッドは SVGMatrix を返す。
This method returns a(n) SVGMatrix.
- mTranslate(x, y)
-
このメソッドは SVGMatrix を返す。パラメタ x は Number 型, y は Number 型。
This method returns a(n) SVGMatrix. The x parameter is of type Number. The y parameter is of type Number.
- mScale(scaleFactor)
-
このメソッドは SVGMatrix を返す。パラメタ scaleFactor は Number 型。
This method returns a(n) SVGMatrix. The scaleFactor parameter is of type Number.
- mRotate(angle)
-
このメソッドは SVGMatrix を返す。パラメタ angle は Number 型。
This method returns a(n) SVGMatrix. The angle parameter is of type Number.
- Object SVGLocatable
- SVGLocatable オブジェクトは以下のメソッドを持つ:
- getBBox()
-
このメソッドは SVGRect を返す。
This method returns a(n) SVGRect.
- getScreenCTM()
-
このメソッドは SVGMatrix を返す。
This method returns a(n) SVGMatrix.
- getScreenBBox()
-
このメソッドは SVGRect を返す。
This method returns a(n) SVGRect.
- Object SVGLocatableElement
SVGLocatableElement は下で定義されるメソッドとプロパティの他に SVGElement, SVGLocatable のすべてのメソッドとプロパティを持つ。
SVGLocatableElement has all the properties and methods of SVGElement, SVGLocatable as well as the properties and methods defined below.
- Object TraitAccess
- TraitAccess オブジェクトは以下のメソッドを持つ:
- getTrait(name)
-
このメソッドは String を返す。パラメタ name は String 型。
This method returns a(n) String. The name parameter is of type String.
- getTraitNS(namespaceURI, name)
-
このメソッドは String を返す。パラメタ namespaceURI は String 型, name は String 型。
This method returns a(n) String. The namespaceURI parameter is of type String. The name parameter is of type String.
- getFloatTrait(name)
-
このメソッドは Number を返す。パラメタ name は String 型。
This method returns a(n) Number. The name parameter is of type String.
- getFloatListTrait(name)
-
このメソッドは Object を返す(ただし、詳細は下の Sequences を見よ)。パラメタ name は String 型。
This method returns a(n) Object (but see Sequences below for details). The name parameter is of type String.
- getMatrixTrait(name)
-
このメソッドは SVGMatrix を返す。パラメタ name は String 型。
This method returns a(n) SVGMatrix. The name parameter is of type String.
- getRectTrait(name)
-
このメソッドは SVGRect を返す。パラメタ name は String 型。
This method returns a(n) SVGRect. The name parameter is of type String.
- getPathTrait(name)
-
このメソッドは SVGPath を返す。パラメタ name は String 型。
This method returns a(n) SVGPath. The name parameter is of type String.
- getRGBColorTrait(name)
-
このメソッドは SVGRGBColor を返す。パラメタ name は String 型。
This method returns a(n) SVGRGBColor. The name parameter is of type String.
- getPresentationTrait(name)
-
このメソッドは String を返す。パラメタ name は String 型。
This method returns a(n) String. The name parameter is of type String.
- getPresentationTraitNS(namespaceURI, name)
-
このメソッドは String を返す。パラメタ namespaceURI は String 型, name は String 型。
This method returns a(n) String. The namespaceURI parameter is of type String. The name parameter is of type String.
- getFloatPresentationTrait(name)
-
このメソッドは Number を返す。パラメタ name は String 型。
This method returns a(n) Number. The name parameter is of type String.
- getFloatListPresentationTrait(name)
-
このメソッドは Object を返す(ただし、詳細は下の Sequences を見よ)。パラメタ name は String 型。
This method returns a(n) Object (but see Sequences below for details). The name parameter is of type String.
- getMatrixPresentationTrait(name)
-
このメソッドは SVGMatrix を返す。パラメタ name は String 型。
This method returns a(n) SVGMatrix. The name parameter is of type String.
- getRectPresentationTrait(name)
-
このメソッドは SVGRect を返す。パラメタ name は String 型。
This method returns a(n) SVGRect. The name parameter is of type String.
- getPathPresentationTrait(name)
-
このメソッドは SVGPath を返す。パラメタ name は String 型。
This method returns a(n) SVGPath. The name parameter is of type String.
- getRGBColorPresentationTrait(name)
-
このメソッドは SVGRGBColor を返す。パラメタ name は String 型。
This method returns a(n) SVGRGBColor. The name parameter is of type String.
- setTrait(name, value)
-
このメソッドに返り値は無い。パラメタ name は String 型, value は String 型。
This method has no return value. The name parameter is of type String. The value parameter is of type String.
- setTraitNS(namespaceURI, name, value)
-
このメソッドに返り値は無い。パラメタ namespaceURI は String 型, name は String 型, value は String 型。
This method has no return value. The namespaceURI parameter is of type String. The name parameter is of type String. The value parameter is of type String.
- setFloatTrait(name, value)
-
このメソッドに返り値は無い。パラメタ name は String 型, value は Number 型。
This method has no return value. The name parameter is of type String. The value parameter is of type Number.
- setFloatListTrait(name, value)
-
このメソッドに返り値は無い。パラメタ name は String 型。value は Object 型を返す(ただし、詳細は下の Sequences を見よ)。
This method has no return value. The name parameter is of type String. The value parameter is of type Object (but see Sequences below for details).
- setMatrixTrait(name, matrix)
-
このメソッドに返り値は無い。パラメタ name は String 型, matrix は SVGMatrix 型。
This method has no return value. The name parameter is of type String. The matrix parameter is of type SVGMatrix.
- setRectTrait(name, rect)
-
このメソッドに返り値は無い。パラメタ name は String 型, rect は SVGRect 型。
This method has no return value. The name parameter is of type String. The rect parameter is of type SVGRect.
- setPathTrait(name, path)
-
このメソッドに返り値は無い。パラメタ name は String 型, path は SVGPath 型。
This method has no return value. The name parameter is of type String. The path parameter is of type SVGPath.
- setRGBColorTrait(name, color)
-
このメソッドに返り値は無い。パラメタ name は String 型, color は SVGRGBColor 型。
This method has no return value. The name parameter is of type String. The color parameter is of type SVGRGBColor.
- Object SVGElement
SVGElement は下で定義されるメソッドとプロパティの他に Element, EventTarget, TraitAccess のすべてのメソッドとプロパティを持つ。
SVGElement has all the properties and methods of Element, EventTarget, TraitAccess as well as the properties and methods defined below.
- SVGElement オブジェクトは以下のプロパティを持つ:
- id
-
このプロパティの型は String 。
This property is of type String.
- Object SVGTimedElement
SVGTimedElement は下で定義されるメソッドとプロパティの他に SVGElement, smil::ElementTimeControl のすべてのメソッドとプロパティを持つ。
SVGTimedElement has all the properties and methods of SVGElement, smil::ElementTimeControl as well as the properties and methods defined below.
- SVGTimedElement オブジェクトは以下のプロパティを持つ:
- isPaused
-
このプロパティの型は Boolean 。
This property is of type Boolean.
- SVGTimedElement オブジェクトは以下のメソッドを持つ:
- pauseElement()
-
このメソッドに返り値は無い。
This method has no return value.
- resumeElement()
-
このメソッドに返り値は無い。
This method has no return value.
- Object SVGAnimationElement
SVGAnimationElement は下で定義されるメソッドとプロパティの他に SVGTimedElement のすべてのメソッドとプロパティを持つ。
SVGAnimationElement has all the properties and methods of SVGTimedElement as well as the properties and methods defined below.
- Object SVGVisualMediaElement
SVGVisualMediaElement は下で定義されるメソッドとプロパティの他に SVGLocatableElement, SVGTimedElement のすべてのメソッドとプロパティを持つ。
SVGVisualMediaElement has all the properties and methods of SVGLocatableElement, SVGTimedElement as well as the properties and methods defined below.
- Object SVGTimer
SVGTimer は下で定義されるメソッドとプロパティの他に events::EventTarget のすべてのメソッドとプロパティを持つ。
SVGTimer has all the properties and methods of events::EventTarget as well as the properties and methods defined below.
- SVGTimer オブジェクトは以下のプロパティを持つ:
- delay
-
このプロパティの型は Number 。
This property is of type Number.
- repeatInterval
-
このプロパティの型は Number 。
This property is of type Number.
- running
-
このプロパティの型は Boolean 。
This property is of type Boolean.
- SVGTimer オブジェクトは以下のメソッドを持つ:
- start()
-
このメソッドに返り値は無い。
This method has no return value.
- stop()
-
このメソッドに返り値は無い。
This method has no return value.
- Object SVGGlobal
- SVGGlobal オブジェクトは以下のメソッドを持つ:
- createTimer(initialInterval, repeatInterval)
-
このメソッドは SVGTimer を返す。パラメタ initialInterval は Number 型, repeatInterval は Number 型。
This method returns a(n) SVGTimer. The initialInterval parameter is of type Number. The repeatInterval parameter is of type Number.
- getURL(iri, callback)
-
このメソッドに返り値は無い。パラメタ iri は String 型, callback は AsyncStatusCallback 型。
This method has no return value. The iri parameter is of type String. The callback parameter is of type AsyncStatusCallback.
- postURL(iri, data, callback, type, encoding)
-
このメソッドに返り値は無い。パラメタ iri は String 型, data は String 型, callback は AsyncStatusCallback 型, type は String 型, encoding は String 型。
This method has no return value. The iri parameter is of type String. The data parameter is of type String. The callback parameter is of type AsyncStatusCallback. The type parameter is of type String. The encoding parameter is of type String.
- parseXML(data, contextDoc)
-
このメソッドは Node を返す。パラメタ data は String 型, contextDoc は Document 型。
This method returns a(n) Node. The data parameter is of type String. The contextDoc parameter is of type Document.
- Object AsyncStatusCallback
- AsyncStatusCallback オブジェクトは以下のメソッドを持つ:
- operationComplete(status)
-
このメソッドに返り値は無い。パラメタ status は AsyncURLStatus 型。
This method has no return value. The status parameter is of type AsyncURLStatus.
- Object AsyncURLStatus
- AsyncURLStatus オブジェクトは以下のプロパティを持つ:
- success
-
このプロパティの型は Boolean 。
This property is of type Boolean.
- contentType
-
このプロパティの型は String 。
This property is of type String.
- content
-
このプロパティの型は String 。
This property is of type String.
O.6 Sequences
ECMAScript 言語束縛において、型 sequence<float> は ECMAScript オブジェクトで表現される。これを sequence オブジェクト と呼ぶことにする。
In the ECMAScript language binding, a value of type sequence<float> is represented by an ECMAScript object, hereafter called the sequence object.
sequence オブジェクトは sequence の長さを与える Number 型の非負整数値をとる length プロパティを持たなければならない。
The sequence object must have a length property whose value is a non-negative integer Number, which gives the length of the sequence.
範囲 [0, length) の各 index に対し、 sequence オブジェクトは名前が index で値が index に位置する sequence の中の element を与えるプロパティ(index プロパティ)を持たなければならない。ホストオブジェクトから返されてきた際は(すなわち、戻り値型が sequence<float> の処理を呼び出したとき、あるいは sequence<float> 型の属性を取得したとき)、これらのプロパティから返された element 値は ECMAScript Number でなければならない。
For each index in the range [0, length), the sequence object must have a property (an index property) whose name is the index and whose value gives the element of the sequence at that index. When returned from a host object (that is, when an operation whose return type is sequence<float> is called, or when an attribute whose type is sequence<float> is retrieved), then the element values returned from these properties must be an ECMAScript Number.
ホストオブジェクトに渡された場合(すなわち、型 sequence<float> の 処理引数として渡したとき、または
型 sequence<float> の属性に代入したとき)、各 index プロパティの値が element の値を与え、それは対応する index プロパティの値を ToNumber オペレータに渡した結果になる( ECMAScript 言語仕様
[ECMA-262]
の 9.3 節に定義されている)。
When passed to a host object (that is, when passed as an operation argument whose type is sequence<float>, or when assigned to an attribute whose type is sequence<float> is assigned to), then the value of each index property gives the element value, which is the result of passing the value of the corresponding index property to the ToNumber operator (defined in section 9.3 of the ECMAScript Language Specification [ECMA-262]).