www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

GeometricShapes.js (2976B)


      1 /*************************************************************
      2  *
      3  *  MathJax/fonts/HTML-CSS/TeX/png/AMS/Regular/GeometricShapes.js
      4  *  
      5  *  Defines the image size data needed for the HTML-CSS OutputJax
      6  *  to display mathematics using fallback images when the fonts
      7  *  are not availble to the client browser.
      8  *
      9  *  ---------------------------------------------------------------------
     10  *
     11  *  Copyright (c) 2009-2013 The MathJax Consortium
     12  *
     13  *  Licensed under the Apache License, Version 2.0 (the "License");
     14  *  you may not use this file except in compliance with the License.
     15  *  You may obtain a copy of the
     16  *
     17  *     http://www.apache.org/licenses/LICENSE-2.0
     18  *
     19  *  Unless required by applicable law or agreed to in writing, software
     20  *  distributed under the License is distributed on an "AS IS" BASIS,
     21  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     22  *  See the License for the specific language governing permissions and
     23  *  limitations under the License.
     24  *
     25  */
     26 
     27 MathJax.OutputJax["HTML-CSS"].defineImageData({
     28   "MathJax_AMS": {
     29     0x25A0: [  // BLACK SQUARE
     30       [5,5,0],[6,6,0],[8,7,0],[9,9,0],[10,10,0],[12,12,0],[15,14,0],[17,16,0],
     31       [20,20,0],[24,23,0],[29,27,0],[34,32,0],[40,39,0],[48,46,0]
     32     ],
     33     0x25A1: [  // WHITE SQUARE
     34       [5,5,0],[6,6,0],[7,7,0],[9,8,0],[10,10,0],[12,12,0],[14,14,0],[17,16,0],
     35       [21,20,0],[24,23,0],[29,27,0],[34,32,0],[40,39,0],[48,46,0]
     36     ],
     37     0x25B2: [  // BLACK UP-POINTING TRIANGLE
     38       [5,5,1],[6,6,1],[7,7,1],[8,8,1],[9,9,1],[11,11,1],[13,13,1],[15,15,1],
     39       [18,17,1],[21,20,1],[25,24,1],[30,28,1],[36,34,2],[42,40,2]
     40     ],
     41     0x25B3: [  // WHITE UP-POINTING TRIANGLE
     42       [5,5,0],[6,5,0],[7,6,0],[8,8,1],[9,10,1],[11,11,1],[13,13,1],[15,15,1],
     43       [18,17,1],[21,20,1],[25,24,1],[30,28,1],[36,34,2],[42,41,2]
     44     ],
     45     0x25B6: [  // BLACK RIGHT-POINTING TRIANGLE
     46       [5,5,1],[6,6,1],[7,7,1],[9,8,1],[10,9,1],[12,10,1],[14,12,1],[17,14,1],
     47       [20,17,2],[23,20,2],[28,24,2],[33,28,2],[39,33,3],[46,39,3]
     48     ],
     49     0x25BC: [  // BLACK DOWN-POINTING TRIANGLE
     50       [5,5,1],[6,6,1],[7,7,1],[8,8,1],[9,9,1],[11,11,1],[13,13,1],[15,15,1],
     51       [18,17,1],[21,20,1],[25,24,1],[30,28,1],[36,33,1],[42,40,2]
     52     ],
     53     0x25BD: [  // WHITE DOWN-POINTING TRIANGLE
     54       [5,5,1],[6,6,1],[7,7,1],[8,8,1],[9,9,1],[11,11,1],[13,13,1],[15,15,1],
     55       [18,17,1],[21,20,1],[25,24,1],[30,28,1],[36,33,1],[42,40,2]
     56     ],
     57     0x25C0: [  // BLACK LEFT-POINTING TRIANGLE
     58       [5,5,1],[6,6,1],[7,7,1],[9,8,1],[10,9,1],[12,10,1],[14,12,1],[17,14,1],
     59       [20,17,2],[23,20,2],[28,24,2],[33,28,2],[39,33,3],[46,39,3]
     60     ],
     61     0x25CA: [  // LOZENGE
     62       [5,6,1],[6,8,2],[7,10,2],[8,11,2],[9,12,2],[11,15,3],[12,17,3],[15,21,4],
     63       [17,24,4],[21,29,5],[25,35,6],[29,41,7],[34,48,8],[41,57,9]
     64     ]
     65   }
     66 });
     67 
     68 MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].imgDir+"/AMS/Regular"+
     69                           MathJax.OutputJax["HTML-CSS"].imgPacked+"/GeometricShapes.js");