/* * Copyright (c) 2024, MacDue * Copyright (c) 2024, Jamie Mansfield * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include namespace Web::SVG { JS_DEFINE_ALLOCATOR(SVGTransform); JS::NonnullGCPtr SVGTransform::create(JS::Realm& realm) { return realm.heap().allocate(realm, realm); } SVGTransform::SVGTransform(JS::Realm& realm) : PlatformObject(realm) {}; SVGTransform::~SVGTransform() = default; void SVGTransform::initialize(JS::Realm& realm) { Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGTransform); } // https://svgwg.org/svg2-draft/single-page.html#coords-__svg__SVGTransform__type SVGTransform::Type SVGTransform::type() { dbgln("FIXME: Implement SVGTransform::type()"); return SVGTransform::Type::Unknown; } // https://svgwg.org/svg2-draft/single-page.html#coords-__svg__SVGTransform__angle float SVGTransform::angle() { dbgln("FIXME: Implement SVGTransform::angle()"); return 0; } // https://svgwg.org/svg2-draft/single-page.html#coords-__svg__SVGTransform__setTranslate void SVGTransform::set_translate(float tx, float ty) { (void)tx; (void)ty; dbgln("FIXME: Implement SVGTransform::set_translate(float tx, float ty)"); } // https://svgwg.org/svg2-draft/single-page.html#coords-__svg__SVGTransform__setScale void SVGTransform::set_scale(float sx, float sy) { (void)sx; (void)sy; dbgln("FIXME: Implement SVGTransform::set_scale(float sx, float sy)"); } }