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   * A JavaScript object for {@code SVGTextPathElement}.
26   *
27   * @author Ahmed Ashour
28   * @author Ronald Brill
29   */
30  @JsxClass(domClass = SvgTextPath.class)
31  public class SVGTextPathElement extends SVGTextContentElement {
32  
33      /** The constant {@code TEXTPATH_METHODTYPE_UNKNOWN}. */
34      @JsxConstant
35      public static final int TEXTPATH_METHODTYPE_UNKNOWN = 0;
36  
37      /** The constant {@code TEXTPATH_SPACINGTYPE_UNKNOWN}. */
38      @JsxConstant
39      public static final int TEXTPATH_SPACINGTYPE_UNKNOWN = 0;
40  
41      /** The constant {@code TEXTPATH_SIDETYPE_UNKNOWN}. */
42      @JsxConstant(FF)
43      public static final int TEXTPATH_SIDETYPE_UNKNOWN = 0;
44  
45      /** The constant {@code TEXTPATH_METHODTYPE_ALIGN}. */
46      @JsxConstant
47      public static final int TEXTPATH_METHODTYPE_ALIGN = 1;
48  
49      /** The constant {@code TEXTPATH_SPACINGTYPE_AUTO}. */
50      @JsxConstant
51      public static final int TEXTPATH_SPACINGTYPE_AUTO = 1;
52  
53      /** The constant {@code TEXTPATH_SIDETYPE_LEFT}. */
54      @JsxConstant(FF)
55      public static final int TEXTPATH_SIDETYPE_LEFT = 1;
56  
57      /** The constant {@code TEXTPATH_METHODTYPE_STRETCH}. */
58      @JsxConstant
59      public static final int TEXTPATH_METHODTYPE_STRETCH = 2;
60  
61      /** The constant {@code TEXTPATH_SPACINGTYPE_EXACT}. */
62      @JsxConstant
63      public static final int TEXTPATH_SPACINGTYPE_EXACT = 2;
64  
65      /** The constant {@code TEXTPATH_SIDETYPE_RIGHT}. */
66      @JsxConstant(FF)
67      public static final int TEXTPATH_SIDETYPE_RIGHT = 2;
68  
69      /**
70       * Creates an instance.
71       */
72      @Override
73      @JsxConstructor
74      public void jsConstructor() {
75          super.jsConstructor();
76      }
77  }