SVGElement.js 97 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157
  1. "use strict";
  2. const conversions = require("webidl-conversions");
  3. const utils = require("./utils.js");
  4. const create_SVGAnimatedString = require("./SVGAnimatedString.js").create;
  5. const EventHandlerNonNull = require("./EventHandlerNonNull.js");
  6. const OnErrorEventHandlerNonNull = require("./OnErrorEventHandlerNonNull.js");
  7. const ceReactionsPreSteps_jsdom_living_helpers_custom_elements =
  8. require("../../jsdom/living/helpers/custom-elements.js").ceReactionsPreSteps;
  9. const ceReactionsPostSteps_jsdom_living_helpers_custom_elements =
  10. require("../../jsdom/living/helpers/custom-elements.js").ceReactionsPostSteps;
  11. const implSymbol = utils.implSymbol;
  12. const ctorRegistrySymbol = utils.ctorRegistrySymbol;
  13. const Element = require("./Element.js");
  14. const interfaceName = "SVGElement";
  15. exports.is = value => {
  16. return utils.isObject(value) && Object.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
  17. };
  18. exports.isImpl = value => {
  19. return utils.isObject(value) && value instanceof Impl.implementation;
  20. };
  21. exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
  22. if (exports.is(value)) {
  23. return utils.implForWrapper(value);
  24. }
  25. throw new globalObject.TypeError(`${context} is not of type 'SVGElement'.`);
  26. };
  27. function makeWrapper(globalObject, newTarget) {
  28. let proto;
  29. if (newTarget !== undefined) {
  30. proto = newTarget.prototype;
  31. }
  32. if (!utils.isObject(proto)) {
  33. proto = globalObject[ctorRegistrySymbol]["SVGElement"].prototype;
  34. }
  35. return Object.create(proto);
  36. }
  37. exports.create = (globalObject, constructorArgs, privateData) => {
  38. const wrapper = makeWrapper(globalObject);
  39. return exports.setup(wrapper, globalObject, constructorArgs, privateData);
  40. };
  41. exports.createImpl = (globalObject, constructorArgs, privateData) => {
  42. const wrapper = exports.create(globalObject, constructorArgs, privateData);
  43. return utils.implForWrapper(wrapper);
  44. };
  45. exports._internalSetup = (wrapper, globalObject) => {
  46. Element._internalSetup(wrapper, globalObject);
  47. };
  48. exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
  49. privateData.wrapper = wrapper;
  50. exports._internalSetup(wrapper, globalObject);
  51. Object.defineProperty(wrapper, implSymbol, {
  52. value: new Impl.implementation(globalObject, constructorArgs, privateData),
  53. configurable: true
  54. });
  55. wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
  56. if (Impl.init) {
  57. Impl.init(wrapper[implSymbol]);
  58. }
  59. return wrapper;
  60. };
  61. exports.new = (globalObject, newTarget) => {
  62. const wrapper = makeWrapper(globalObject, newTarget);
  63. exports._internalSetup(wrapper, globalObject);
  64. Object.defineProperty(wrapper, implSymbol, {
  65. value: Object.create(Impl.implementation.prototype),
  66. configurable: true
  67. });
  68. wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
  69. if (Impl.init) {
  70. Impl.init(wrapper[implSymbol]);
  71. }
  72. return wrapper[implSymbol];
  73. };
  74. const exposed = new Set(["Window"]);
  75. exports.install = (globalObject, globalNames) => {
  76. if (!globalNames.some(globalName => exposed.has(globalName))) {
  77. return;
  78. }
  79. const ctorRegistry = utils.initCtorRegistry(globalObject);
  80. class SVGElement extends globalObject.Element {
  81. constructor() {
  82. throw new globalObject.TypeError("Illegal constructor");
  83. }
  84. focus() {
  85. const esValue = this !== null && this !== undefined ? this : globalObject;
  86. if (!exports.is(esValue)) {
  87. throw new globalObject.TypeError("'focus' called on an object that is not a valid instance of SVGElement.");
  88. }
  89. return esValue[implSymbol].focus();
  90. }
  91. blur() {
  92. const esValue = this !== null && this !== undefined ? this : globalObject;
  93. if (!exports.is(esValue)) {
  94. throw new globalObject.TypeError("'blur' called on an object that is not a valid instance of SVGElement.");
  95. }
  96. return esValue[implSymbol].blur();
  97. }
  98. get className() {
  99. const esValue = this !== null && this !== undefined ? this : globalObject;
  100. if (!exports.is(esValue)) {
  101. throw new globalObject.TypeError(
  102. "'get className' called on an object that is not a valid instance of SVGElement."
  103. );
  104. }
  105. return utils.getSameObject(this, "className", () => {
  106. return create_SVGAnimatedString(globalObject, [], {
  107. element: esValue[implSymbol],
  108. attribute: "class"
  109. });
  110. });
  111. }
  112. get ownerSVGElement() {
  113. const esValue = this !== null && this !== undefined ? this : globalObject;
  114. if (!exports.is(esValue)) {
  115. throw new globalObject.TypeError(
  116. "'get ownerSVGElement' called on an object that is not a valid instance of SVGElement."
  117. );
  118. }
  119. return utils.tryWrapperForImpl(esValue[implSymbol]["ownerSVGElement"]);
  120. }
  121. get viewportElement() {
  122. const esValue = this !== null && this !== undefined ? this : globalObject;
  123. if (!exports.is(esValue)) {
  124. throw new globalObject.TypeError(
  125. "'get viewportElement' called on an object that is not a valid instance of SVGElement."
  126. );
  127. }
  128. return utils.tryWrapperForImpl(esValue[implSymbol]["viewportElement"]);
  129. }
  130. get style() {
  131. const esValue = this !== null && this !== undefined ? this : globalObject;
  132. if (!exports.is(esValue)) {
  133. throw new globalObject.TypeError("'get style' called on an object that is not a valid instance of SVGElement.");
  134. }
  135. return utils.getSameObject(this, "style", () => {
  136. return utils.tryWrapperForImpl(esValue[implSymbol]["style"]);
  137. });
  138. }
  139. set style(V) {
  140. const esValue = this !== null && this !== undefined ? this : globalObject;
  141. if (!exports.is(esValue)) {
  142. throw new globalObject.TypeError("'set style' called on an object that is not a valid instance of SVGElement.");
  143. }
  144. const Q = esValue["style"];
  145. if (!utils.isObject(Q)) {
  146. throw new globalObject.TypeError("Property 'style' is not an object");
  147. }
  148. Reflect.set(Q, "cssText", V);
  149. }
  150. get onabort() {
  151. const esValue = this !== null && this !== undefined ? this : globalObject;
  152. if (!exports.is(esValue)) {
  153. throw new globalObject.TypeError(
  154. "'get onabort' called on an object that is not a valid instance of SVGElement."
  155. );
  156. }
  157. return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
  158. }
  159. set onabort(V) {
  160. const esValue = this !== null && this !== undefined ? this : globalObject;
  161. if (!exports.is(esValue)) {
  162. throw new globalObject.TypeError(
  163. "'set onabort' called on an object that is not a valid instance of SVGElement."
  164. );
  165. }
  166. if (!utils.isObject(V)) {
  167. V = null;
  168. } else {
  169. V = EventHandlerNonNull.convert(globalObject, V, {
  170. context: "Failed to set the 'onabort' property on 'SVGElement': The provided value"
  171. });
  172. }
  173. esValue[implSymbol]["onabort"] = V;
  174. }
  175. get onauxclick() {
  176. const esValue = this !== null && this !== undefined ? this : globalObject;
  177. if (!exports.is(esValue)) {
  178. throw new globalObject.TypeError(
  179. "'get onauxclick' called on an object that is not a valid instance of SVGElement."
  180. );
  181. }
  182. return utils.tryWrapperForImpl(esValue[implSymbol]["onauxclick"]);
  183. }
  184. set onauxclick(V) {
  185. const esValue = this !== null && this !== undefined ? this : globalObject;
  186. if (!exports.is(esValue)) {
  187. throw new globalObject.TypeError(
  188. "'set onauxclick' called on an object that is not a valid instance of SVGElement."
  189. );
  190. }
  191. if (!utils.isObject(V)) {
  192. V = null;
  193. } else {
  194. V = EventHandlerNonNull.convert(globalObject, V, {
  195. context: "Failed to set the 'onauxclick' property on 'SVGElement': The provided value"
  196. });
  197. }
  198. esValue[implSymbol]["onauxclick"] = V;
  199. }
  200. get onbeforeinput() {
  201. const esValue = this !== null && this !== undefined ? this : globalObject;
  202. if (!exports.is(esValue)) {
  203. throw new globalObject.TypeError(
  204. "'get onbeforeinput' called on an object that is not a valid instance of SVGElement."
  205. );
  206. }
  207. return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeinput"]);
  208. }
  209. set onbeforeinput(V) {
  210. const esValue = this !== null && this !== undefined ? this : globalObject;
  211. if (!exports.is(esValue)) {
  212. throw new globalObject.TypeError(
  213. "'set onbeforeinput' called on an object that is not a valid instance of SVGElement."
  214. );
  215. }
  216. if (!utils.isObject(V)) {
  217. V = null;
  218. } else {
  219. V = EventHandlerNonNull.convert(globalObject, V, {
  220. context: "Failed to set the 'onbeforeinput' property on 'SVGElement': The provided value"
  221. });
  222. }
  223. esValue[implSymbol]["onbeforeinput"] = V;
  224. }
  225. get onbeforematch() {
  226. const esValue = this !== null && this !== undefined ? this : globalObject;
  227. if (!exports.is(esValue)) {
  228. throw new globalObject.TypeError(
  229. "'get onbeforematch' called on an object that is not a valid instance of SVGElement."
  230. );
  231. }
  232. return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforematch"]);
  233. }
  234. set onbeforematch(V) {
  235. const esValue = this !== null && this !== undefined ? this : globalObject;
  236. if (!exports.is(esValue)) {
  237. throw new globalObject.TypeError(
  238. "'set onbeforematch' called on an object that is not a valid instance of SVGElement."
  239. );
  240. }
  241. if (!utils.isObject(V)) {
  242. V = null;
  243. } else {
  244. V = EventHandlerNonNull.convert(globalObject, V, {
  245. context: "Failed to set the 'onbeforematch' property on 'SVGElement': The provided value"
  246. });
  247. }
  248. esValue[implSymbol]["onbeforematch"] = V;
  249. }
  250. get onbeforetoggle() {
  251. const esValue = this !== null && this !== undefined ? this : globalObject;
  252. if (!exports.is(esValue)) {
  253. throw new globalObject.TypeError(
  254. "'get onbeforetoggle' called on an object that is not a valid instance of SVGElement."
  255. );
  256. }
  257. return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforetoggle"]);
  258. }
  259. set onbeforetoggle(V) {
  260. const esValue = this !== null && this !== undefined ? this : globalObject;
  261. if (!exports.is(esValue)) {
  262. throw new globalObject.TypeError(
  263. "'set onbeforetoggle' called on an object that is not a valid instance of SVGElement."
  264. );
  265. }
  266. if (!utils.isObject(V)) {
  267. V = null;
  268. } else {
  269. V = EventHandlerNonNull.convert(globalObject, V, {
  270. context: "Failed to set the 'onbeforetoggle' property on 'SVGElement': The provided value"
  271. });
  272. }
  273. esValue[implSymbol]["onbeforetoggle"] = V;
  274. }
  275. get onblur() {
  276. const esValue = this !== null && this !== undefined ? this : globalObject;
  277. if (!exports.is(esValue)) {
  278. throw new globalObject.TypeError(
  279. "'get onblur' called on an object that is not a valid instance of SVGElement."
  280. );
  281. }
  282. return utils.tryWrapperForImpl(esValue[implSymbol]["onblur"]);
  283. }
  284. set onblur(V) {
  285. const esValue = this !== null && this !== undefined ? this : globalObject;
  286. if (!exports.is(esValue)) {
  287. throw new globalObject.TypeError(
  288. "'set onblur' called on an object that is not a valid instance of SVGElement."
  289. );
  290. }
  291. if (!utils.isObject(V)) {
  292. V = null;
  293. } else {
  294. V = EventHandlerNonNull.convert(globalObject, V, {
  295. context: "Failed to set the 'onblur' property on 'SVGElement': The provided value"
  296. });
  297. }
  298. esValue[implSymbol]["onblur"] = V;
  299. }
  300. get oncancel() {
  301. const esValue = this !== null && this !== undefined ? this : globalObject;
  302. if (!exports.is(esValue)) {
  303. throw new globalObject.TypeError(
  304. "'get oncancel' called on an object that is not a valid instance of SVGElement."
  305. );
  306. }
  307. return utils.tryWrapperForImpl(esValue[implSymbol]["oncancel"]);
  308. }
  309. set oncancel(V) {
  310. const esValue = this !== null && this !== undefined ? this : globalObject;
  311. if (!exports.is(esValue)) {
  312. throw new globalObject.TypeError(
  313. "'set oncancel' called on an object that is not a valid instance of SVGElement."
  314. );
  315. }
  316. if (!utils.isObject(V)) {
  317. V = null;
  318. } else {
  319. V = EventHandlerNonNull.convert(globalObject, V, {
  320. context: "Failed to set the 'oncancel' property on 'SVGElement': The provided value"
  321. });
  322. }
  323. esValue[implSymbol]["oncancel"] = V;
  324. }
  325. get oncanplay() {
  326. const esValue = this !== null && this !== undefined ? this : globalObject;
  327. if (!exports.is(esValue)) {
  328. throw new globalObject.TypeError(
  329. "'get oncanplay' called on an object that is not a valid instance of SVGElement."
  330. );
  331. }
  332. return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplay"]);
  333. }
  334. set oncanplay(V) {
  335. const esValue = this !== null && this !== undefined ? this : globalObject;
  336. if (!exports.is(esValue)) {
  337. throw new globalObject.TypeError(
  338. "'set oncanplay' called on an object that is not a valid instance of SVGElement."
  339. );
  340. }
  341. if (!utils.isObject(V)) {
  342. V = null;
  343. } else {
  344. V = EventHandlerNonNull.convert(globalObject, V, {
  345. context: "Failed to set the 'oncanplay' property on 'SVGElement': The provided value"
  346. });
  347. }
  348. esValue[implSymbol]["oncanplay"] = V;
  349. }
  350. get oncanplaythrough() {
  351. const esValue = this !== null && this !== undefined ? this : globalObject;
  352. if (!exports.is(esValue)) {
  353. throw new globalObject.TypeError(
  354. "'get oncanplaythrough' called on an object that is not a valid instance of SVGElement."
  355. );
  356. }
  357. return utils.tryWrapperForImpl(esValue[implSymbol]["oncanplaythrough"]);
  358. }
  359. set oncanplaythrough(V) {
  360. const esValue = this !== null && this !== undefined ? this : globalObject;
  361. if (!exports.is(esValue)) {
  362. throw new globalObject.TypeError(
  363. "'set oncanplaythrough' called on an object that is not a valid instance of SVGElement."
  364. );
  365. }
  366. if (!utils.isObject(V)) {
  367. V = null;
  368. } else {
  369. V = EventHandlerNonNull.convert(globalObject, V, {
  370. context: "Failed to set the 'oncanplaythrough' property on 'SVGElement': The provided value"
  371. });
  372. }
  373. esValue[implSymbol]["oncanplaythrough"] = V;
  374. }
  375. get onchange() {
  376. const esValue = this !== null && this !== undefined ? this : globalObject;
  377. if (!exports.is(esValue)) {
  378. throw new globalObject.TypeError(
  379. "'get onchange' called on an object that is not a valid instance of SVGElement."
  380. );
  381. }
  382. return utils.tryWrapperForImpl(esValue[implSymbol]["onchange"]);
  383. }
  384. set onchange(V) {
  385. const esValue = this !== null && this !== undefined ? this : globalObject;
  386. if (!exports.is(esValue)) {
  387. throw new globalObject.TypeError(
  388. "'set onchange' called on an object that is not a valid instance of SVGElement."
  389. );
  390. }
  391. if (!utils.isObject(V)) {
  392. V = null;
  393. } else {
  394. V = EventHandlerNonNull.convert(globalObject, V, {
  395. context: "Failed to set the 'onchange' property on 'SVGElement': The provided value"
  396. });
  397. }
  398. esValue[implSymbol]["onchange"] = V;
  399. }
  400. get onclick() {
  401. const esValue = this !== null && this !== undefined ? this : globalObject;
  402. if (!exports.is(esValue)) {
  403. throw new globalObject.TypeError(
  404. "'get onclick' called on an object that is not a valid instance of SVGElement."
  405. );
  406. }
  407. return utils.tryWrapperForImpl(esValue[implSymbol]["onclick"]);
  408. }
  409. set onclick(V) {
  410. const esValue = this !== null && this !== undefined ? this : globalObject;
  411. if (!exports.is(esValue)) {
  412. throw new globalObject.TypeError(
  413. "'set onclick' called on an object that is not a valid instance of SVGElement."
  414. );
  415. }
  416. if (!utils.isObject(V)) {
  417. V = null;
  418. } else {
  419. V = EventHandlerNonNull.convert(globalObject, V, {
  420. context: "Failed to set the 'onclick' property on 'SVGElement': The provided value"
  421. });
  422. }
  423. esValue[implSymbol]["onclick"] = V;
  424. }
  425. get onclose() {
  426. const esValue = this !== null && this !== undefined ? this : globalObject;
  427. if (!exports.is(esValue)) {
  428. throw new globalObject.TypeError(
  429. "'get onclose' called on an object that is not a valid instance of SVGElement."
  430. );
  431. }
  432. return utils.tryWrapperForImpl(esValue[implSymbol]["onclose"]);
  433. }
  434. set onclose(V) {
  435. const esValue = this !== null && this !== undefined ? this : globalObject;
  436. if (!exports.is(esValue)) {
  437. throw new globalObject.TypeError(
  438. "'set onclose' called on an object that is not a valid instance of SVGElement."
  439. );
  440. }
  441. if (!utils.isObject(V)) {
  442. V = null;
  443. } else {
  444. V = EventHandlerNonNull.convert(globalObject, V, {
  445. context: "Failed to set the 'onclose' property on 'SVGElement': The provided value"
  446. });
  447. }
  448. esValue[implSymbol]["onclose"] = V;
  449. }
  450. get oncontextlost() {
  451. const esValue = this !== null && this !== undefined ? this : globalObject;
  452. if (!exports.is(esValue)) {
  453. throw new globalObject.TypeError(
  454. "'get oncontextlost' called on an object that is not a valid instance of SVGElement."
  455. );
  456. }
  457. return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextlost"]);
  458. }
  459. set oncontextlost(V) {
  460. const esValue = this !== null && this !== undefined ? this : globalObject;
  461. if (!exports.is(esValue)) {
  462. throw new globalObject.TypeError(
  463. "'set oncontextlost' called on an object that is not a valid instance of SVGElement."
  464. );
  465. }
  466. if (!utils.isObject(V)) {
  467. V = null;
  468. } else {
  469. V = EventHandlerNonNull.convert(globalObject, V, {
  470. context: "Failed to set the 'oncontextlost' property on 'SVGElement': The provided value"
  471. });
  472. }
  473. esValue[implSymbol]["oncontextlost"] = V;
  474. }
  475. get oncontextmenu() {
  476. const esValue = this !== null && this !== undefined ? this : globalObject;
  477. if (!exports.is(esValue)) {
  478. throw new globalObject.TypeError(
  479. "'get oncontextmenu' called on an object that is not a valid instance of SVGElement."
  480. );
  481. }
  482. return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextmenu"]);
  483. }
  484. set oncontextmenu(V) {
  485. const esValue = this !== null && this !== undefined ? this : globalObject;
  486. if (!exports.is(esValue)) {
  487. throw new globalObject.TypeError(
  488. "'set oncontextmenu' called on an object that is not a valid instance of SVGElement."
  489. );
  490. }
  491. if (!utils.isObject(V)) {
  492. V = null;
  493. } else {
  494. V = EventHandlerNonNull.convert(globalObject, V, {
  495. context: "Failed to set the 'oncontextmenu' property on 'SVGElement': The provided value"
  496. });
  497. }
  498. esValue[implSymbol]["oncontextmenu"] = V;
  499. }
  500. get oncontextrestored() {
  501. const esValue = this !== null && this !== undefined ? this : globalObject;
  502. if (!exports.is(esValue)) {
  503. throw new globalObject.TypeError(
  504. "'get oncontextrestored' called on an object that is not a valid instance of SVGElement."
  505. );
  506. }
  507. return utils.tryWrapperForImpl(esValue[implSymbol]["oncontextrestored"]);
  508. }
  509. set oncontextrestored(V) {
  510. const esValue = this !== null && this !== undefined ? this : globalObject;
  511. if (!exports.is(esValue)) {
  512. throw new globalObject.TypeError(
  513. "'set oncontextrestored' called on an object that is not a valid instance of SVGElement."
  514. );
  515. }
  516. if (!utils.isObject(V)) {
  517. V = null;
  518. } else {
  519. V = EventHandlerNonNull.convert(globalObject, V, {
  520. context: "Failed to set the 'oncontextrestored' property on 'SVGElement': The provided value"
  521. });
  522. }
  523. esValue[implSymbol]["oncontextrestored"] = V;
  524. }
  525. get oncopy() {
  526. const esValue = this !== null && this !== undefined ? this : globalObject;
  527. if (!exports.is(esValue)) {
  528. throw new globalObject.TypeError(
  529. "'get oncopy' called on an object that is not a valid instance of SVGElement."
  530. );
  531. }
  532. return utils.tryWrapperForImpl(esValue[implSymbol]["oncopy"]);
  533. }
  534. set oncopy(V) {
  535. const esValue = this !== null && this !== undefined ? this : globalObject;
  536. if (!exports.is(esValue)) {
  537. throw new globalObject.TypeError(
  538. "'set oncopy' called on an object that is not a valid instance of SVGElement."
  539. );
  540. }
  541. if (!utils.isObject(V)) {
  542. V = null;
  543. } else {
  544. V = EventHandlerNonNull.convert(globalObject, V, {
  545. context: "Failed to set the 'oncopy' property on 'SVGElement': The provided value"
  546. });
  547. }
  548. esValue[implSymbol]["oncopy"] = V;
  549. }
  550. get oncuechange() {
  551. const esValue = this !== null && this !== undefined ? this : globalObject;
  552. if (!exports.is(esValue)) {
  553. throw new globalObject.TypeError(
  554. "'get oncuechange' called on an object that is not a valid instance of SVGElement."
  555. );
  556. }
  557. return utils.tryWrapperForImpl(esValue[implSymbol]["oncuechange"]);
  558. }
  559. set oncuechange(V) {
  560. const esValue = this !== null && this !== undefined ? this : globalObject;
  561. if (!exports.is(esValue)) {
  562. throw new globalObject.TypeError(
  563. "'set oncuechange' called on an object that is not a valid instance of SVGElement."
  564. );
  565. }
  566. if (!utils.isObject(V)) {
  567. V = null;
  568. } else {
  569. V = EventHandlerNonNull.convert(globalObject, V, {
  570. context: "Failed to set the 'oncuechange' property on 'SVGElement': The provided value"
  571. });
  572. }
  573. esValue[implSymbol]["oncuechange"] = V;
  574. }
  575. get oncut() {
  576. const esValue = this !== null && this !== undefined ? this : globalObject;
  577. if (!exports.is(esValue)) {
  578. throw new globalObject.TypeError("'get oncut' called on an object that is not a valid instance of SVGElement.");
  579. }
  580. return utils.tryWrapperForImpl(esValue[implSymbol]["oncut"]);
  581. }
  582. set oncut(V) {
  583. const esValue = this !== null && this !== undefined ? this : globalObject;
  584. if (!exports.is(esValue)) {
  585. throw new globalObject.TypeError("'set oncut' called on an object that is not a valid instance of SVGElement.");
  586. }
  587. if (!utils.isObject(V)) {
  588. V = null;
  589. } else {
  590. V = EventHandlerNonNull.convert(globalObject, V, {
  591. context: "Failed to set the 'oncut' property on 'SVGElement': The provided value"
  592. });
  593. }
  594. esValue[implSymbol]["oncut"] = V;
  595. }
  596. get ondblclick() {
  597. const esValue = this !== null && this !== undefined ? this : globalObject;
  598. if (!exports.is(esValue)) {
  599. throw new globalObject.TypeError(
  600. "'get ondblclick' called on an object that is not a valid instance of SVGElement."
  601. );
  602. }
  603. return utils.tryWrapperForImpl(esValue[implSymbol]["ondblclick"]);
  604. }
  605. set ondblclick(V) {
  606. const esValue = this !== null && this !== undefined ? this : globalObject;
  607. if (!exports.is(esValue)) {
  608. throw new globalObject.TypeError(
  609. "'set ondblclick' called on an object that is not a valid instance of SVGElement."
  610. );
  611. }
  612. if (!utils.isObject(V)) {
  613. V = null;
  614. } else {
  615. V = EventHandlerNonNull.convert(globalObject, V, {
  616. context: "Failed to set the 'ondblclick' property on 'SVGElement': The provided value"
  617. });
  618. }
  619. esValue[implSymbol]["ondblclick"] = V;
  620. }
  621. get ondrag() {
  622. const esValue = this !== null && this !== undefined ? this : globalObject;
  623. if (!exports.is(esValue)) {
  624. throw new globalObject.TypeError(
  625. "'get ondrag' called on an object that is not a valid instance of SVGElement."
  626. );
  627. }
  628. return utils.tryWrapperForImpl(esValue[implSymbol]["ondrag"]);
  629. }
  630. set ondrag(V) {
  631. const esValue = this !== null && this !== undefined ? this : globalObject;
  632. if (!exports.is(esValue)) {
  633. throw new globalObject.TypeError(
  634. "'set ondrag' called on an object that is not a valid instance of SVGElement."
  635. );
  636. }
  637. if (!utils.isObject(V)) {
  638. V = null;
  639. } else {
  640. V = EventHandlerNonNull.convert(globalObject, V, {
  641. context: "Failed to set the 'ondrag' property on 'SVGElement': The provided value"
  642. });
  643. }
  644. esValue[implSymbol]["ondrag"] = V;
  645. }
  646. get ondragend() {
  647. const esValue = this !== null && this !== undefined ? this : globalObject;
  648. if (!exports.is(esValue)) {
  649. throw new globalObject.TypeError(
  650. "'get ondragend' called on an object that is not a valid instance of SVGElement."
  651. );
  652. }
  653. return utils.tryWrapperForImpl(esValue[implSymbol]["ondragend"]);
  654. }
  655. set ondragend(V) {
  656. const esValue = this !== null && this !== undefined ? this : globalObject;
  657. if (!exports.is(esValue)) {
  658. throw new globalObject.TypeError(
  659. "'set ondragend' called on an object that is not a valid instance of SVGElement."
  660. );
  661. }
  662. if (!utils.isObject(V)) {
  663. V = null;
  664. } else {
  665. V = EventHandlerNonNull.convert(globalObject, V, {
  666. context: "Failed to set the 'ondragend' property on 'SVGElement': The provided value"
  667. });
  668. }
  669. esValue[implSymbol]["ondragend"] = V;
  670. }
  671. get ondragenter() {
  672. const esValue = this !== null && this !== undefined ? this : globalObject;
  673. if (!exports.is(esValue)) {
  674. throw new globalObject.TypeError(
  675. "'get ondragenter' called on an object that is not a valid instance of SVGElement."
  676. );
  677. }
  678. return utils.tryWrapperForImpl(esValue[implSymbol]["ondragenter"]);
  679. }
  680. set ondragenter(V) {
  681. const esValue = this !== null && this !== undefined ? this : globalObject;
  682. if (!exports.is(esValue)) {
  683. throw new globalObject.TypeError(
  684. "'set ondragenter' called on an object that is not a valid instance of SVGElement."
  685. );
  686. }
  687. if (!utils.isObject(V)) {
  688. V = null;
  689. } else {
  690. V = EventHandlerNonNull.convert(globalObject, V, {
  691. context: "Failed to set the 'ondragenter' property on 'SVGElement': The provided value"
  692. });
  693. }
  694. esValue[implSymbol]["ondragenter"] = V;
  695. }
  696. get ondragleave() {
  697. const esValue = this !== null && this !== undefined ? this : globalObject;
  698. if (!exports.is(esValue)) {
  699. throw new globalObject.TypeError(
  700. "'get ondragleave' called on an object that is not a valid instance of SVGElement."
  701. );
  702. }
  703. return utils.tryWrapperForImpl(esValue[implSymbol]["ondragleave"]);
  704. }
  705. set ondragleave(V) {
  706. const esValue = this !== null && this !== undefined ? this : globalObject;
  707. if (!exports.is(esValue)) {
  708. throw new globalObject.TypeError(
  709. "'set ondragleave' called on an object that is not a valid instance of SVGElement."
  710. );
  711. }
  712. if (!utils.isObject(V)) {
  713. V = null;
  714. } else {
  715. V = EventHandlerNonNull.convert(globalObject, V, {
  716. context: "Failed to set the 'ondragleave' property on 'SVGElement': The provided value"
  717. });
  718. }
  719. esValue[implSymbol]["ondragleave"] = V;
  720. }
  721. get ondragover() {
  722. const esValue = this !== null && this !== undefined ? this : globalObject;
  723. if (!exports.is(esValue)) {
  724. throw new globalObject.TypeError(
  725. "'get ondragover' called on an object that is not a valid instance of SVGElement."
  726. );
  727. }
  728. return utils.tryWrapperForImpl(esValue[implSymbol]["ondragover"]);
  729. }
  730. set ondragover(V) {
  731. const esValue = this !== null && this !== undefined ? this : globalObject;
  732. if (!exports.is(esValue)) {
  733. throw new globalObject.TypeError(
  734. "'set ondragover' called on an object that is not a valid instance of SVGElement."
  735. );
  736. }
  737. if (!utils.isObject(V)) {
  738. V = null;
  739. } else {
  740. V = EventHandlerNonNull.convert(globalObject, V, {
  741. context: "Failed to set the 'ondragover' property on 'SVGElement': The provided value"
  742. });
  743. }
  744. esValue[implSymbol]["ondragover"] = V;
  745. }
  746. get ondragstart() {
  747. const esValue = this !== null && this !== undefined ? this : globalObject;
  748. if (!exports.is(esValue)) {
  749. throw new globalObject.TypeError(
  750. "'get ondragstart' called on an object that is not a valid instance of SVGElement."
  751. );
  752. }
  753. return utils.tryWrapperForImpl(esValue[implSymbol]["ondragstart"]);
  754. }
  755. set ondragstart(V) {
  756. const esValue = this !== null && this !== undefined ? this : globalObject;
  757. if (!exports.is(esValue)) {
  758. throw new globalObject.TypeError(
  759. "'set ondragstart' called on an object that is not a valid instance of SVGElement."
  760. );
  761. }
  762. if (!utils.isObject(V)) {
  763. V = null;
  764. } else {
  765. V = EventHandlerNonNull.convert(globalObject, V, {
  766. context: "Failed to set the 'ondragstart' property on 'SVGElement': The provided value"
  767. });
  768. }
  769. esValue[implSymbol]["ondragstart"] = V;
  770. }
  771. get ondrop() {
  772. const esValue = this !== null && this !== undefined ? this : globalObject;
  773. if (!exports.is(esValue)) {
  774. throw new globalObject.TypeError(
  775. "'get ondrop' called on an object that is not a valid instance of SVGElement."
  776. );
  777. }
  778. return utils.tryWrapperForImpl(esValue[implSymbol]["ondrop"]);
  779. }
  780. set ondrop(V) {
  781. const esValue = this !== null && this !== undefined ? this : globalObject;
  782. if (!exports.is(esValue)) {
  783. throw new globalObject.TypeError(
  784. "'set ondrop' called on an object that is not a valid instance of SVGElement."
  785. );
  786. }
  787. if (!utils.isObject(V)) {
  788. V = null;
  789. } else {
  790. V = EventHandlerNonNull.convert(globalObject, V, {
  791. context: "Failed to set the 'ondrop' property on 'SVGElement': The provided value"
  792. });
  793. }
  794. esValue[implSymbol]["ondrop"] = V;
  795. }
  796. get ondurationchange() {
  797. const esValue = this !== null && this !== undefined ? this : globalObject;
  798. if (!exports.is(esValue)) {
  799. throw new globalObject.TypeError(
  800. "'get ondurationchange' called on an object that is not a valid instance of SVGElement."
  801. );
  802. }
  803. return utils.tryWrapperForImpl(esValue[implSymbol]["ondurationchange"]);
  804. }
  805. set ondurationchange(V) {
  806. const esValue = this !== null && this !== undefined ? this : globalObject;
  807. if (!exports.is(esValue)) {
  808. throw new globalObject.TypeError(
  809. "'set ondurationchange' called on an object that is not a valid instance of SVGElement."
  810. );
  811. }
  812. if (!utils.isObject(V)) {
  813. V = null;
  814. } else {
  815. V = EventHandlerNonNull.convert(globalObject, V, {
  816. context: "Failed to set the 'ondurationchange' property on 'SVGElement': The provided value"
  817. });
  818. }
  819. esValue[implSymbol]["ondurationchange"] = V;
  820. }
  821. get onemptied() {
  822. const esValue = this !== null && this !== undefined ? this : globalObject;
  823. if (!exports.is(esValue)) {
  824. throw new globalObject.TypeError(
  825. "'get onemptied' called on an object that is not a valid instance of SVGElement."
  826. );
  827. }
  828. return utils.tryWrapperForImpl(esValue[implSymbol]["onemptied"]);
  829. }
  830. set onemptied(V) {
  831. const esValue = this !== null && this !== undefined ? this : globalObject;
  832. if (!exports.is(esValue)) {
  833. throw new globalObject.TypeError(
  834. "'set onemptied' called on an object that is not a valid instance of SVGElement."
  835. );
  836. }
  837. if (!utils.isObject(V)) {
  838. V = null;
  839. } else {
  840. V = EventHandlerNonNull.convert(globalObject, V, {
  841. context: "Failed to set the 'onemptied' property on 'SVGElement': The provided value"
  842. });
  843. }
  844. esValue[implSymbol]["onemptied"] = V;
  845. }
  846. get onended() {
  847. const esValue = this !== null && this !== undefined ? this : globalObject;
  848. if (!exports.is(esValue)) {
  849. throw new globalObject.TypeError(
  850. "'get onended' called on an object that is not a valid instance of SVGElement."
  851. );
  852. }
  853. return utils.tryWrapperForImpl(esValue[implSymbol]["onended"]);
  854. }
  855. set onended(V) {
  856. const esValue = this !== null && this !== undefined ? this : globalObject;
  857. if (!exports.is(esValue)) {
  858. throw new globalObject.TypeError(
  859. "'set onended' called on an object that is not a valid instance of SVGElement."
  860. );
  861. }
  862. if (!utils.isObject(V)) {
  863. V = null;
  864. } else {
  865. V = EventHandlerNonNull.convert(globalObject, V, {
  866. context: "Failed to set the 'onended' property on 'SVGElement': The provided value"
  867. });
  868. }
  869. esValue[implSymbol]["onended"] = V;
  870. }
  871. get onerror() {
  872. const esValue = this !== null && this !== undefined ? this : globalObject;
  873. if (!exports.is(esValue)) {
  874. throw new globalObject.TypeError(
  875. "'get onerror' called on an object that is not a valid instance of SVGElement."
  876. );
  877. }
  878. return utils.tryWrapperForImpl(esValue[implSymbol]["onerror"]);
  879. }
  880. set onerror(V) {
  881. const esValue = this !== null && this !== undefined ? this : globalObject;
  882. if (!exports.is(esValue)) {
  883. throw new globalObject.TypeError(
  884. "'set onerror' called on an object that is not a valid instance of SVGElement."
  885. );
  886. }
  887. if (!utils.isObject(V)) {
  888. V = null;
  889. } else {
  890. V = OnErrorEventHandlerNonNull.convert(globalObject, V, {
  891. context: "Failed to set the 'onerror' property on 'SVGElement': The provided value"
  892. });
  893. }
  894. esValue[implSymbol]["onerror"] = V;
  895. }
  896. get onfocus() {
  897. const esValue = this !== null && this !== undefined ? this : globalObject;
  898. if (!exports.is(esValue)) {
  899. throw new globalObject.TypeError(
  900. "'get onfocus' called on an object that is not a valid instance of SVGElement."
  901. );
  902. }
  903. return utils.tryWrapperForImpl(esValue[implSymbol]["onfocus"]);
  904. }
  905. set onfocus(V) {
  906. const esValue = this !== null && this !== undefined ? this : globalObject;
  907. if (!exports.is(esValue)) {
  908. throw new globalObject.TypeError(
  909. "'set onfocus' called on an object that is not a valid instance of SVGElement."
  910. );
  911. }
  912. if (!utils.isObject(V)) {
  913. V = null;
  914. } else {
  915. V = EventHandlerNonNull.convert(globalObject, V, {
  916. context: "Failed to set the 'onfocus' property on 'SVGElement': The provided value"
  917. });
  918. }
  919. esValue[implSymbol]["onfocus"] = V;
  920. }
  921. get onformdata() {
  922. const esValue = this !== null && this !== undefined ? this : globalObject;
  923. if (!exports.is(esValue)) {
  924. throw new globalObject.TypeError(
  925. "'get onformdata' called on an object that is not a valid instance of SVGElement."
  926. );
  927. }
  928. return utils.tryWrapperForImpl(esValue[implSymbol]["onformdata"]);
  929. }
  930. set onformdata(V) {
  931. const esValue = this !== null && this !== undefined ? this : globalObject;
  932. if (!exports.is(esValue)) {
  933. throw new globalObject.TypeError(
  934. "'set onformdata' called on an object that is not a valid instance of SVGElement."
  935. );
  936. }
  937. if (!utils.isObject(V)) {
  938. V = null;
  939. } else {
  940. V = EventHandlerNonNull.convert(globalObject, V, {
  941. context: "Failed to set the 'onformdata' property on 'SVGElement': The provided value"
  942. });
  943. }
  944. esValue[implSymbol]["onformdata"] = V;
  945. }
  946. get oninput() {
  947. const esValue = this !== null && this !== undefined ? this : globalObject;
  948. if (!exports.is(esValue)) {
  949. throw new globalObject.TypeError(
  950. "'get oninput' called on an object that is not a valid instance of SVGElement."
  951. );
  952. }
  953. return utils.tryWrapperForImpl(esValue[implSymbol]["oninput"]);
  954. }
  955. set oninput(V) {
  956. const esValue = this !== null && this !== undefined ? this : globalObject;
  957. if (!exports.is(esValue)) {
  958. throw new globalObject.TypeError(
  959. "'set oninput' called on an object that is not a valid instance of SVGElement."
  960. );
  961. }
  962. if (!utils.isObject(V)) {
  963. V = null;
  964. } else {
  965. V = EventHandlerNonNull.convert(globalObject, V, {
  966. context: "Failed to set the 'oninput' property on 'SVGElement': The provided value"
  967. });
  968. }
  969. esValue[implSymbol]["oninput"] = V;
  970. }
  971. get oninvalid() {
  972. const esValue = this !== null && this !== undefined ? this : globalObject;
  973. if (!exports.is(esValue)) {
  974. throw new globalObject.TypeError(
  975. "'get oninvalid' called on an object that is not a valid instance of SVGElement."
  976. );
  977. }
  978. return utils.tryWrapperForImpl(esValue[implSymbol]["oninvalid"]);
  979. }
  980. set oninvalid(V) {
  981. const esValue = this !== null && this !== undefined ? this : globalObject;
  982. if (!exports.is(esValue)) {
  983. throw new globalObject.TypeError(
  984. "'set oninvalid' called on an object that is not a valid instance of SVGElement."
  985. );
  986. }
  987. if (!utils.isObject(V)) {
  988. V = null;
  989. } else {
  990. V = EventHandlerNonNull.convert(globalObject, V, {
  991. context: "Failed to set the 'oninvalid' property on 'SVGElement': The provided value"
  992. });
  993. }
  994. esValue[implSymbol]["oninvalid"] = V;
  995. }
  996. get onkeydown() {
  997. const esValue = this !== null && this !== undefined ? this : globalObject;
  998. if (!exports.is(esValue)) {
  999. throw new globalObject.TypeError(
  1000. "'get onkeydown' called on an object that is not a valid instance of SVGElement."
  1001. );
  1002. }
  1003. return utils.tryWrapperForImpl(esValue[implSymbol]["onkeydown"]);
  1004. }
  1005. set onkeydown(V) {
  1006. const esValue = this !== null && this !== undefined ? this : globalObject;
  1007. if (!exports.is(esValue)) {
  1008. throw new globalObject.TypeError(
  1009. "'set onkeydown' called on an object that is not a valid instance of SVGElement."
  1010. );
  1011. }
  1012. if (!utils.isObject(V)) {
  1013. V = null;
  1014. } else {
  1015. V = EventHandlerNonNull.convert(globalObject, V, {
  1016. context: "Failed to set the 'onkeydown' property on 'SVGElement': The provided value"
  1017. });
  1018. }
  1019. esValue[implSymbol]["onkeydown"] = V;
  1020. }
  1021. get onkeypress() {
  1022. const esValue = this !== null && this !== undefined ? this : globalObject;
  1023. if (!exports.is(esValue)) {
  1024. throw new globalObject.TypeError(
  1025. "'get onkeypress' called on an object that is not a valid instance of SVGElement."
  1026. );
  1027. }
  1028. return utils.tryWrapperForImpl(esValue[implSymbol]["onkeypress"]);
  1029. }
  1030. set onkeypress(V) {
  1031. const esValue = this !== null && this !== undefined ? this : globalObject;
  1032. if (!exports.is(esValue)) {
  1033. throw new globalObject.TypeError(
  1034. "'set onkeypress' called on an object that is not a valid instance of SVGElement."
  1035. );
  1036. }
  1037. if (!utils.isObject(V)) {
  1038. V = null;
  1039. } else {
  1040. V = EventHandlerNonNull.convert(globalObject, V, {
  1041. context: "Failed to set the 'onkeypress' property on 'SVGElement': The provided value"
  1042. });
  1043. }
  1044. esValue[implSymbol]["onkeypress"] = V;
  1045. }
  1046. get onkeyup() {
  1047. const esValue = this !== null && this !== undefined ? this : globalObject;
  1048. if (!exports.is(esValue)) {
  1049. throw new globalObject.TypeError(
  1050. "'get onkeyup' called on an object that is not a valid instance of SVGElement."
  1051. );
  1052. }
  1053. return utils.tryWrapperForImpl(esValue[implSymbol]["onkeyup"]);
  1054. }
  1055. set onkeyup(V) {
  1056. const esValue = this !== null && this !== undefined ? this : globalObject;
  1057. if (!exports.is(esValue)) {
  1058. throw new globalObject.TypeError(
  1059. "'set onkeyup' called on an object that is not a valid instance of SVGElement."
  1060. );
  1061. }
  1062. if (!utils.isObject(V)) {
  1063. V = null;
  1064. } else {
  1065. V = EventHandlerNonNull.convert(globalObject, V, {
  1066. context: "Failed to set the 'onkeyup' property on 'SVGElement': The provided value"
  1067. });
  1068. }
  1069. esValue[implSymbol]["onkeyup"] = V;
  1070. }
  1071. get onload() {
  1072. const esValue = this !== null && this !== undefined ? this : globalObject;
  1073. if (!exports.is(esValue)) {
  1074. throw new globalObject.TypeError(
  1075. "'get onload' called on an object that is not a valid instance of SVGElement."
  1076. );
  1077. }
  1078. return utils.tryWrapperForImpl(esValue[implSymbol]["onload"]);
  1079. }
  1080. set onload(V) {
  1081. const esValue = this !== null && this !== undefined ? this : globalObject;
  1082. if (!exports.is(esValue)) {
  1083. throw new globalObject.TypeError(
  1084. "'set onload' called on an object that is not a valid instance of SVGElement."
  1085. );
  1086. }
  1087. if (!utils.isObject(V)) {
  1088. V = null;
  1089. } else {
  1090. V = EventHandlerNonNull.convert(globalObject, V, {
  1091. context: "Failed to set the 'onload' property on 'SVGElement': The provided value"
  1092. });
  1093. }
  1094. esValue[implSymbol]["onload"] = V;
  1095. }
  1096. get onloadeddata() {
  1097. const esValue = this !== null && this !== undefined ? this : globalObject;
  1098. if (!exports.is(esValue)) {
  1099. throw new globalObject.TypeError(
  1100. "'get onloadeddata' called on an object that is not a valid instance of SVGElement."
  1101. );
  1102. }
  1103. return utils.tryWrapperForImpl(esValue[implSymbol]["onloadeddata"]);
  1104. }
  1105. set onloadeddata(V) {
  1106. const esValue = this !== null && this !== undefined ? this : globalObject;
  1107. if (!exports.is(esValue)) {
  1108. throw new globalObject.TypeError(
  1109. "'set onloadeddata' called on an object that is not a valid instance of SVGElement."
  1110. );
  1111. }
  1112. if (!utils.isObject(V)) {
  1113. V = null;
  1114. } else {
  1115. V = EventHandlerNonNull.convert(globalObject, V, {
  1116. context: "Failed to set the 'onloadeddata' property on 'SVGElement': The provided value"
  1117. });
  1118. }
  1119. esValue[implSymbol]["onloadeddata"] = V;
  1120. }
  1121. get onloadedmetadata() {
  1122. const esValue = this !== null && this !== undefined ? this : globalObject;
  1123. if (!exports.is(esValue)) {
  1124. throw new globalObject.TypeError(
  1125. "'get onloadedmetadata' called on an object that is not a valid instance of SVGElement."
  1126. );
  1127. }
  1128. return utils.tryWrapperForImpl(esValue[implSymbol]["onloadedmetadata"]);
  1129. }
  1130. set onloadedmetadata(V) {
  1131. const esValue = this !== null && this !== undefined ? this : globalObject;
  1132. if (!exports.is(esValue)) {
  1133. throw new globalObject.TypeError(
  1134. "'set onloadedmetadata' called on an object that is not a valid instance of SVGElement."
  1135. );
  1136. }
  1137. if (!utils.isObject(V)) {
  1138. V = null;
  1139. } else {
  1140. V = EventHandlerNonNull.convert(globalObject, V, {
  1141. context: "Failed to set the 'onloadedmetadata' property on 'SVGElement': The provided value"
  1142. });
  1143. }
  1144. esValue[implSymbol]["onloadedmetadata"] = V;
  1145. }
  1146. get onloadstart() {
  1147. const esValue = this !== null && this !== undefined ? this : globalObject;
  1148. if (!exports.is(esValue)) {
  1149. throw new globalObject.TypeError(
  1150. "'get onloadstart' called on an object that is not a valid instance of SVGElement."
  1151. );
  1152. }
  1153. return utils.tryWrapperForImpl(esValue[implSymbol]["onloadstart"]);
  1154. }
  1155. set onloadstart(V) {
  1156. const esValue = this !== null && this !== undefined ? this : globalObject;
  1157. if (!exports.is(esValue)) {
  1158. throw new globalObject.TypeError(
  1159. "'set onloadstart' called on an object that is not a valid instance of SVGElement."
  1160. );
  1161. }
  1162. if (!utils.isObject(V)) {
  1163. V = null;
  1164. } else {
  1165. V = EventHandlerNonNull.convert(globalObject, V, {
  1166. context: "Failed to set the 'onloadstart' property on 'SVGElement': The provided value"
  1167. });
  1168. }
  1169. esValue[implSymbol]["onloadstart"] = V;
  1170. }
  1171. get onmousedown() {
  1172. const esValue = this !== null && this !== undefined ? this : globalObject;
  1173. if (!exports.is(esValue)) {
  1174. throw new globalObject.TypeError(
  1175. "'get onmousedown' called on an object that is not a valid instance of SVGElement."
  1176. );
  1177. }
  1178. return utils.tryWrapperForImpl(esValue[implSymbol]["onmousedown"]);
  1179. }
  1180. set onmousedown(V) {
  1181. const esValue = this !== null && this !== undefined ? this : globalObject;
  1182. if (!exports.is(esValue)) {
  1183. throw new globalObject.TypeError(
  1184. "'set onmousedown' called on an object that is not a valid instance of SVGElement."
  1185. );
  1186. }
  1187. if (!utils.isObject(V)) {
  1188. V = null;
  1189. } else {
  1190. V = EventHandlerNonNull.convert(globalObject, V, {
  1191. context: "Failed to set the 'onmousedown' property on 'SVGElement': The provided value"
  1192. });
  1193. }
  1194. esValue[implSymbol]["onmousedown"] = V;
  1195. }
  1196. get onmouseenter() {
  1197. const esValue = this !== null && this !== undefined ? this : globalObject;
  1198. if (!exports.is(esValue)) {
  1199. return;
  1200. }
  1201. return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseenter"]);
  1202. }
  1203. set onmouseenter(V) {
  1204. const esValue = this !== null && this !== undefined ? this : globalObject;
  1205. if (!exports.is(esValue)) {
  1206. return;
  1207. }
  1208. if (!utils.isObject(V)) {
  1209. V = null;
  1210. } else {
  1211. V = EventHandlerNonNull.convert(globalObject, V, {
  1212. context: "Failed to set the 'onmouseenter' property on 'SVGElement': The provided value"
  1213. });
  1214. }
  1215. esValue[implSymbol]["onmouseenter"] = V;
  1216. }
  1217. get onmouseleave() {
  1218. const esValue = this !== null && this !== undefined ? this : globalObject;
  1219. if (!exports.is(esValue)) {
  1220. return;
  1221. }
  1222. return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseleave"]);
  1223. }
  1224. set onmouseleave(V) {
  1225. const esValue = this !== null && this !== undefined ? this : globalObject;
  1226. if (!exports.is(esValue)) {
  1227. return;
  1228. }
  1229. if (!utils.isObject(V)) {
  1230. V = null;
  1231. } else {
  1232. V = EventHandlerNonNull.convert(globalObject, V, {
  1233. context: "Failed to set the 'onmouseleave' property on 'SVGElement': The provided value"
  1234. });
  1235. }
  1236. esValue[implSymbol]["onmouseleave"] = V;
  1237. }
  1238. get onmousemove() {
  1239. const esValue = this !== null && this !== undefined ? this : globalObject;
  1240. if (!exports.is(esValue)) {
  1241. throw new globalObject.TypeError(
  1242. "'get onmousemove' called on an object that is not a valid instance of SVGElement."
  1243. );
  1244. }
  1245. return utils.tryWrapperForImpl(esValue[implSymbol]["onmousemove"]);
  1246. }
  1247. set onmousemove(V) {
  1248. const esValue = this !== null && this !== undefined ? this : globalObject;
  1249. if (!exports.is(esValue)) {
  1250. throw new globalObject.TypeError(
  1251. "'set onmousemove' called on an object that is not a valid instance of SVGElement."
  1252. );
  1253. }
  1254. if (!utils.isObject(V)) {
  1255. V = null;
  1256. } else {
  1257. V = EventHandlerNonNull.convert(globalObject, V, {
  1258. context: "Failed to set the 'onmousemove' property on 'SVGElement': The provided value"
  1259. });
  1260. }
  1261. esValue[implSymbol]["onmousemove"] = V;
  1262. }
  1263. get onmouseout() {
  1264. const esValue = this !== null && this !== undefined ? this : globalObject;
  1265. if (!exports.is(esValue)) {
  1266. throw new globalObject.TypeError(
  1267. "'get onmouseout' called on an object that is not a valid instance of SVGElement."
  1268. );
  1269. }
  1270. return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseout"]);
  1271. }
  1272. set onmouseout(V) {
  1273. const esValue = this !== null && this !== undefined ? this : globalObject;
  1274. if (!exports.is(esValue)) {
  1275. throw new globalObject.TypeError(
  1276. "'set onmouseout' called on an object that is not a valid instance of SVGElement."
  1277. );
  1278. }
  1279. if (!utils.isObject(V)) {
  1280. V = null;
  1281. } else {
  1282. V = EventHandlerNonNull.convert(globalObject, V, {
  1283. context: "Failed to set the 'onmouseout' property on 'SVGElement': The provided value"
  1284. });
  1285. }
  1286. esValue[implSymbol]["onmouseout"] = V;
  1287. }
  1288. get onmouseover() {
  1289. const esValue = this !== null && this !== undefined ? this : globalObject;
  1290. if (!exports.is(esValue)) {
  1291. throw new globalObject.TypeError(
  1292. "'get onmouseover' called on an object that is not a valid instance of SVGElement."
  1293. );
  1294. }
  1295. return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseover"]);
  1296. }
  1297. set onmouseover(V) {
  1298. const esValue = this !== null && this !== undefined ? this : globalObject;
  1299. if (!exports.is(esValue)) {
  1300. throw new globalObject.TypeError(
  1301. "'set onmouseover' called on an object that is not a valid instance of SVGElement."
  1302. );
  1303. }
  1304. if (!utils.isObject(V)) {
  1305. V = null;
  1306. } else {
  1307. V = EventHandlerNonNull.convert(globalObject, V, {
  1308. context: "Failed to set the 'onmouseover' property on 'SVGElement': The provided value"
  1309. });
  1310. }
  1311. esValue[implSymbol]["onmouseover"] = V;
  1312. }
  1313. get onmouseup() {
  1314. const esValue = this !== null && this !== undefined ? this : globalObject;
  1315. if (!exports.is(esValue)) {
  1316. throw new globalObject.TypeError(
  1317. "'get onmouseup' called on an object that is not a valid instance of SVGElement."
  1318. );
  1319. }
  1320. return utils.tryWrapperForImpl(esValue[implSymbol]["onmouseup"]);
  1321. }
  1322. set onmouseup(V) {
  1323. const esValue = this !== null && this !== undefined ? this : globalObject;
  1324. if (!exports.is(esValue)) {
  1325. throw new globalObject.TypeError(
  1326. "'set onmouseup' called on an object that is not a valid instance of SVGElement."
  1327. );
  1328. }
  1329. if (!utils.isObject(V)) {
  1330. V = null;
  1331. } else {
  1332. V = EventHandlerNonNull.convert(globalObject, V, {
  1333. context: "Failed to set the 'onmouseup' property on 'SVGElement': The provided value"
  1334. });
  1335. }
  1336. esValue[implSymbol]["onmouseup"] = V;
  1337. }
  1338. get onpaste() {
  1339. const esValue = this !== null && this !== undefined ? this : globalObject;
  1340. if (!exports.is(esValue)) {
  1341. throw new globalObject.TypeError(
  1342. "'get onpaste' called on an object that is not a valid instance of SVGElement."
  1343. );
  1344. }
  1345. return utils.tryWrapperForImpl(esValue[implSymbol]["onpaste"]);
  1346. }
  1347. set onpaste(V) {
  1348. const esValue = this !== null && this !== undefined ? this : globalObject;
  1349. if (!exports.is(esValue)) {
  1350. throw new globalObject.TypeError(
  1351. "'set onpaste' called on an object that is not a valid instance of SVGElement."
  1352. );
  1353. }
  1354. if (!utils.isObject(V)) {
  1355. V = null;
  1356. } else {
  1357. V = EventHandlerNonNull.convert(globalObject, V, {
  1358. context: "Failed to set the 'onpaste' property on 'SVGElement': The provided value"
  1359. });
  1360. }
  1361. esValue[implSymbol]["onpaste"] = V;
  1362. }
  1363. get onpause() {
  1364. const esValue = this !== null && this !== undefined ? this : globalObject;
  1365. if (!exports.is(esValue)) {
  1366. throw new globalObject.TypeError(
  1367. "'get onpause' called on an object that is not a valid instance of SVGElement."
  1368. );
  1369. }
  1370. return utils.tryWrapperForImpl(esValue[implSymbol]["onpause"]);
  1371. }
  1372. set onpause(V) {
  1373. const esValue = this !== null && this !== undefined ? this : globalObject;
  1374. if (!exports.is(esValue)) {
  1375. throw new globalObject.TypeError(
  1376. "'set onpause' called on an object that is not a valid instance of SVGElement."
  1377. );
  1378. }
  1379. if (!utils.isObject(V)) {
  1380. V = null;
  1381. } else {
  1382. V = EventHandlerNonNull.convert(globalObject, V, {
  1383. context: "Failed to set the 'onpause' property on 'SVGElement': The provided value"
  1384. });
  1385. }
  1386. esValue[implSymbol]["onpause"] = V;
  1387. }
  1388. get onplay() {
  1389. const esValue = this !== null && this !== undefined ? this : globalObject;
  1390. if (!exports.is(esValue)) {
  1391. throw new globalObject.TypeError(
  1392. "'get onplay' called on an object that is not a valid instance of SVGElement."
  1393. );
  1394. }
  1395. return utils.tryWrapperForImpl(esValue[implSymbol]["onplay"]);
  1396. }
  1397. set onplay(V) {
  1398. const esValue = this !== null && this !== undefined ? this : globalObject;
  1399. if (!exports.is(esValue)) {
  1400. throw new globalObject.TypeError(
  1401. "'set onplay' called on an object that is not a valid instance of SVGElement."
  1402. );
  1403. }
  1404. if (!utils.isObject(V)) {
  1405. V = null;
  1406. } else {
  1407. V = EventHandlerNonNull.convert(globalObject, V, {
  1408. context: "Failed to set the 'onplay' property on 'SVGElement': The provided value"
  1409. });
  1410. }
  1411. esValue[implSymbol]["onplay"] = V;
  1412. }
  1413. get onplaying() {
  1414. const esValue = this !== null && this !== undefined ? this : globalObject;
  1415. if (!exports.is(esValue)) {
  1416. throw new globalObject.TypeError(
  1417. "'get onplaying' called on an object that is not a valid instance of SVGElement."
  1418. );
  1419. }
  1420. return utils.tryWrapperForImpl(esValue[implSymbol]["onplaying"]);
  1421. }
  1422. set onplaying(V) {
  1423. const esValue = this !== null && this !== undefined ? this : globalObject;
  1424. if (!exports.is(esValue)) {
  1425. throw new globalObject.TypeError(
  1426. "'set onplaying' called on an object that is not a valid instance of SVGElement."
  1427. );
  1428. }
  1429. if (!utils.isObject(V)) {
  1430. V = null;
  1431. } else {
  1432. V = EventHandlerNonNull.convert(globalObject, V, {
  1433. context: "Failed to set the 'onplaying' property on 'SVGElement': The provided value"
  1434. });
  1435. }
  1436. esValue[implSymbol]["onplaying"] = V;
  1437. }
  1438. get onprogress() {
  1439. const esValue = this !== null && this !== undefined ? this : globalObject;
  1440. if (!exports.is(esValue)) {
  1441. throw new globalObject.TypeError(
  1442. "'get onprogress' called on an object that is not a valid instance of SVGElement."
  1443. );
  1444. }
  1445. return utils.tryWrapperForImpl(esValue[implSymbol]["onprogress"]);
  1446. }
  1447. set onprogress(V) {
  1448. const esValue = this !== null && this !== undefined ? this : globalObject;
  1449. if (!exports.is(esValue)) {
  1450. throw new globalObject.TypeError(
  1451. "'set onprogress' called on an object that is not a valid instance of SVGElement."
  1452. );
  1453. }
  1454. if (!utils.isObject(V)) {
  1455. V = null;
  1456. } else {
  1457. V = EventHandlerNonNull.convert(globalObject, V, {
  1458. context: "Failed to set the 'onprogress' property on 'SVGElement': The provided value"
  1459. });
  1460. }
  1461. esValue[implSymbol]["onprogress"] = V;
  1462. }
  1463. get onratechange() {
  1464. const esValue = this !== null && this !== undefined ? this : globalObject;
  1465. if (!exports.is(esValue)) {
  1466. throw new globalObject.TypeError(
  1467. "'get onratechange' called on an object that is not a valid instance of SVGElement."
  1468. );
  1469. }
  1470. return utils.tryWrapperForImpl(esValue[implSymbol]["onratechange"]);
  1471. }
  1472. set onratechange(V) {
  1473. const esValue = this !== null && this !== undefined ? this : globalObject;
  1474. if (!exports.is(esValue)) {
  1475. throw new globalObject.TypeError(
  1476. "'set onratechange' called on an object that is not a valid instance of SVGElement."
  1477. );
  1478. }
  1479. if (!utils.isObject(V)) {
  1480. V = null;
  1481. } else {
  1482. V = EventHandlerNonNull.convert(globalObject, V, {
  1483. context: "Failed to set the 'onratechange' property on 'SVGElement': The provided value"
  1484. });
  1485. }
  1486. esValue[implSymbol]["onratechange"] = V;
  1487. }
  1488. get onreset() {
  1489. const esValue = this !== null && this !== undefined ? this : globalObject;
  1490. if (!exports.is(esValue)) {
  1491. throw new globalObject.TypeError(
  1492. "'get onreset' called on an object that is not a valid instance of SVGElement."
  1493. );
  1494. }
  1495. return utils.tryWrapperForImpl(esValue[implSymbol]["onreset"]);
  1496. }
  1497. set onreset(V) {
  1498. const esValue = this !== null && this !== undefined ? this : globalObject;
  1499. if (!exports.is(esValue)) {
  1500. throw new globalObject.TypeError(
  1501. "'set onreset' called on an object that is not a valid instance of SVGElement."
  1502. );
  1503. }
  1504. if (!utils.isObject(V)) {
  1505. V = null;
  1506. } else {
  1507. V = EventHandlerNonNull.convert(globalObject, V, {
  1508. context: "Failed to set the 'onreset' property on 'SVGElement': The provided value"
  1509. });
  1510. }
  1511. esValue[implSymbol]["onreset"] = V;
  1512. }
  1513. get onresize() {
  1514. const esValue = this !== null && this !== undefined ? this : globalObject;
  1515. if (!exports.is(esValue)) {
  1516. throw new globalObject.TypeError(
  1517. "'get onresize' called on an object that is not a valid instance of SVGElement."
  1518. );
  1519. }
  1520. return utils.tryWrapperForImpl(esValue[implSymbol]["onresize"]);
  1521. }
  1522. set onresize(V) {
  1523. const esValue = this !== null && this !== undefined ? this : globalObject;
  1524. if (!exports.is(esValue)) {
  1525. throw new globalObject.TypeError(
  1526. "'set onresize' called on an object that is not a valid instance of SVGElement."
  1527. );
  1528. }
  1529. if (!utils.isObject(V)) {
  1530. V = null;
  1531. } else {
  1532. V = EventHandlerNonNull.convert(globalObject, V, {
  1533. context: "Failed to set the 'onresize' property on 'SVGElement': The provided value"
  1534. });
  1535. }
  1536. esValue[implSymbol]["onresize"] = V;
  1537. }
  1538. get onscroll() {
  1539. const esValue = this !== null && this !== undefined ? this : globalObject;
  1540. if (!exports.is(esValue)) {
  1541. throw new globalObject.TypeError(
  1542. "'get onscroll' called on an object that is not a valid instance of SVGElement."
  1543. );
  1544. }
  1545. return utils.tryWrapperForImpl(esValue[implSymbol]["onscroll"]);
  1546. }
  1547. set onscroll(V) {
  1548. const esValue = this !== null && this !== undefined ? this : globalObject;
  1549. if (!exports.is(esValue)) {
  1550. throw new globalObject.TypeError(
  1551. "'set onscroll' called on an object that is not a valid instance of SVGElement."
  1552. );
  1553. }
  1554. if (!utils.isObject(V)) {
  1555. V = null;
  1556. } else {
  1557. V = EventHandlerNonNull.convert(globalObject, V, {
  1558. context: "Failed to set the 'onscroll' property on 'SVGElement': The provided value"
  1559. });
  1560. }
  1561. esValue[implSymbol]["onscroll"] = V;
  1562. }
  1563. get onscrollend() {
  1564. const esValue = this !== null && this !== undefined ? this : globalObject;
  1565. if (!exports.is(esValue)) {
  1566. throw new globalObject.TypeError(
  1567. "'get onscrollend' called on an object that is not a valid instance of SVGElement."
  1568. );
  1569. }
  1570. return utils.tryWrapperForImpl(esValue[implSymbol]["onscrollend"]);
  1571. }
  1572. set onscrollend(V) {
  1573. const esValue = this !== null && this !== undefined ? this : globalObject;
  1574. if (!exports.is(esValue)) {
  1575. throw new globalObject.TypeError(
  1576. "'set onscrollend' called on an object that is not a valid instance of SVGElement."
  1577. );
  1578. }
  1579. if (!utils.isObject(V)) {
  1580. V = null;
  1581. } else {
  1582. V = EventHandlerNonNull.convert(globalObject, V, {
  1583. context: "Failed to set the 'onscrollend' property on 'SVGElement': The provided value"
  1584. });
  1585. }
  1586. esValue[implSymbol]["onscrollend"] = V;
  1587. }
  1588. get onsecuritypolicyviolation() {
  1589. const esValue = this !== null && this !== undefined ? this : globalObject;
  1590. if (!exports.is(esValue)) {
  1591. throw new globalObject.TypeError(
  1592. "'get onsecuritypolicyviolation' called on an object that is not a valid instance of SVGElement."
  1593. );
  1594. }
  1595. return utils.tryWrapperForImpl(esValue[implSymbol]["onsecuritypolicyviolation"]);
  1596. }
  1597. set onsecuritypolicyviolation(V) {
  1598. const esValue = this !== null && this !== undefined ? this : globalObject;
  1599. if (!exports.is(esValue)) {
  1600. throw new globalObject.TypeError(
  1601. "'set onsecuritypolicyviolation' called on an object that is not a valid instance of SVGElement."
  1602. );
  1603. }
  1604. if (!utils.isObject(V)) {
  1605. V = null;
  1606. } else {
  1607. V = EventHandlerNonNull.convert(globalObject, V, {
  1608. context: "Failed to set the 'onsecuritypolicyviolation' property on 'SVGElement': The provided value"
  1609. });
  1610. }
  1611. esValue[implSymbol]["onsecuritypolicyviolation"] = V;
  1612. }
  1613. get onseeked() {
  1614. const esValue = this !== null && this !== undefined ? this : globalObject;
  1615. if (!exports.is(esValue)) {
  1616. throw new globalObject.TypeError(
  1617. "'get onseeked' called on an object that is not a valid instance of SVGElement."
  1618. );
  1619. }
  1620. return utils.tryWrapperForImpl(esValue[implSymbol]["onseeked"]);
  1621. }
  1622. set onseeked(V) {
  1623. const esValue = this !== null && this !== undefined ? this : globalObject;
  1624. if (!exports.is(esValue)) {
  1625. throw new globalObject.TypeError(
  1626. "'set onseeked' called on an object that is not a valid instance of SVGElement."
  1627. );
  1628. }
  1629. if (!utils.isObject(V)) {
  1630. V = null;
  1631. } else {
  1632. V = EventHandlerNonNull.convert(globalObject, V, {
  1633. context: "Failed to set the 'onseeked' property on 'SVGElement': The provided value"
  1634. });
  1635. }
  1636. esValue[implSymbol]["onseeked"] = V;
  1637. }
  1638. get onseeking() {
  1639. const esValue = this !== null && this !== undefined ? this : globalObject;
  1640. if (!exports.is(esValue)) {
  1641. throw new globalObject.TypeError(
  1642. "'get onseeking' called on an object that is not a valid instance of SVGElement."
  1643. );
  1644. }
  1645. return utils.tryWrapperForImpl(esValue[implSymbol]["onseeking"]);
  1646. }
  1647. set onseeking(V) {
  1648. const esValue = this !== null && this !== undefined ? this : globalObject;
  1649. if (!exports.is(esValue)) {
  1650. throw new globalObject.TypeError(
  1651. "'set onseeking' called on an object that is not a valid instance of SVGElement."
  1652. );
  1653. }
  1654. if (!utils.isObject(V)) {
  1655. V = null;
  1656. } else {
  1657. V = EventHandlerNonNull.convert(globalObject, V, {
  1658. context: "Failed to set the 'onseeking' property on 'SVGElement': The provided value"
  1659. });
  1660. }
  1661. esValue[implSymbol]["onseeking"] = V;
  1662. }
  1663. get onselect() {
  1664. const esValue = this !== null && this !== undefined ? this : globalObject;
  1665. if (!exports.is(esValue)) {
  1666. throw new globalObject.TypeError(
  1667. "'get onselect' called on an object that is not a valid instance of SVGElement."
  1668. );
  1669. }
  1670. return utils.tryWrapperForImpl(esValue[implSymbol]["onselect"]);
  1671. }
  1672. set onselect(V) {
  1673. const esValue = this !== null && this !== undefined ? this : globalObject;
  1674. if (!exports.is(esValue)) {
  1675. throw new globalObject.TypeError(
  1676. "'set onselect' called on an object that is not a valid instance of SVGElement."
  1677. );
  1678. }
  1679. if (!utils.isObject(V)) {
  1680. V = null;
  1681. } else {
  1682. V = EventHandlerNonNull.convert(globalObject, V, {
  1683. context: "Failed to set the 'onselect' property on 'SVGElement': The provided value"
  1684. });
  1685. }
  1686. esValue[implSymbol]["onselect"] = V;
  1687. }
  1688. get onslotchange() {
  1689. const esValue = this !== null && this !== undefined ? this : globalObject;
  1690. if (!exports.is(esValue)) {
  1691. throw new globalObject.TypeError(
  1692. "'get onslotchange' called on an object that is not a valid instance of SVGElement."
  1693. );
  1694. }
  1695. return utils.tryWrapperForImpl(esValue[implSymbol]["onslotchange"]);
  1696. }
  1697. set onslotchange(V) {
  1698. const esValue = this !== null && this !== undefined ? this : globalObject;
  1699. if (!exports.is(esValue)) {
  1700. throw new globalObject.TypeError(
  1701. "'set onslotchange' called on an object that is not a valid instance of SVGElement."
  1702. );
  1703. }
  1704. if (!utils.isObject(V)) {
  1705. V = null;
  1706. } else {
  1707. V = EventHandlerNonNull.convert(globalObject, V, {
  1708. context: "Failed to set the 'onslotchange' property on 'SVGElement': The provided value"
  1709. });
  1710. }
  1711. esValue[implSymbol]["onslotchange"] = V;
  1712. }
  1713. get onstalled() {
  1714. const esValue = this !== null && this !== undefined ? this : globalObject;
  1715. if (!exports.is(esValue)) {
  1716. throw new globalObject.TypeError(
  1717. "'get onstalled' called on an object that is not a valid instance of SVGElement."
  1718. );
  1719. }
  1720. return utils.tryWrapperForImpl(esValue[implSymbol]["onstalled"]);
  1721. }
  1722. set onstalled(V) {
  1723. const esValue = this !== null && this !== undefined ? this : globalObject;
  1724. if (!exports.is(esValue)) {
  1725. throw new globalObject.TypeError(
  1726. "'set onstalled' called on an object that is not a valid instance of SVGElement."
  1727. );
  1728. }
  1729. if (!utils.isObject(V)) {
  1730. V = null;
  1731. } else {
  1732. V = EventHandlerNonNull.convert(globalObject, V, {
  1733. context: "Failed to set the 'onstalled' property on 'SVGElement': The provided value"
  1734. });
  1735. }
  1736. esValue[implSymbol]["onstalled"] = V;
  1737. }
  1738. get onsubmit() {
  1739. const esValue = this !== null && this !== undefined ? this : globalObject;
  1740. if (!exports.is(esValue)) {
  1741. throw new globalObject.TypeError(
  1742. "'get onsubmit' called on an object that is not a valid instance of SVGElement."
  1743. );
  1744. }
  1745. return utils.tryWrapperForImpl(esValue[implSymbol]["onsubmit"]);
  1746. }
  1747. set onsubmit(V) {
  1748. const esValue = this !== null && this !== undefined ? this : globalObject;
  1749. if (!exports.is(esValue)) {
  1750. throw new globalObject.TypeError(
  1751. "'set onsubmit' called on an object that is not a valid instance of SVGElement."
  1752. );
  1753. }
  1754. if (!utils.isObject(V)) {
  1755. V = null;
  1756. } else {
  1757. V = EventHandlerNonNull.convert(globalObject, V, {
  1758. context: "Failed to set the 'onsubmit' property on 'SVGElement': The provided value"
  1759. });
  1760. }
  1761. esValue[implSymbol]["onsubmit"] = V;
  1762. }
  1763. get onsuspend() {
  1764. const esValue = this !== null && this !== undefined ? this : globalObject;
  1765. if (!exports.is(esValue)) {
  1766. throw new globalObject.TypeError(
  1767. "'get onsuspend' called on an object that is not a valid instance of SVGElement."
  1768. );
  1769. }
  1770. return utils.tryWrapperForImpl(esValue[implSymbol]["onsuspend"]);
  1771. }
  1772. set onsuspend(V) {
  1773. const esValue = this !== null && this !== undefined ? this : globalObject;
  1774. if (!exports.is(esValue)) {
  1775. throw new globalObject.TypeError(
  1776. "'set onsuspend' called on an object that is not a valid instance of SVGElement."
  1777. );
  1778. }
  1779. if (!utils.isObject(V)) {
  1780. V = null;
  1781. } else {
  1782. V = EventHandlerNonNull.convert(globalObject, V, {
  1783. context: "Failed to set the 'onsuspend' property on 'SVGElement': The provided value"
  1784. });
  1785. }
  1786. esValue[implSymbol]["onsuspend"] = V;
  1787. }
  1788. get ontimeupdate() {
  1789. const esValue = this !== null && this !== undefined ? this : globalObject;
  1790. if (!exports.is(esValue)) {
  1791. throw new globalObject.TypeError(
  1792. "'get ontimeupdate' called on an object that is not a valid instance of SVGElement."
  1793. );
  1794. }
  1795. return utils.tryWrapperForImpl(esValue[implSymbol]["ontimeupdate"]);
  1796. }
  1797. set ontimeupdate(V) {
  1798. const esValue = this !== null && this !== undefined ? this : globalObject;
  1799. if (!exports.is(esValue)) {
  1800. throw new globalObject.TypeError(
  1801. "'set ontimeupdate' called on an object that is not a valid instance of SVGElement."
  1802. );
  1803. }
  1804. if (!utils.isObject(V)) {
  1805. V = null;
  1806. } else {
  1807. V = EventHandlerNonNull.convert(globalObject, V, {
  1808. context: "Failed to set the 'ontimeupdate' property on 'SVGElement': The provided value"
  1809. });
  1810. }
  1811. esValue[implSymbol]["ontimeupdate"] = V;
  1812. }
  1813. get ontoggle() {
  1814. const esValue = this !== null && this !== undefined ? this : globalObject;
  1815. if (!exports.is(esValue)) {
  1816. throw new globalObject.TypeError(
  1817. "'get ontoggle' called on an object that is not a valid instance of SVGElement."
  1818. );
  1819. }
  1820. return utils.tryWrapperForImpl(esValue[implSymbol]["ontoggle"]);
  1821. }
  1822. set ontoggle(V) {
  1823. const esValue = this !== null && this !== undefined ? this : globalObject;
  1824. if (!exports.is(esValue)) {
  1825. throw new globalObject.TypeError(
  1826. "'set ontoggle' called on an object that is not a valid instance of SVGElement."
  1827. );
  1828. }
  1829. if (!utils.isObject(V)) {
  1830. V = null;
  1831. } else {
  1832. V = EventHandlerNonNull.convert(globalObject, V, {
  1833. context: "Failed to set the 'ontoggle' property on 'SVGElement': The provided value"
  1834. });
  1835. }
  1836. esValue[implSymbol]["ontoggle"] = V;
  1837. }
  1838. get onvolumechange() {
  1839. const esValue = this !== null && this !== undefined ? this : globalObject;
  1840. if (!exports.is(esValue)) {
  1841. throw new globalObject.TypeError(
  1842. "'get onvolumechange' called on an object that is not a valid instance of SVGElement."
  1843. );
  1844. }
  1845. return utils.tryWrapperForImpl(esValue[implSymbol]["onvolumechange"]);
  1846. }
  1847. set onvolumechange(V) {
  1848. const esValue = this !== null && this !== undefined ? this : globalObject;
  1849. if (!exports.is(esValue)) {
  1850. throw new globalObject.TypeError(
  1851. "'set onvolumechange' called on an object that is not a valid instance of SVGElement."
  1852. );
  1853. }
  1854. if (!utils.isObject(V)) {
  1855. V = null;
  1856. } else {
  1857. V = EventHandlerNonNull.convert(globalObject, V, {
  1858. context: "Failed to set the 'onvolumechange' property on 'SVGElement': The provided value"
  1859. });
  1860. }
  1861. esValue[implSymbol]["onvolumechange"] = V;
  1862. }
  1863. get onwaiting() {
  1864. const esValue = this !== null && this !== undefined ? this : globalObject;
  1865. if (!exports.is(esValue)) {
  1866. throw new globalObject.TypeError(
  1867. "'get onwaiting' called on an object that is not a valid instance of SVGElement."
  1868. );
  1869. }
  1870. return utils.tryWrapperForImpl(esValue[implSymbol]["onwaiting"]);
  1871. }
  1872. set onwaiting(V) {
  1873. const esValue = this !== null && this !== undefined ? this : globalObject;
  1874. if (!exports.is(esValue)) {
  1875. throw new globalObject.TypeError(
  1876. "'set onwaiting' called on an object that is not a valid instance of SVGElement."
  1877. );
  1878. }
  1879. if (!utils.isObject(V)) {
  1880. V = null;
  1881. } else {
  1882. V = EventHandlerNonNull.convert(globalObject, V, {
  1883. context: "Failed to set the 'onwaiting' property on 'SVGElement': The provided value"
  1884. });
  1885. }
  1886. esValue[implSymbol]["onwaiting"] = V;
  1887. }
  1888. get onwebkitanimationend() {
  1889. const esValue = this !== null && this !== undefined ? this : globalObject;
  1890. if (!exports.is(esValue)) {
  1891. throw new globalObject.TypeError(
  1892. "'get onwebkitanimationend' called on an object that is not a valid instance of SVGElement."
  1893. );
  1894. }
  1895. return utils.tryWrapperForImpl(esValue[implSymbol]["onwebkitanimationend"]);
  1896. }
  1897. set onwebkitanimationend(V) {
  1898. const esValue = this !== null && this !== undefined ? this : globalObject;
  1899. if (!exports.is(esValue)) {
  1900. throw new globalObject.TypeError(
  1901. "'set onwebkitanimationend' called on an object that is not a valid instance of SVGElement."
  1902. );
  1903. }
  1904. if (!utils.isObject(V)) {
  1905. V = null;
  1906. } else {
  1907. V = EventHandlerNonNull.convert(globalObject, V, {
  1908. context: "Failed to set the 'onwebkitanimationend' property on 'SVGElement': The provided value"
  1909. });
  1910. }
  1911. esValue[implSymbol]["onwebkitanimationend"] = V;
  1912. }
  1913. get onwebkitanimationiteration() {
  1914. const esValue = this !== null && this !== undefined ? this : globalObject;
  1915. if (!exports.is(esValue)) {
  1916. throw new globalObject.TypeError(
  1917. "'get onwebkitanimationiteration' called on an object that is not a valid instance of SVGElement."
  1918. );
  1919. }
  1920. return utils.tryWrapperForImpl(esValue[implSymbol]["onwebkitanimationiteration"]);
  1921. }
  1922. set onwebkitanimationiteration(V) {
  1923. const esValue = this !== null && this !== undefined ? this : globalObject;
  1924. if (!exports.is(esValue)) {
  1925. throw new globalObject.TypeError(
  1926. "'set onwebkitanimationiteration' called on an object that is not a valid instance of SVGElement."
  1927. );
  1928. }
  1929. if (!utils.isObject(V)) {
  1930. V = null;
  1931. } else {
  1932. V = EventHandlerNonNull.convert(globalObject, V, {
  1933. context: "Failed to set the 'onwebkitanimationiteration' property on 'SVGElement': The provided value"
  1934. });
  1935. }
  1936. esValue[implSymbol]["onwebkitanimationiteration"] = V;
  1937. }
  1938. get onwebkitanimationstart() {
  1939. const esValue = this !== null && this !== undefined ? this : globalObject;
  1940. if (!exports.is(esValue)) {
  1941. throw new globalObject.TypeError(
  1942. "'get onwebkitanimationstart' called on an object that is not a valid instance of SVGElement."
  1943. );
  1944. }
  1945. return utils.tryWrapperForImpl(esValue[implSymbol]["onwebkitanimationstart"]);
  1946. }
  1947. set onwebkitanimationstart(V) {
  1948. const esValue = this !== null && this !== undefined ? this : globalObject;
  1949. if (!exports.is(esValue)) {
  1950. throw new globalObject.TypeError(
  1951. "'set onwebkitanimationstart' called on an object that is not a valid instance of SVGElement."
  1952. );
  1953. }
  1954. if (!utils.isObject(V)) {
  1955. V = null;
  1956. } else {
  1957. V = EventHandlerNonNull.convert(globalObject, V, {
  1958. context: "Failed to set the 'onwebkitanimationstart' property on 'SVGElement': The provided value"
  1959. });
  1960. }
  1961. esValue[implSymbol]["onwebkitanimationstart"] = V;
  1962. }
  1963. get onwebkittransitionend() {
  1964. const esValue = this !== null && this !== undefined ? this : globalObject;
  1965. if (!exports.is(esValue)) {
  1966. throw new globalObject.TypeError(
  1967. "'get onwebkittransitionend' called on an object that is not a valid instance of SVGElement."
  1968. );
  1969. }
  1970. return utils.tryWrapperForImpl(esValue[implSymbol]["onwebkittransitionend"]);
  1971. }
  1972. set onwebkittransitionend(V) {
  1973. const esValue = this !== null && this !== undefined ? this : globalObject;
  1974. if (!exports.is(esValue)) {
  1975. throw new globalObject.TypeError(
  1976. "'set onwebkittransitionend' called on an object that is not a valid instance of SVGElement."
  1977. );
  1978. }
  1979. if (!utils.isObject(V)) {
  1980. V = null;
  1981. } else {
  1982. V = EventHandlerNonNull.convert(globalObject, V, {
  1983. context: "Failed to set the 'onwebkittransitionend' property on 'SVGElement': The provided value"
  1984. });
  1985. }
  1986. esValue[implSymbol]["onwebkittransitionend"] = V;
  1987. }
  1988. get onwheel() {
  1989. const esValue = this !== null && this !== undefined ? this : globalObject;
  1990. if (!exports.is(esValue)) {
  1991. throw new globalObject.TypeError(
  1992. "'get onwheel' called on an object that is not a valid instance of SVGElement."
  1993. );
  1994. }
  1995. return utils.tryWrapperForImpl(esValue[implSymbol]["onwheel"]);
  1996. }
  1997. set onwheel(V) {
  1998. const esValue = this !== null && this !== undefined ? this : globalObject;
  1999. if (!exports.is(esValue)) {
  2000. throw new globalObject.TypeError(
  2001. "'set onwheel' called on an object that is not a valid instance of SVGElement."
  2002. );
  2003. }
  2004. if (!utils.isObject(V)) {
  2005. V = null;
  2006. } else {
  2007. V = EventHandlerNonNull.convert(globalObject, V, {
  2008. context: "Failed to set the 'onwheel' property on 'SVGElement': The provided value"
  2009. });
  2010. }
  2011. esValue[implSymbol]["onwheel"] = V;
  2012. }
  2013. get ontouchstart() {
  2014. const esValue = this !== null && this !== undefined ? this : globalObject;
  2015. if (!exports.is(esValue)) {
  2016. throw new globalObject.TypeError(
  2017. "'get ontouchstart' called on an object that is not a valid instance of SVGElement."
  2018. );
  2019. }
  2020. return utils.tryWrapperForImpl(esValue[implSymbol]["ontouchstart"]);
  2021. }
  2022. set ontouchstart(V) {
  2023. const esValue = this !== null && this !== undefined ? this : globalObject;
  2024. if (!exports.is(esValue)) {
  2025. throw new globalObject.TypeError(
  2026. "'set ontouchstart' called on an object that is not a valid instance of SVGElement."
  2027. );
  2028. }
  2029. if (!utils.isObject(V)) {
  2030. V = null;
  2031. } else {
  2032. V = EventHandlerNonNull.convert(globalObject, V, {
  2033. context: "Failed to set the 'ontouchstart' property on 'SVGElement': The provided value"
  2034. });
  2035. }
  2036. esValue[implSymbol]["ontouchstart"] = V;
  2037. }
  2038. get ontouchend() {
  2039. const esValue = this !== null && this !== undefined ? this : globalObject;
  2040. if (!exports.is(esValue)) {
  2041. throw new globalObject.TypeError(
  2042. "'get ontouchend' called on an object that is not a valid instance of SVGElement."
  2043. );
  2044. }
  2045. return utils.tryWrapperForImpl(esValue[implSymbol]["ontouchend"]);
  2046. }
  2047. set ontouchend(V) {
  2048. const esValue = this !== null && this !== undefined ? this : globalObject;
  2049. if (!exports.is(esValue)) {
  2050. throw new globalObject.TypeError(
  2051. "'set ontouchend' called on an object that is not a valid instance of SVGElement."
  2052. );
  2053. }
  2054. if (!utils.isObject(V)) {
  2055. V = null;
  2056. } else {
  2057. V = EventHandlerNonNull.convert(globalObject, V, {
  2058. context: "Failed to set the 'ontouchend' property on 'SVGElement': The provided value"
  2059. });
  2060. }
  2061. esValue[implSymbol]["ontouchend"] = V;
  2062. }
  2063. get ontouchmove() {
  2064. const esValue = this !== null && this !== undefined ? this : globalObject;
  2065. if (!exports.is(esValue)) {
  2066. throw new globalObject.TypeError(
  2067. "'get ontouchmove' called on an object that is not a valid instance of SVGElement."
  2068. );
  2069. }
  2070. return utils.tryWrapperForImpl(esValue[implSymbol]["ontouchmove"]);
  2071. }
  2072. set ontouchmove(V) {
  2073. const esValue = this !== null && this !== undefined ? this : globalObject;
  2074. if (!exports.is(esValue)) {
  2075. throw new globalObject.TypeError(
  2076. "'set ontouchmove' called on an object that is not a valid instance of SVGElement."
  2077. );
  2078. }
  2079. if (!utils.isObject(V)) {
  2080. V = null;
  2081. } else {
  2082. V = EventHandlerNonNull.convert(globalObject, V, {
  2083. context: "Failed to set the 'ontouchmove' property on 'SVGElement': The provided value"
  2084. });
  2085. }
  2086. esValue[implSymbol]["ontouchmove"] = V;
  2087. }
  2088. get ontouchcancel() {
  2089. const esValue = this !== null && this !== undefined ? this : globalObject;
  2090. if (!exports.is(esValue)) {
  2091. throw new globalObject.TypeError(
  2092. "'get ontouchcancel' called on an object that is not a valid instance of SVGElement."
  2093. );
  2094. }
  2095. return utils.tryWrapperForImpl(esValue[implSymbol]["ontouchcancel"]);
  2096. }
  2097. set ontouchcancel(V) {
  2098. const esValue = this !== null && this !== undefined ? this : globalObject;
  2099. if (!exports.is(esValue)) {
  2100. throw new globalObject.TypeError(
  2101. "'set ontouchcancel' called on an object that is not a valid instance of SVGElement."
  2102. );
  2103. }
  2104. if (!utils.isObject(V)) {
  2105. V = null;
  2106. } else {
  2107. V = EventHandlerNonNull.convert(globalObject, V, {
  2108. context: "Failed to set the 'ontouchcancel' property on 'SVGElement': The provided value"
  2109. });
  2110. }
  2111. esValue[implSymbol]["ontouchcancel"] = V;
  2112. }
  2113. get onpointerover() {
  2114. const esValue = this !== null && this !== undefined ? this : globalObject;
  2115. if (!exports.is(esValue)) {
  2116. throw new globalObject.TypeError(
  2117. "'get onpointerover' called on an object that is not a valid instance of SVGElement."
  2118. );
  2119. }
  2120. return utils.tryWrapperForImpl(esValue[implSymbol]["onpointerover"]);
  2121. }
  2122. set onpointerover(V) {
  2123. const esValue = this !== null && this !== undefined ? this : globalObject;
  2124. if (!exports.is(esValue)) {
  2125. throw new globalObject.TypeError(
  2126. "'set onpointerover' called on an object that is not a valid instance of SVGElement."
  2127. );
  2128. }
  2129. if (!utils.isObject(V)) {
  2130. V = null;
  2131. } else {
  2132. V = EventHandlerNonNull.convert(globalObject, V, {
  2133. context: "Failed to set the 'onpointerover' property on 'SVGElement': The provided value"
  2134. });
  2135. }
  2136. esValue[implSymbol]["onpointerover"] = V;
  2137. }
  2138. get onpointerenter() {
  2139. const esValue = this !== null && this !== undefined ? this : globalObject;
  2140. if (!exports.is(esValue)) {
  2141. throw new globalObject.TypeError(
  2142. "'get onpointerenter' called on an object that is not a valid instance of SVGElement."
  2143. );
  2144. }
  2145. return utils.tryWrapperForImpl(esValue[implSymbol]["onpointerenter"]);
  2146. }
  2147. set onpointerenter(V) {
  2148. const esValue = this !== null && this !== undefined ? this : globalObject;
  2149. if (!exports.is(esValue)) {
  2150. throw new globalObject.TypeError(
  2151. "'set onpointerenter' called on an object that is not a valid instance of SVGElement."
  2152. );
  2153. }
  2154. if (!utils.isObject(V)) {
  2155. V = null;
  2156. } else {
  2157. V = EventHandlerNonNull.convert(globalObject, V, {
  2158. context: "Failed to set the 'onpointerenter' property on 'SVGElement': The provided value"
  2159. });
  2160. }
  2161. esValue[implSymbol]["onpointerenter"] = V;
  2162. }
  2163. get onpointerdown() {
  2164. const esValue = this !== null && this !== undefined ? this : globalObject;
  2165. if (!exports.is(esValue)) {
  2166. throw new globalObject.TypeError(
  2167. "'get onpointerdown' called on an object that is not a valid instance of SVGElement."
  2168. );
  2169. }
  2170. return utils.tryWrapperForImpl(esValue[implSymbol]["onpointerdown"]);
  2171. }
  2172. set onpointerdown(V) {
  2173. const esValue = this !== null && this !== undefined ? this : globalObject;
  2174. if (!exports.is(esValue)) {
  2175. throw new globalObject.TypeError(
  2176. "'set onpointerdown' called on an object that is not a valid instance of SVGElement."
  2177. );
  2178. }
  2179. if (!utils.isObject(V)) {
  2180. V = null;
  2181. } else {
  2182. V = EventHandlerNonNull.convert(globalObject, V, {
  2183. context: "Failed to set the 'onpointerdown' property on 'SVGElement': The provided value"
  2184. });
  2185. }
  2186. esValue[implSymbol]["onpointerdown"] = V;
  2187. }
  2188. get onpointermove() {
  2189. const esValue = this !== null && this !== undefined ? this : globalObject;
  2190. if (!exports.is(esValue)) {
  2191. throw new globalObject.TypeError(
  2192. "'get onpointermove' called on an object that is not a valid instance of SVGElement."
  2193. );
  2194. }
  2195. return utils.tryWrapperForImpl(esValue[implSymbol]["onpointermove"]);
  2196. }
  2197. set onpointermove(V) {
  2198. const esValue = this !== null && this !== undefined ? this : globalObject;
  2199. if (!exports.is(esValue)) {
  2200. throw new globalObject.TypeError(
  2201. "'set onpointermove' called on an object that is not a valid instance of SVGElement."
  2202. );
  2203. }
  2204. if (!utils.isObject(V)) {
  2205. V = null;
  2206. } else {
  2207. V = EventHandlerNonNull.convert(globalObject, V, {
  2208. context: "Failed to set the 'onpointermove' property on 'SVGElement': The provided value"
  2209. });
  2210. }
  2211. esValue[implSymbol]["onpointermove"] = V;
  2212. }
  2213. get onpointerrawupdate() {
  2214. const esValue = this !== null && this !== undefined ? this : globalObject;
  2215. if (!exports.is(esValue)) {
  2216. throw new globalObject.TypeError(
  2217. "'get onpointerrawupdate' called on an object that is not a valid instance of SVGElement."
  2218. );
  2219. }
  2220. return utils.tryWrapperForImpl(esValue[implSymbol]["onpointerrawupdate"]);
  2221. }
  2222. set onpointerrawupdate(V) {
  2223. const esValue = this !== null && this !== undefined ? this : globalObject;
  2224. if (!exports.is(esValue)) {
  2225. throw new globalObject.TypeError(
  2226. "'set onpointerrawupdate' called on an object that is not a valid instance of SVGElement."
  2227. );
  2228. }
  2229. if (!utils.isObject(V)) {
  2230. V = null;
  2231. } else {
  2232. V = EventHandlerNonNull.convert(globalObject, V, {
  2233. context: "Failed to set the 'onpointerrawupdate' property on 'SVGElement': The provided value"
  2234. });
  2235. }
  2236. esValue[implSymbol]["onpointerrawupdate"] = V;
  2237. }
  2238. get onpointerup() {
  2239. const esValue = this !== null && this !== undefined ? this : globalObject;
  2240. if (!exports.is(esValue)) {
  2241. throw new globalObject.TypeError(
  2242. "'get onpointerup' called on an object that is not a valid instance of SVGElement."
  2243. );
  2244. }
  2245. return utils.tryWrapperForImpl(esValue[implSymbol]["onpointerup"]);
  2246. }
  2247. set onpointerup(V) {
  2248. const esValue = this !== null && this !== undefined ? this : globalObject;
  2249. if (!exports.is(esValue)) {
  2250. throw new globalObject.TypeError(
  2251. "'set onpointerup' called on an object that is not a valid instance of SVGElement."
  2252. );
  2253. }
  2254. if (!utils.isObject(V)) {
  2255. V = null;
  2256. } else {
  2257. V = EventHandlerNonNull.convert(globalObject, V, {
  2258. context: "Failed to set the 'onpointerup' property on 'SVGElement': The provided value"
  2259. });
  2260. }
  2261. esValue[implSymbol]["onpointerup"] = V;
  2262. }
  2263. get onpointercancel() {
  2264. const esValue = this !== null && this !== undefined ? this : globalObject;
  2265. if (!exports.is(esValue)) {
  2266. throw new globalObject.TypeError(
  2267. "'get onpointercancel' called on an object that is not a valid instance of SVGElement."
  2268. );
  2269. }
  2270. return utils.tryWrapperForImpl(esValue[implSymbol]["onpointercancel"]);
  2271. }
  2272. set onpointercancel(V) {
  2273. const esValue = this !== null && this !== undefined ? this : globalObject;
  2274. if (!exports.is(esValue)) {
  2275. throw new globalObject.TypeError(
  2276. "'set onpointercancel' called on an object that is not a valid instance of SVGElement."
  2277. );
  2278. }
  2279. if (!utils.isObject(V)) {
  2280. V = null;
  2281. } else {
  2282. V = EventHandlerNonNull.convert(globalObject, V, {
  2283. context: "Failed to set the 'onpointercancel' property on 'SVGElement': The provided value"
  2284. });
  2285. }
  2286. esValue[implSymbol]["onpointercancel"] = V;
  2287. }
  2288. get onpointerout() {
  2289. const esValue = this !== null && this !== undefined ? this : globalObject;
  2290. if (!exports.is(esValue)) {
  2291. throw new globalObject.TypeError(
  2292. "'get onpointerout' called on an object that is not a valid instance of SVGElement."
  2293. );
  2294. }
  2295. return utils.tryWrapperForImpl(esValue[implSymbol]["onpointerout"]);
  2296. }
  2297. set onpointerout(V) {
  2298. const esValue = this !== null && this !== undefined ? this : globalObject;
  2299. if (!exports.is(esValue)) {
  2300. throw new globalObject.TypeError(
  2301. "'set onpointerout' called on an object that is not a valid instance of SVGElement."
  2302. );
  2303. }
  2304. if (!utils.isObject(V)) {
  2305. V = null;
  2306. } else {
  2307. V = EventHandlerNonNull.convert(globalObject, V, {
  2308. context: "Failed to set the 'onpointerout' property on 'SVGElement': The provided value"
  2309. });
  2310. }
  2311. esValue[implSymbol]["onpointerout"] = V;
  2312. }
  2313. get onpointerleave() {
  2314. const esValue = this !== null && this !== undefined ? this : globalObject;
  2315. if (!exports.is(esValue)) {
  2316. throw new globalObject.TypeError(
  2317. "'get onpointerleave' called on an object that is not a valid instance of SVGElement."
  2318. );
  2319. }
  2320. return utils.tryWrapperForImpl(esValue[implSymbol]["onpointerleave"]);
  2321. }
  2322. set onpointerleave(V) {
  2323. const esValue = this !== null && this !== undefined ? this : globalObject;
  2324. if (!exports.is(esValue)) {
  2325. throw new globalObject.TypeError(
  2326. "'set onpointerleave' called on an object that is not a valid instance of SVGElement."
  2327. );
  2328. }
  2329. if (!utils.isObject(V)) {
  2330. V = null;
  2331. } else {
  2332. V = EventHandlerNonNull.convert(globalObject, V, {
  2333. context: "Failed to set the 'onpointerleave' property on 'SVGElement': The provided value"
  2334. });
  2335. }
  2336. esValue[implSymbol]["onpointerleave"] = V;
  2337. }
  2338. get ongotpointercapture() {
  2339. const esValue = this !== null && this !== undefined ? this : globalObject;
  2340. if (!exports.is(esValue)) {
  2341. throw new globalObject.TypeError(
  2342. "'get ongotpointercapture' called on an object that is not a valid instance of SVGElement."
  2343. );
  2344. }
  2345. return utils.tryWrapperForImpl(esValue[implSymbol]["ongotpointercapture"]);
  2346. }
  2347. set ongotpointercapture(V) {
  2348. const esValue = this !== null && this !== undefined ? this : globalObject;
  2349. if (!exports.is(esValue)) {
  2350. throw new globalObject.TypeError(
  2351. "'set ongotpointercapture' called on an object that is not a valid instance of SVGElement."
  2352. );
  2353. }
  2354. if (!utils.isObject(V)) {
  2355. V = null;
  2356. } else {
  2357. V = EventHandlerNonNull.convert(globalObject, V, {
  2358. context: "Failed to set the 'ongotpointercapture' property on 'SVGElement': The provided value"
  2359. });
  2360. }
  2361. esValue[implSymbol]["ongotpointercapture"] = V;
  2362. }
  2363. get onlostpointercapture() {
  2364. const esValue = this !== null && this !== undefined ? this : globalObject;
  2365. if (!exports.is(esValue)) {
  2366. throw new globalObject.TypeError(
  2367. "'get onlostpointercapture' called on an object that is not a valid instance of SVGElement."
  2368. );
  2369. }
  2370. return utils.tryWrapperForImpl(esValue[implSymbol]["onlostpointercapture"]);
  2371. }
  2372. set onlostpointercapture(V) {
  2373. const esValue = this !== null && this !== undefined ? this : globalObject;
  2374. if (!exports.is(esValue)) {
  2375. throw new globalObject.TypeError(
  2376. "'set onlostpointercapture' called on an object that is not a valid instance of SVGElement."
  2377. );
  2378. }
  2379. if (!utils.isObject(V)) {
  2380. V = null;
  2381. } else {
  2382. V = EventHandlerNonNull.convert(globalObject, V, {
  2383. context: "Failed to set the 'onlostpointercapture' property on 'SVGElement': The provided value"
  2384. });
  2385. }
  2386. esValue[implSymbol]["onlostpointercapture"] = V;
  2387. }
  2388. get dataset() {
  2389. const esValue = this !== null && this !== undefined ? this : globalObject;
  2390. if (!exports.is(esValue)) {
  2391. throw new globalObject.TypeError(
  2392. "'get dataset' called on an object that is not a valid instance of SVGElement."
  2393. );
  2394. }
  2395. return utils.getSameObject(this, "dataset", () => {
  2396. return utils.tryWrapperForImpl(esValue[implSymbol]["dataset"]);
  2397. });
  2398. }
  2399. get nonce() {
  2400. const esValue = this !== null && this !== undefined ? this : globalObject;
  2401. if (!exports.is(esValue)) {
  2402. throw new globalObject.TypeError("'get nonce' called on an object that is not a valid instance of SVGElement.");
  2403. }
  2404. const value = esValue[implSymbol]._reflectGetTheContentAttribute("nonce");
  2405. return value === null ? "" : value;
  2406. }
  2407. set nonce(V) {
  2408. const esValue = this !== null && this !== undefined ? this : globalObject;
  2409. if (!exports.is(esValue)) {
  2410. throw new globalObject.TypeError("'set nonce' called on an object that is not a valid instance of SVGElement.");
  2411. }
  2412. V = conversions["DOMString"](V, {
  2413. context: "Failed to set the 'nonce' property on 'SVGElement': The provided value",
  2414. globals: globalObject
  2415. });
  2416. esValue[implSymbol]._reflectSetTheContentAttribute("nonce", V);
  2417. }
  2418. get tabIndex() {
  2419. const esValue = this !== null && this !== undefined ? this : globalObject;
  2420. if (!exports.is(esValue)) {
  2421. throw new globalObject.TypeError(
  2422. "'get tabIndex' called on an object that is not a valid instance of SVGElement."
  2423. );
  2424. }
  2425. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2426. try {
  2427. return esValue[implSymbol]["tabIndex"];
  2428. } finally {
  2429. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2430. }
  2431. }
  2432. set tabIndex(V) {
  2433. const esValue = this !== null && this !== undefined ? this : globalObject;
  2434. if (!exports.is(esValue)) {
  2435. throw new globalObject.TypeError(
  2436. "'set tabIndex' called on an object that is not a valid instance of SVGElement."
  2437. );
  2438. }
  2439. V = conversions["long"](V, {
  2440. context: "Failed to set the 'tabIndex' property on 'SVGElement': The provided value",
  2441. globals: globalObject
  2442. });
  2443. ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
  2444. try {
  2445. esValue[implSymbol]["tabIndex"] = V;
  2446. } finally {
  2447. ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
  2448. }
  2449. }
  2450. }
  2451. Object.defineProperties(SVGElement.prototype, {
  2452. focus: { enumerable: true },
  2453. blur: { enumerable: true },
  2454. className: { enumerable: true },
  2455. ownerSVGElement: { enumerable: true },
  2456. viewportElement: { enumerable: true },
  2457. style: { enumerable: true },
  2458. onabort: { enumerable: true },
  2459. onauxclick: { enumerable: true },
  2460. onbeforeinput: { enumerable: true },
  2461. onbeforematch: { enumerable: true },
  2462. onbeforetoggle: { enumerable: true },
  2463. onblur: { enumerable: true },
  2464. oncancel: { enumerable: true },
  2465. oncanplay: { enumerable: true },
  2466. oncanplaythrough: { enumerable: true },
  2467. onchange: { enumerable: true },
  2468. onclick: { enumerable: true },
  2469. onclose: { enumerable: true },
  2470. oncontextlost: { enumerable: true },
  2471. oncontextmenu: { enumerable: true },
  2472. oncontextrestored: { enumerable: true },
  2473. oncopy: { enumerable: true },
  2474. oncuechange: { enumerable: true },
  2475. oncut: { enumerable: true },
  2476. ondblclick: { enumerable: true },
  2477. ondrag: { enumerable: true },
  2478. ondragend: { enumerable: true },
  2479. ondragenter: { enumerable: true },
  2480. ondragleave: { enumerable: true },
  2481. ondragover: { enumerable: true },
  2482. ondragstart: { enumerable: true },
  2483. ondrop: { enumerable: true },
  2484. ondurationchange: { enumerable: true },
  2485. onemptied: { enumerable: true },
  2486. onended: { enumerable: true },
  2487. onerror: { enumerable: true },
  2488. onfocus: { enumerable: true },
  2489. onformdata: { enumerable: true },
  2490. oninput: { enumerable: true },
  2491. oninvalid: { enumerable: true },
  2492. onkeydown: { enumerable: true },
  2493. onkeypress: { enumerable: true },
  2494. onkeyup: { enumerable: true },
  2495. onload: { enumerable: true },
  2496. onloadeddata: { enumerable: true },
  2497. onloadedmetadata: { enumerable: true },
  2498. onloadstart: { enumerable: true },
  2499. onmousedown: { enumerable: true },
  2500. onmouseenter: { enumerable: true },
  2501. onmouseleave: { enumerable: true },
  2502. onmousemove: { enumerable: true },
  2503. onmouseout: { enumerable: true },
  2504. onmouseover: { enumerable: true },
  2505. onmouseup: { enumerable: true },
  2506. onpaste: { enumerable: true },
  2507. onpause: { enumerable: true },
  2508. onplay: { enumerable: true },
  2509. onplaying: { enumerable: true },
  2510. onprogress: { enumerable: true },
  2511. onratechange: { enumerable: true },
  2512. onreset: { enumerable: true },
  2513. onresize: { enumerable: true },
  2514. onscroll: { enumerable: true },
  2515. onscrollend: { enumerable: true },
  2516. onsecuritypolicyviolation: { enumerable: true },
  2517. onseeked: { enumerable: true },
  2518. onseeking: { enumerable: true },
  2519. onselect: { enumerable: true },
  2520. onslotchange: { enumerable: true },
  2521. onstalled: { enumerable: true },
  2522. onsubmit: { enumerable: true },
  2523. onsuspend: { enumerable: true },
  2524. ontimeupdate: { enumerable: true },
  2525. ontoggle: { enumerable: true },
  2526. onvolumechange: { enumerable: true },
  2527. onwaiting: { enumerable: true },
  2528. onwebkitanimationend: { enumerable: true },
  2529. onwebkitanimationiteration: { enumerable: true },
  2530. onwebkitanimationstart: { enumerable: true },
  2531. onwebkittransitionend: { enumerable: true },
  2532. onwheel: { enumerable: true },
  2533. ontouchstart: { enumerable: true },
  2534. ontouchend: { enumerable: true },
  2535. ontouchmove: { enumerable: true },
  2536. ontouchcancel: { enumerable: true },
  2537. onpointerover: { enumerable: true },
  2538. onpointerenter: { enumerable: true },
  2539. onpointerdown: { enumerable: true },
  2540. onpointermove: { enumerable: true },
  2541. onpointerrawupdate: { enumerable: true },
  2542. onpointerup: { enumerable: true },
  2543. onpointercancel: { enumerable: true },
  2544. onpointerout: { enumerable: true },
  2545. onpointerleave: { enumerable: true },
  2546. ongotpointercapture: { enumerable: true },
  2547. onlostpointercapture: { enumerable: true },
  2548. dataset: { enumerable: true },
  2549. nonce: { enumerable: true },
  2550. tabIndex: { enumerable: true },
  2551. [Symbol.toStringTag]: { value: "SVGElement", configurable: true }
  2552. });
  2553. ctorRegistry[interfaceName] = SVGElement;
  2554. Object.defineProperty(globalObject, interfaceName, {
  2555. configurable: true,
  2556. writable: true,
  2557. value: SVGElement
  2558. });
  2559. };
  2560. const Impl = require("../../jsdom/living/nodes/SVGElement-impl.js");