blob: abae4021774c56b8c52054ebf9eef317ca24e331 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.ait.lienzo.client.core;
import elemental2.dom.Path2D;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
/**
* This currently is only used by SVGPath and exists only to track if the Path2D was closed or not, and thus should be filled
*/
@JsType(isNative = true, name = "Path2D", namespace = JsPackage.GLOBAL)
public class LienzoPath2D extends Path2D {
public boolean closed;
@JsOverlay
public final boolean isClosed() {
return closed;
}
}