tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

w3c_css3d.js (6250B)


      1 /*
      2 * Copyright 2010 The Closure Compiler Authors
      3 *
      4 * Licensed under the Apache License, Version 2.0 (the "License");
      5 * you may not use this file except in compliance with the License.
      6 * You may obtain a copy of the License at
      7 *
      8 *     http://www.apache.org/licenses/LICENSE-2.0
      9 *
     10 * Unless required by applicable law or agreed to in writing, software
     11 * distributed under the License is distributed on an "AS IS" BASIS,
     12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13 * See the License for the specific language governing permissions and
     14 * limitations under the License.
     15 */
     16 
     17 /**
     18 * @fileoverview Definitions for W3C's CSS 3D Transforms specification.
     19 *  The whole file has been fully type annotated. Created from
     20 *  https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html
     21 *
     22 * @externs
     23 */
     24 
     25 /**
     26 * @constructor
     27 * @param {string=} opt_matrix
     28 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#the-cssmatrix-interface
     29 */
     30 function CSSMatrix(opt_matrix) {}
     31 
     32 /**
     33 * @type {number}
     34 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
     35 */
     36 CSSMatrix.prototype.m11;
     37 
     38 /**
     39 * @type {number}
     40 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
     41 */
     42 CSSMatrix.prototype.m12;
     43 
     44 /**
     45 * @type {number}
     46 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
     47 */
     48 CSSMatrix.prototype.m13;
     49 
     50 /**
     51 * @type {number}
     52 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
     53 */
     54 CSSMatrix.prototype.m14;
     55 
     56 /**
     57 * @type {number}
     58 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
     59 */
     60 CSSMatrix.prototype.m21;
     61 
     62 /**
     63 * @type {number}
     64 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
     65 */
     66 CSSMatrix.prototype.m22;
     67 
     68 /**
     69 * @type {number}
     70 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
     71 */
     72 CSSMatrix.prototype.m23;
     73 
     74 /**
     75 * @type {number}
     76 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
     77 */
     78 CSSMatrix.prototype.m24;
     79 
     80 /**
     81 * @type {number}
     82 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
     83 */
     84 CSSMatrix.prototype.m31;
     85 
     86 /**
     87 * @type {number}
     88 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
     89 */
     90 CSSMatrix.prototype.m32;
     91 
     92 /**
     93 * @type {number}
     94 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
     95 */
     96 CSSMatrix.prototype.m33;
     97 
     98 /**
     99 * @type {number}
    100 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
    101 */
    102 CSSMatrix.prototype.m34;
    103 
    104 /**
    105 * @type {number}
    106 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
    107 */
    108 CSSMatrix.prototype.m41;
    109 
    110 /**
    111 * @type {number}
    112 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
    113 */
    114 CSSMatrix.prototype.m42;
    115 
    116 /**
    117 * @type {number}
    118 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
    119 */
    120 CSSMatrix.prototype.m43;
    121 
    122 /**
    123 * @type {number}
    124 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
    125 */
    126 CSSMatrix.prototype.m44;
    127 
    128 /**
    129 * @param {string} string
    130 * @return {void}
    131 */
    132 CSSMatrix.prototype.setMatrixValue = function(string) {};
    133 
    134 /**
    135 * @param {!CSSMatrix} secondMatrix
    136 * @return {!CSSMatrix}
    137 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#widl-CSSMatrix-multiply-CSSMatrix-CSSMatrix-other
    138 */
    139 CSSMatrix.prototype.multiply = function(secondMatrix) {};
    140 
    141 /**
    142 * @return {CSSMatrix} Returns void if the matrix is non-invertable.
    143 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#widl-CSSMatrix-inverse-CSSMatrix
    144 */
    145 CSSMatrix.prototype.inverse = function() {};
    146 
    147 /**
    148 * @param {number=} opt_x Defaults to 0.
    149 * @param {number=} opt_y Defaults to 0.
    150 * @param {number=} opt_z Defaults to 0.
    151 * @return {!CSSMatrix}
    152 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#widl-CSSMatrix-translate-CSSMatrix-unrestricted-double-tx-unrestricted-double-ty-unrestricted-double-tz
    153 */
    154 CSSMatrix.prototype.translate = function(opt_x, opt_y, opt_z) {};
    155 
    156 /**
    157 * @param {number=} opt_scaleX Defaults to 1.
    158 * @param {number=} opt_scaleY Defaults to scaleX.
    159 * @param {number=} opt_scaleZ Defaults to 1.
    160 * @return {!CSSMatrix}
    161 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#widl-CSSMatrix-scale-CSSMatrix-unrestricted-double-scale-unrestricted-double-originX-unrestricted-double-originY
    162 */
    163 CSSMatrix.prototype.scale = function(opt_scaleX, opt_scaleY, opt_scaleZ) {};
    164 
    165 /**
    166 * @param {number=} opt_rotX Defaults to 0.
    167 * @param {number=} opt_rotY Defaults to 0.
    168 * @param {number=} opt_rotZ Defaults to rotX if rotY is not defined, else 0.
    169 * @return {!CSSMatrix}
    170 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#widl-CSSMatrix-rotate-CSSMatrix-unrestricted-double-angle-unrestricted-double-originX-unrestricted-double-originY
    171 */
    172 CSSMatrix.prototype.rotate = function(opt_rotX, opt_rotY, opt_rotZ) {};
    173 
    174 /**
    175 * @param {number=} opt_x Defaults to 0.
    176 * @param {number=} opt_y Defaults to 0.
    177 * @param {number=} opt_z Defaults to 0.
    178 * @param {number=} opt_angle Defaults to 0.
    179 * @return {!CSSMatrix}
    180 * @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#widl-CSSMatrix-rotateAxisAngle-CSSMatrix-unrestricted-double-x-unrestricted-double-y-unrestricted-double-z-unrestricted-double-angle
    181 */
    182 CSSMatrix.prototype.rotateAxisAngle =
    183    function(opt_x, opt_y, opt_z, opt_angle) {};
    184 
    185 /**
    186 * @constructor
    187 * @param {string=} opt_matrix
    188 * @extends {CSSMatrix}
    189 * @see http://developer.apple.com/safari/library/documentation/AudioVideo/Reference/WebKitCSSMatrixClassReference/WebKitCSSMatrix/WebKitCSSMatrix.html#//apple_ref/javascript/instm/WebKitCSSMatrix/setMatrixValue
    190 */
    191 function WebKitCSSMatrix(opt_matrix) {}
    192 
    193 /**
    194 * @constructor
    195 * @param {string=} opt_matrix
    196 * @extends {CSSMatrix}
    197 * @see http://msdn.microsoft.com/en-us/library/windows/apps/hh453593.aspx
    198 */
    199 function MSCSSMatrix(opt_matrix) {}