/*
 * Copyright 2017 iserge.
 *
 * Licensed 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 org.openlayers.ol;

import jsinterop.annotations.JsConstructor;
import jsinterop.annotations.JsType;

/**
 * @author Serge Silaev aka iSergio <s.serge.b@gmail.com>
 */
@JsType(isNative = true, namespace = "ol", name = "Pixel")
public class Pixel {
    @JsConstructor
    public Pixel(double[] array) {}
}

@@ -692,214 +692,845 @@
 s.Js
-Type;%0A%0A/**%0A * @author Serge Silaev aka iSergio %3Cs.serge.b@gmail.com%3E%0A */%0A@JsType(isNative = true, namespace = %22ol%22, name = %22Pixel%22)%0Apublic class Pixel %7B%0A    @JsConstructor%0A    public Pixel(double%5B%5D array) %7B
+Overlay;%0Aimport jsinterop.annotations.JsType;%0A%0A/**%0A * An array with two elements, representing a pixel.%0A * The first element is the x-coordinate, the second the y-coordinate of the pixel.%0A *%0A * @author Serge Silaev aka iSergio %3Cs.serge.b@gmail.com%3E%0A */%0A@JsType(isNative = true, namespace = %22ol%22, name = %22Pixel%22)%0Apublic class Pixel %7B%0A    @JsConstructor%0A    public Pixel(int%5B%5D array) %7B%7D%0A%0A    @JsOverlay%0A    public static Pixel craete(int x, int y) %7B%0A        return new Pixel(new int%5B%5D %7Bx, y%7D);%0A    %7D%0A%0A    @JsOverlay%0A    public final double getX() %7B%0A        return JsUtils.get(this, 0);%0A    %7D%0A%0A    @JsOverlay%0A    public final double getY() %7B%0A        return JsUtils.get(this, 1);%0A    %7D%0A%0A    @JsOverlay%0A    public final String toString() %7B%0A        return %22%5B%22 + getX() +%0A                %22,%22 +%0A                getY() +%0A                %22%5D%22;%0A    
 %7D%0A%7D%0A

Fix for Pixel class