-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix/child-list-set-at
- Loading branch information
Showing
5 changed files
with
1,081 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!-- | ||
If not stated otherwise in this file or this component's LICENSE file the | ||
following copyright and licenses apply: | ||
Copyright 2020 Metrological | ||
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. | ||
--> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
|
||
<script src="../../devtools/lightning-inspect.js"></script> | ||
</head> | ||
<body> | ||
<script type="module"> | ||
//attachInspector(lng) | ||
import lng from '../../src/lightning.mjs'; | ||
const TEXT = "This text is normal.\nThis text is <b>bold</b>.\nThis text is <i>italic</i>.\nThis text is <color=0xffcc2222>red</color>.\nThis text is brokennnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn up.\n" | ||
|
||
window.onload = function() { | ||
class BasicUsageExample extends lng.Application { | ||
static _template() { | ||
return { | ||
text: { | ||
w: 500, | ||
wordBreak: true, | ||
advancedRenderer: true, | ||
text: TEXT | ||
} | ||
} | ||
} | ||
} | ||
|
||
const options = {stage: {w: 900, h: 900, clearColor: 0xFF000000, canvas2d: false, useImageWorker: false}, debug: true} | ||
|
||
const app = new BasicUsageExample(options); | ||
|
||
document.body.appendChild(app.stage.getCanvas()); | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.