SVGSVGElement

SVGSVGElement interface provides access to the properties of <svg> elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices.

特性

This interface also inherits properties from its parent, SVGGraphicsElement and also implements the ones from SVGZoomAndPan , SVGFitToViewBox ,和 WindowEventHandlers .

SVGSVGElement.x 只读
An SVGAnimatedLength corresponding to the x attribute of the given <svg> 元素。
SVGSVGElement.y 只读
An SVGAnimatedLength corresponding to the y attribute of the given <svg> 元素。
SVGSVGElement.width 只读
An SVGAnimatedLength corresponding to the width attribute of the given <svg> 元素。
SVGSVGElement.height 只读
An SVGAnimatedLength corresponding to the height attribute of the given <svg> 元素。
SVGSVGElement.contentScriptType
An SVGAnimatedLength corresponding to the contentScriptType attribute of the given <svg> 元素。
SVGSVGElement.contentStyleType
An SVGAnimatedLength corresponding to the contentStyleType attribute of the given <svg> 元素。
SVGSVGElement.viewport
An SVGRect containing the position and size of the viewport (implicit or explicit) that corresponds to the given <svg> element. When the browser is actually rendering the content, then the position and size values represent the actual values when rendering. The position and size values are unitless values in the coordinate system of the parent element. If no parent element exists (i.e., <svg> element represents the root of the document tree), if this SVG document is embedded as part of another document (e.g., via the HTML <object> element), then the position and size are unitless values in the coordinate system of the parent document. (If the parent uses CSS or XSL layout, then unitless values represent pixel units for the current CSS or XSL viewport.)
SVGSVGElement.pixelUnitToMillimeterX
A float representing the size of the pixel unit (as defined by CSS2) along the x-axis of the viewport, which represents a unit somewhere in the range of 70dpi to 120dpi, and, on systems that support this, might actually match the characteristics of the target medium. On systems where it is impossible to know the size of a pixel, a suitable default pixel size is provided.
SVGSVGElement.pixelUnitToMillimeterY
A float representing the size of a pixel unit along the y-axis of the viewport.
SVGSVGElement.screenPixelToMillimeterX
User interface (UI) events in DOM Level 2 indicate the screen positions at which the given UI event occurred. When the browser actually knows the physical size of a "screen unit", this float attribute will express that information; otherwise, user agents will provide a suitable default value (such as .28mm ).
SVGSVGElement.screenPixelToMillimeterY
Corresponding size of a screen pixel along the y-axis of the viewport.
SVGSVGElement.useCurrentView
The initial view (i.e., before magnification and panning) of the current innermost SVG document fragment can be either the "standard" view, i.e., based on attributes on the <svg> element such as viewBox ) or on a "custom" view (i.e., a hyperlink into a particular <view> or other element). If the initial view is the "standard" view, then this attribute is false . If the initial view is a "custom" view, then this attribute is true .
SVGSVGElement.currentView
An SVGViewSpec defining the initial view (i.e., before magnification and panning) of the current innermost SVG document fragment. The meaning depends on the situation: If the initial view was a "standard" view, then: If the initial view was a link into a <view> element, then: If the initial view was a link into another element (i.e., other than a <view> ), then: If the initial view was a link into the SVG document fragment using an SVG view specification fragment identifier (i.e., #svgView(…) ), then:
SVGSVGElement.currentScale
On an outermost <svg> element, this float attribute indicates the current scale factor relative to the initial view to take into account user magnification and panning operations. DOM attributes currentScale and currentTranslate are equivalent to the 2×3 matrix [a b c d e f] = [ currentScale 0 0 currentScale currentTranslate .x currentTranslate .y] . If "magnification" is enabled (i.e., zoomAndPan="magnify" ), then the effect is as if an extra transformation were placed at the outermost level on the SVG document fragment (i.e., outside the outermost <svg> element).
SVGSVGElement.currentTranslate 只读
An SVGPoint representing the translation factor that takes into account user "magnification" corresponding to an outermost <svg> element. The behavior is undefined for <svg> elements that are not at the outermost level.

方法

This interface also inherits methods from its parent, SVGGraphicsElement and also implements the ones from SVGZoomAndPan , SVGFitToViewBox ,和 WindowEventHandlers .

SVGSVGElement.suspendRedraw()

Takes a time-out value which indicates that redraw shall not occur until:

the corresponding unsuspendRedraw() call has been made, an unsuspendRedrawAll() call has been made, or its timer has timed out.

In environments that do not support interactivity (e.g., print media), then redraw shall not be suspended. Calls to suspendRedraw() and unsuspendRedraw() should, but need not be, made in balanced pairs.

To suspend redraw actions as a collection of SVG DOM changes occur, precede the changes to the SVG DOM with a method call similar to:

const suspendHandleID = suspendRedraw(maxWaitMilliseconds)
							

and follow the changes with a method call similar to:

unsuspendRedraw(suspendHandleID)
							

Note that multiple suspendRedraw() calls can be used at once, and that each such method call is treated independently of the other suspendRedraw() method calls.

SVGSVGElement.unsuspendRedraw()
Cancels a specified suspendRedraw() by providing a unique suspend handle ID that was returned by a previous suspendRedraw() 调用。
SVGSVGElement.unsuspendRedrawAll()
Cancels all currently active suspendRedraw() method calls. This method is most useful at the very end of a set of SVG DOM calls to ensure that all pending suspendRedraw() method calls have been cancelled.
SVGSVGElement.forceRedraw()
In rendering environments supporting interactivity, forces the user agent to immediately redraw all regions of the viewport that require updating.
SVGSVGElement.pauseAnimations()
Suspends (i.e., pauses) all currently running animations that are defined within the SVG document fragment corresponding to this <svg> element, causing the animation clock corresponding to this document fragment to stand still until it is unpaused.
SVGSVGElement.unpauseAnimations()
Unsuspends (i.e., unpauses) currently running animations that are defined within the SVG document fragment, causing the animation clock to continue from the time at which it was suspended.
SVGSVGElement.animationsPaused()
返回 true if this SVG document fragment is in a paused state.
SVGSVGElement.getCurrentTime()
Returns the current time in seconds relative to the start time for the current SVG document fragment. If getCurrentTime() is called before the document timeline has begun (for example, by script running in a <script> element before the document's SVGLoad event is dispatched), then 0 被返回。
SVGSVGElement.setCurrentTime()
Adjusts the clock for this SVG document fragment, establishing a new current time. If setCurrentTime() is called before the document timeline has begun (for example, by script running in a <script> element before the document's SVGLoad event is dispatched), then the value of seconds in the last invocation of the method gives the time that the document will seek to once the document timeline has begun.
SVGSVGElement.getIntersectionList()
返回 NodeList of graphics elements whose rendered content intersects the supplied rectangle. Each candidate graphics element is to be considered a match only if the same graphics element can be a target of pointer events as defined in pointer-events processing.
SVGSVGElement.getEnclosureList()
返回 NodeList of graphics elements whose rendered content is entirely contained within the supplied rectangle. Each candidate graphics element is to be considered a match only if the same graphics element can be a target of pointer events as defined in pointer-events processing.
SVGSVGElement.checkIntersection()
返回 true if the rendered content of the given element intersects the supplied rectangle. Each candidate graphics element is to be considered a match only if the same graphics element can be a target of pointer events as defined in pointer-events processing.
SVGSVGElement.checkEnclosure()
返回 true if the rendered content of the given element is entirely contained within the supplied rectangle. Each candidate graphics element is to be considered a match only if the same graphics element can be a target of pointer events as defined in pointer-events processing.
SVGSVGElement.deselectAll()
Unselects any selected objects, including any selections of text strings and type-in bars.
SVGSVGElement.createSVGNumber()
创建 SVGNumber object outside of any document trees. The object is initialized to 0 .
SVGSVGElement.createSVGLength()
创建 SVGLength object outside of any document trees. The object is initialized to 0 user units.
SVGSVGElement.createSVGAngle()
创建 SVGAngle object outside of any document trees. The object is initialized to a value of 0 degrees (unitless).
SVGSVGElement.createSVGPoint()
创建 SVGPoint object outside of any document trees. The object is initialized to the point (0,0) in the user coordinate system.
SVGSVGElement.createSVGMatrix()
创建 SVGMatrix object outside of any document trees. The object is initialized to the identity matrix.
SVGSVGElement.createSVGRect()
创建 SVGRect object outside of any document trees. The object is initialized such that all values are set to 0 user units.
SVGSVGElement.createSVGTransform()
创建 SVGTransform object outside of any document trees. The object is initialized to an identity matrix transform ( SVG_TRANSFORM_MATRIX ).
SVGSVGElement.createSVGTransformFromMatrix()
创建 SVGTransform object outside of any document trees. The object is initialized to the given matrix transform (i.e., SVG_TRANSFORM_MATRIX ). The values from the parameter matrix are copied, the matrix parameter is not adopted as SVGTransform::matrix .
SVGSVGElement.getElementById()
Searches this SVG document fragment (i.e., the search is restricted to a subset of the document tree) for an Element whose id is given by elementId . If an Element is found, that Element is returned. If no such element exists, returns null . Behavior is not defined if more than one element has this id.

规范

规范 状态 Comment
Scalable Vector Graphics (SVG) 2
The definition of 'SVGSVGElement' in that specification.
候选推荐 Replaced the inheritance from SVGElement by SVGGraphicsElement , removed the implemented interfaces SVGTests , SVGLangSpace , SVGExternalResourcesRequired , SVGStylable , SVGLocatable , DocumentEvent , ViewCSS ,和 DocumentCSS and added implemented interface WindowEventHandlers .
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'SVGSVGElement' in that specification.
Recommendation 初始定义

浏览器兼容性

更新 GitHub 上的兼容性数据
Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
SVGSVGElement Chrome Yes Edge 12 Firefox Yes IE 9 Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
animationsPaused Chrome ? Edge ? Firefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
checkEnclosure Chrome Yes Edge 12 Firefox No IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android No Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
checkIntersection Chrome Yes Edge 12 Firefox No IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android No Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
contentScriptType Chrome ? Edge 12 Firefox ? — 20 IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
contentStyleType Chrome ? Edge 12 Firefox ? — 20 IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
createSVGAngle Chrome Yes Edge 12 Firefox Yes IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
createSVGLength Chrome Yes Edge 12 Firefox Yes IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
createSVGMatrix Chrome Yes Edge 12 Firefox Yes IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
createSVGNumber Chrome Yes Edge 12 Firefox Yes IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
createSVGPoint Chrome Yes Edge 12 Firefox Yes IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
createSVGRect Chrome Yes Edge 12 Firefox Yes IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
createSVGTransform Chrome Yes Edge 12 Firefox Yes IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
createSVGTransformFromMatrix Chrome Yes Edge 12 Firefox Yes IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
currentScale Chrome Yes Edge 12 Firefox Yes IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
currentTranslate Chrome Yes Edge 12 Firefox Yes IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
currentView Chrome ? — 56 Edge No Firefox Yes IE ? Opera ? — 43 Safari ? WebView Android ? — 56 Chrome Android ? — 56 Firefox Android Yes Opera Android ? — 43 Safari iOS ? Samsung Internet Android ? — 6.0
deselectAll Chrome Yes Edge 12 Firefox Yes IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
forceRedraw
弃用
Chrome Yes Edge 12 Firefox Yes IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
getCurrentTime Chrome ? Edge 12 Firefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
getElementById Chrome Yes Edge 12 Firefox 11 IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
getEnclosureList Chrome Yes Edge 12 Firefox No IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android No Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
getIntersectionList Chrome Yes Edge 12 Firefox No IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android No Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
height Chrome Yes Edge 12 Firefox Yes IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
pauseAnimations Chrome ? Edge 12 Firefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
pixelUnitToMillimeterX
弃用
Chrome ? — 47 Edge 12 — 79 Firefox ? — 61 IE ? Opera ? — 33 Safari ? WebView Android ? — 47 Chrome Android ? — 47 Firefox Android ? — 61 Opera Android ? — 33 Safari iOS ? Samsung Internet Android ? — 5.0
pixelUnitToMillimeterY
弃用
Chrome ? — 47 Edge 12 — 79 Firefox ? — 61 IE ? Opera ? — 33 Safari ? WebView Android ? — 47 Chrome Android ? — 47 Firefox Android ? — 61 Opera Android ? — 33 Safari iOS ? Samsung Internet Android ? — 5.0
screenPixelToMillimeterX
弃用
Chrome ? — 47 Edge 12 — 79 Firefox ? — 61 IE ? Opera ? — 33 Safari ? WebView Android ? — 47 Chrome Android ? — 47 Firefox Android ? — 61 Opera Android ? — 33 Safari iOS ? Samsung Internet Android ? — 5.0
screenPixelToMillimeterY
弃用
Chrome ? — 47 Edge 12 — 79 Firefox ? — 61 IE ? Opera ? — 33 Safari ? WebView Android ? — 47 Chrome Android ? — 47 Firefox Android ? — 61 Opera Android ? — 33 Safari iOS ? Samsung Internet Android ? — 5.0
setCurrentTime Chrome ? Edge 12 Firefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
suspendRedraw
弃用
Chrome Yes Edge 12 Firefox Yes IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
unpauseAnimations Chrome ? Edge 12 Firefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
unsuspendRedraw
弃用
Chrome Yes Edge 12 Firefox Yes IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
unsuspendRedrawAll
弃用
Chrome Yes Edge 12 Firefox Yes IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
useCurrentView Chrome ? — 56 Edge No Firefox 15 IE ? Opera ? — 43 Safari ? WebView Android ? — 56 Chrome Android ? — 56 Firefox Android 15 Opera Android ? — 43 Safari iOS ? Samsung Internet Android ? — 6.0
视口 Chrome ? Edge 12 Firefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
width Chrome Yes Edge 12 Firefox Yes IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
x Chrome Yes Edge 12 Firefox Yes IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
y Chrome Yes Edge 12 Firefox Yes IE ? Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes

图例

完整支持
完整支持
不支持
不支持
兼容性未知
兼容性未知
弃用。不要用于新网站。
弃用。不要用于新网站。

另请参阅

  1. SVGSVGElement
  2. 继承:
    1. SVGGraphicsElement
    2. SVGElement
    3. Element
    4. Node
    5. EventTarget
  3. Related pages for SVG
    1. SVGAElement
    2. SVGAltGlyphElement
    3. SVGAngle
    4. SVGAnimateColorElement
    5. SVGAnimateElement
    6. SVGAnimateMotionElement
    7. SVGAnimateTransformElement
    8. SVGAnimatedAngle
    9. SVGAnimatedBoolean
    10. SVGAnimatedEnumeration
    11. SVGAnimatedInteger
    12. SVGAnimatedLength
    13. SVGAnimatedLengthList
    14. SVGAnimatedNumber
    15. SVGAnimatedNumberList
    16. SVGAnimatedPathData
    17. SVGAnimatedPoints
    18. SVGAnimatedPreserveAspectRatio
    19. SVGAnimatedRect
    20. SVGAnimatedString
    21. SVGAnimatedTransformList
    22. SVGAnimationElement
    23. SVGCircleElement
    24. SVGClipPathElement
    25. SVGComponentTransferFunctionElement
    26. SVGCursorElement
    27. SVGDefsElement
    28. SVGDescElement
    29. SVGDocument
    30. SVGElement
    31. SVGEllipseElement
    32. SVGFEBlendElement
    33. SVGFEColorMatrixElement
    34. SVGFEComponentTransferElement
    35. SVGFECompositeElement
    36. SVGFEConvolveMatrixElement
    37. SVGFEDiffuseLightingElement
    38. SVGFEDisplacementMapElement
    39. SVGFEDistantLightElement
    40. SVGFEDropShadowElement
    41. SVGFEFloodElement
    42. SVGFEFuncAElement
    43. SVGFEFuncBElement
    44. SVGFEFuncGElement
    45. SVGFEFuncRElement
    46. SVGFEGaussianBlurElement
    47. SVGFEImageElement
    48. SVGFEMergeElement
    49. SVGFEMergeNodeElement
    50. SVGFEMorphologyElement
    51. SVGFEOffsetElement
    52. SVGFEPointLightElement
    53. SVGFESpecularLightingElement
    54. SVGFESpotLightElement
    55. SVGFETileElement
    56. SVGFETurbulenceElement
    57. SVGFilterElement
    58. SVGFilterPrimitiveStandardAttributes
    59. SVGFitToViewBox
    60. SVGFontElement
    61. SVGFontFaceElement
    62. SVGFontFaceFormatElement
    63. SVGFontFaceNameElement
    64. SVGFontFaceSrcElement
    65. SVGFontFaceUriElement
    66. SVGForeignObjectElement
    67. SVGGElement
    68. SVGGlyphElement
    69. SVGGradientElement
    70. SVGGraphicsElement
    71. SVGHKernElement
    72. SVGImageElement
    73. SVGLength
    74. SVGLengthList
    75. SVGLineElement
    76. SVGLinearGradientElement
    77. SVGMPathElement
    78. SVGMarkerElement
    79. SVGMaskElement
    80. SVGMatrix
    81. SVGMetadataElement
    82. SVGMissingGlyphElement
    83. SVGNumber
    84. SVGNumberList
    85. SVGPathElement
    86. SVGPathSeg
    87. SVGPathSegArcAbs
    88. SVGPathSegArcRel
    89. SVGPathSegClosePath
    90. SVGPathSegCurvetoCubicAbs
    91. SVGPathSegCurvetoCubicRel
    92. SVGPathSegCurvetoCubicSmoothAbs
    93. SVGPathSegCurvetoCubicSmoothRel
    94. SVGPathSegCurvetoQuadraticAbs
    95. SVGPathSegCurvetoQuadraticRel
    96. SVGPathSegCurvetoQuadraticSmoothAbs
    97. SVGPathSegCurvetoQuadraticSmoothRel
    98. SVGPathSegLinetoAbs
    99. SVGPathSegLinetoHorizontalAbs
    100. SVGPathSegLinetoHorizontalRel
    101. SVGPathSegLinetoRel
    102. SVGPathSegLinetoVerticalAbs
    103. SVGPathSegLinetoVerticalRel
    104. SVGPathSegList
    105. SVGPathSegMovetoAbs
    106. SVGPathSegMovetoRel
    107. SVGPatternElement
    108. SVGPoint
    109. SVGPointList
    110. SVGPolygonElement
    111. SVGPolylineElement
    112. SVGPreserveAspectRatio
    113. SVGRadialGradientElement
    114. SVGRect
    115. SVGRectElement
    116. SVGScriptElement
    117. SVGSetElement
    118. SVGStopElement
    119. SVGStringList
    120. SVGStylable
    121. SVGStyleElement
    122. SVGSwitchElement
    123. SVGSymbolElement
    124. SVGTRefElement
    125. SVGTSpanElement
    126. SVGTests
    127. SVGTextContentElement
    128. SVGTextElement
    129. SVGTextPathElement
    130. SVGTextPositioningElement
    131. SVGTitleElement
    132. SVGTransform
    133. SVGTransformList
    134. SVGTransformable
    135. SVGURIReference
    136. SVGUnitTypes
    137. SVGUseElement
    138. SVGVKernElement
    139. SVGViewElement
    140. SVGZoomAndPan
    141. SVGZoomEvent
    142. TimeEvent