View Javadoc
1   /*
2    * Copyright (c) 2002-2026 Gargoyle Software Inc.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * https://www.apache.org/licenses/LICENSE-2.0
8    *
9    * Unless required by applicable law or agreed to in writing, software
10   * distributed under the License is distributed on an "AS IS" BASIS,
11   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12   * See the License for the specific language governing permissions and
13   * limitations under the License.
14   */
15  package org.htmlunit.javascript.host.svg;
16  
17  import static org.htmlunit.javascript.configuration.SupportedBrowser.FF;
18  
19  import org.htmlunit.javascript.configuration.JsxClass;
20  import org.htmlunit.javascript.configuration.JsxConstant;
21  import org.htmlunit.javascript.configuration.JsxConstructor;
22  import org.htmlunit.svg.SvgTextPath;
23  
24  /**
25   * JavaScript host object for {@code SVGTextPathElement}.
26   *
27   * @author Ahmed Ashour
28   * @author Ronald Brill
29   *
30   * @see <a href="https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement">MDN Documentation</a>
31   */
32  @JsxClass(domClass = SvgTextPath.class)
33  public class SVGTextPathElement extends SVGTextContentElement {
34  
35      /** The constant {@code TEXTPATH_METHODTYPE_UNKNOWN}. */
36      @JsxConstant
37      public static final int TEXTPATH_METHODTYPE_UNKNOWN = 0;
38  
39      /** The constant {@code TEXTPATH_SPACINGTYPE_UNKNOWN}. */
40      @JsxConstant
41      public static final int TEXTPATH_SPACINGTYPE_UNKNOWN = 0;
42  
43      /** The constant {@code TEXTPATH_SIDETYPE_UNKNOWN}. */
44      @JsxConstant(FF)
45      public static final int TEXTPATH_SIDETYPE_UNKNOWN = 0;
46  
47      /** The constant {@code TEXTPATH_METHODTYPE_ALIGN}. */
48      @JsxConstant
49      public static final int TEXTPATH_METHODTYPE_ALIGN = 1;
50  
51      /** The constant {@code TEXTPATH_SPACINGTYPE_AUTO}. */
52      @JsxConstant
53      public static final int TEXTPATH_SPACINGTYPE_AUTO = 1;
54  
55      /** The constant {@code TEXTPATH_SIDETYPE_LEFT}. */
56      @JsxConstant(FF)
57      public static final int TEXTPATH_SIDETYPE_LEFT = 1;
58  
59      /** The constant {@code TEXTPATH_METHODTYPE_STRETCH}. */
60      @JsxConstant
61      public static final int TEXTPATH_METHODTYPE_STRETCH = 2;
62  
63      /** The constant {@code TEXTPATH_SPACINGTYPE_EXACT}. */
64      @JsxConstant
65      public static final int TEXTPATH_SPACINGTYPE_EXACT = 2;
66  
67      /** The constant {@code TEXTPATH_SIDETYPE_RIGHT}. */
68      @JsxConstant(FF)
69      public static final int TEXTPATH_SIDETYPE_RIGHT = 2;
70  
71      /**
72       * Creates an instance of this object.
73       */
74      @Override
75      @JsxConstructor
76      public void jsConstructor() {
77          super.jsConstructor();
78      }
79  }