mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-25 15:47:55 +01:00
Add Luminati font
This commit is contained in:
parent
96b6d16247
commit
d14c63c0e6
@ -26,6 +26,7 @@ class FontFamilyPanel extends ListToolbarPanel {
|
||||
'<div id="times" model="Times" class="toolbarPanelLink" style="font-family:times;">Times</div>'
|
||||
+ '<div id="arial" model="Arial" style="font-family:arial;">Arial</div>'
|
||||
+ '<div id="tahoma" model="Tahoma" style="font-family:tahoma;">Tahoma</div>'
|
||||
+ '<div id="tahoma" model="Luminari" style="font-family:Luminari">Luminari</div>'
|
||||
+ '<div id="tahoma" model="Brush Script MT" style="font-family:\'Brush Script MT\';">Brush Script</div>'
|
||||
+ '<div id="verdana" model="Verdana" style="font-family:verdana;">Verdana</div>',
|
||||
);
|
||||
|
@ -22,14 +22,16 @@ import LinePeer from './peer/svg/LinePeer';
|
||||
import PolyLinePeer from './peer/svg/PolyLinePeer';
|
||||
import CurvedLinePeer from './peer/svg/CurvedLinePeer';
|
||||
import ArrowPeer from './peer/svg/ArrowPeer';
|
||||
// eslint-disable-next-line import/no-cycle
|
||||
import TextPeer from './peer/svg/TextPeer';
|
||||
import ImagePeer from './peer/svg/ImagePeer';
|
||||
import RectPeer from './peer/svg/RectPeer';
|
||||
import ArialFont from './peer/svg/ArialFont';
|
||||
import TimesFont from './peer/svg/TimesFont';
|
||||
import VerdanaFont from './peer/svg/VerdanaFont';
|
||||
import TahomaFont from './peer/svg/TahomaFont';
|
||||
import BrushScriptMTFont from './peer/svg/BrushScriptFont';
|
||||
import ArialFont from './peer/svg/font/ArialFont';
|
||||
import TimesFont from './peer/svg/font/TimesFont';
|
||||
import VerdanaFont from './peer/svg/font/VerdanaFont';
|
||||
import TahomaFont from './peer/svg/font/TahomaFont';
|
||||
import LuminariFont from './peer/svg/font/LuminariFont';
|
||||
import BrushScriptMTFont from './peer/svg/font/BrushScriptFont';
|
||||
|
||||
class Toolkit {
|
||||
static createFontByName(fontName) {
|
||||
@ -86,6 +88,10 @@ class Toolkit {
|
||||
return new TimesFont();
|
||||
}
|
||||
|
||||
static createLuminariFont() {
|
||||
return new LuminariFont();
|
||||
}
|
||||
|
||||
static createVerdanaFont() {
|
||||
return new VerdanaFont();
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ class Workspace extends ElementClass {
|
||||
* they are simple numbers, not CSS length quantities.
|
||||
*/
|
||||
setCoordSize(width, height) {
|
||||
this.peer.setCoordSize(width, height);
|
||||
this.peer.setCoordSize(parseInt(width, 10), parseInt(height, 10));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -15,7 +15,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import FontPeer from './FontPeer';
|
||||
import FontPeer from '../FontPeer';
|
||||
|
||||
class ArialFont extends FontPeer {
|
||||
constructor() {
|
@ -15,7 +15,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import FontPeer from './FontPeer';
|
||||
import FontPeer from '../FontPeer';
|
||||
|
||||
class BrushScriptMTFont extends FontPeer {
|
||||
// eslint-disable-next-line class-methods-use-this
|
26
packages/web2d/src/components/peer/svg/font/LuminariFont.js
Normal file
26
packages/web2d/src/components/peer/svg/font/LuminariFont.js
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright [2021] [wisemapping]
|
||||
*
|
||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||
* "powered by wisemapping" text requirement on every single page;
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the license at
|
||||
*
|
||||
* http://www.wisemapping.org/license
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
import FontPeer from '../FontPeer';
|
||||
|
||||
class LuminariFont extends FontPeer {
|
||||
constructor() {
|
||||
super('Luminari');
|
||||
}
|
||||
}
|
||||
|
||||
export default LuminariFont;
|
@ -15,7 +15,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import FontPeer from './FontPeer';
|
||||
import FontPeer from '../FontPeer';
|
||||
|
||||
class TahomaFont extends FontPeer {
|
||||
constructor() {
|
@ -15,7 +15,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import FontPeer from './FontPeer';
|
||||
import FontPeer from '../FontPeer';
|
||||
|
||||
class TimesFont extends FontPeer {
|
||||
constructor() {
|
@ -15,7 +15,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import FontPeer from './FontPeer';
|
||||
import FontPeer from '../FontPeer';
|
||||
|
||||
class VerdanaFont extends FontPeer {
|
||||
constructor() {
|
Loading…
Reference in New Issue
Block a user