2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-09-06 00:49:53 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* http://www.w3.org/TR/SVG11/
|
2020-02-20 00:58:31 +03:00
|
|
|
* https://svgwg.org/svg2-draft/types.html#InterfaceSVGLengthList
|
2012-09-06 00:49:53 +04:00
|
|
|
*
|
|
|
|
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
|
|
|
* liability, trademark and document use rules apply.
|
|
|
|
*/
|
|
|
|
|
2019-09-27 18:26:14 +03:00
|
|
|
[Exposed=Window]
|
2012-09-06 00:49:53 +04:00
|
|
|
interface SVGLengthList {
|
|
|
|
readonly attribute unsigned long numberOfItems;
|
|
|
|
[Throws]
|
|
|
|
void clear();
|
|
|
|
[Throws]
|
|
|
|
SVGLength initialize(SVGLength newItem);
|
|
|
|
[Throws]
|
|
|
|
getter SVGLength getItem(unsigned long index);
|
|
|
|
[Throws]
|
|
|
|
SVGLength insertItemBefore(SVGLength newItem, unsigned long index);
|
|
|
|
[Throws]
|
|
|
|
SVGLength replaceItem(SVGLength newItem, unsigned long index);
|
|
|
|
[Throws]
|
|
|
|
SVGLength removeItem(unsigned long index);
|
|
|
|
[Throws]
|
|
|
|
SVGLength appendItem(SVGLength newItem);
|
2020-02-20 00:58:31 +03:00
|
|
|
[Throws]
|
|
|
|
setter void (unsigned long index, SVGLength newItem);
|
2012-09-06 00:49:53 +04:00
|
|
|
|
|
|
|
// Mozilla-specific stuff
|
|
|
|
readonly attribute unsigned long length; // synonym for numberOfItems
|
|
|
|
};
|