mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
update version
This commit is contained in:
parent
30aad2efb6
commit
2328fb06d4
@ -23,7 +23,7 @@ This repository began as a GitHub fork of [ericdrowell/KineticJS](https://github
|
|||||||
# Quick Look
|
# Quick Look
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<script src="https://unpkg.com/konva@3.1.0/konva.js"></script>
|
<script src="https://unpkg.com/konva@7.2.5/konva.min.js"></script>
|
||||||
<div id="container"></div>
|
<div id="container"></div>
|
||||||
<script>
|
<script>
|
||||||
var stage = new Konva.Stage({
|
var stage = new Konva.Stage({
|
||||||
@ -74,10 +74,10 @@ Konva supports UMD loading. So you can use all possible variants to load the fra
|
|||||||
### 1 Load Konva via classical `<script>` tag:
|
### 1 Load Konva via classical `<script>` tag:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<script src="https://unpkg.com/konva@^4.0.3/konva.js"></script>
|
<script src="https://unpkg.com/konva@7.2.5/konva.min.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also use a CDN: [https://unpkg.com/konva@^4.0.3/konva.js](https://unpkg.com/konva@^4.0.3/konva.js)
|
You can also use a CDN: [https://unpkg.com/konva@7.2.5/konva.min.js](https://unpkg.com/konva@7.2.5/konva.min.js)
|
||||||
|
|
||||||
### 2 Install with npm:
|
### 2 Install with npm:
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ function checkDefaultFill(config) {
|
|||||||
* @param {Object} config
|
* @param {Object} config
|
||||||
* @param {String} [config.fontFamily] default is Arial
|
* @param {String} [config.fontFamily] default is Arial
|
||||||
* @param {Number} [config.fontSize] in pixels. Default is 12
|
* @param {Number} [config.fontSize] in pixels. Default is 12
|
||||||
* @param {String} [config.fontStyle] can be normal, bold, or italic. Default is normal
|
* @param {String} [config.fontStyle] can be 'normal', 'bold', 'italic' or even 'italic bold'. Default is 'normal'
|
||||||
* @param {String} [config.fontVariant] can be normal or small-caps. Default is normal
|
* @param {String} [config.fontVariant] can be normal or small-caps. Default is normal
|
||||||
* @param {String} [config.textDecoration] can be line-through, underline or empty string. Default is empty string.
|
* @param {String} [config.textDecoration] can be line-through, underline or empty string. Default is empty string.
|
||||||
* @param {String} config.text
|
* @param {String} config.text
|
||||||
@ -670,7 +670,7 @@ Factory.addGetterSetter(Text, 'fontFamily', 'Arial');
|
|||||||
Factory.addGetterSetter(Text, 'fontSize', 12, getNumberValidator());
|
Factory.addGetterSetter(Text, 'fontSize', 12, getNumberValidator());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get/set font style. Can be 'normal', 'italic', or 'bold'. 'normal' is the default.
|
* get/set font style. Can be 'normal', 'italic', or 'bold' or even 'italic bold'. 'normal' is the default.
|
||||||
* @name Konva.Text#fontStyle
|
* @name Konva.Text#fontStyle
|
||||||
* @method
|
* @method
|
||||||
* @param {String} fontStyle
|
* @param {String} fontStyle
|
||||||
|
Loading…
Reference in New Issue
Block a user