@operato/scene-basic 7.3.9 → 7.3.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/CHANGELOG.md +0 -233
- package/demo/index.html +0 -158
- package/demo/things-scene-basic.html +0 -6
- package/src/anchors/ellipse-anchors.ts +0 -46
- package/src/audio.ts +0 -173
- package/src/cloud.ts +0 -40
- package/src/donut.ts +0 -92
- package/src/ellipse.ts +0 -90
- package/src/gif-view.ts +0 -146
- package/src/image-view.ts +0 -215
- package/src/index.ts +0 -16
- package/src/outline/ellipse-outline.ts +0 -15
- package/src/polygon.ts +0 -103
- package/src/polyline.ts +0 -122
- package/src/rect.ts +0 -71
- package/src/star.ts +0 -104
- package/src/templates/audio.ts +0 -15
- package/src/templates/color-image.ts +0 -23
- package/src/templates/donut.ts +0 -23
- package/src/templates/ellipse.ts +0 -22
- package/src/templates/gif-image.ts +0 -15
- package/src/templates/gray-image.ts +0 -23
- package/src/templates/index.ts +0 -16
- package/src/templates/polygon.ts +0 -25
- package/src/templates/polyline.ts +0 -25
- package/src/templates/rect.ts +0 -22
- package/src/templates/star.ts +0 -24
- package/src/templates/text.ts +0 -28
- package/src/templates/triangle.ts +0 -24
- package/src/text.ts +0 -12
- package/src/triangle.ts +0 -87
- package/test/basic-test.html +0 -63
- package/test/index.html +0 -22
- package/tsconfig.json +0 -23
- package/tsconfig.tsbuildinfo +0 -1
package/test/basic-test.html
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<!--
|
|
3
|
-
@license
|
|
4
|
-
Copyright © HatioLab Inc. All rights reserved.
|
|
5
|
-
-->
|
|
6
|
-
<html>
|
|
7
|
-
<head>
|
|
8
|
-
<meta charset="utf-8" />
|
|
9
|
-
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes" />
|
|
10
|
-
|
|
11
|
-
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
|
12
|
-
<script src="../../web-component-tester/browser.js"></script>
|
|
13
|
-
|
|
14
|
-
<!-- Step 1: import the element to test -->
|
|
15
|
-
<link rel="import" href="../things-scene-basic.html" />
|
|
16
|
-
</head>
|
|
17
|
-
<body>
|
|
18
|
-
<!-- You can use the document as a place to set up your fixtures. -->
|
|
19
|
-
<test-fixture id="things-scene-basic-fixture">
|
|
20
|
-
<template>
|
|
21
|
-
<things-scene-basic>
|
|
22
|
-
<h2>things-scene-basic</h2>
|
|
23
|
-
</things-scene-basic>
|
|
24
|
-
</template>
|
|
25
|
-
</test-fixture>
|
|
26
|
-
|
|
27
|
-
<script>
|
|
28
|
-
suite('<things-scene-basic>', function () {
|
|
29
|
-
var myEl
|
|
30
|
-
|
|
31
|
-
setup(function () {
|
|
32
|
-
myEl = fixture('things-scene-basic-fixture')
|
|
33
|
-
})
|
|
34
|
-
|
|
35
|
-
test('defines the "author" property', function () {
|
|
36
|
-
assert.equal(myEl.author.name, 'Dimitri Glazkov')
|
|
37
|
-
assert.equal(myEl.author.image, 'http://addyosmani.com/blog/wp-content/uploads/2013/04/unicorn.jpg')
|
|
38
|
-
})
|
|
39
|
-
|
|
40
|
-
test('says hello', function () {
|
|
41
|
-
assert.equal(myEl.sayHello(), 'things-scene-basic says, Hello World!')
|
|
42
|
-
|
|
43
|
-
var greetings = myEl.sayHello('greetings Earthlings')
|
|
44
|
-
assert.equal(greetings, 'things-scene-basic says, greetings Earthlings')
|
|
45
|
-
})
|
|
46
|
-
|
|
47
|
-
test('fires lasers', function (done) {
|
|
48
|
-
myEl.addEventListener('things-scene-basic-lasers', function (event) {
|
|
49
|
-
assert.equal(event.detail.sound, 'Pew pew!')
|
|
50
|
-
done()
|
|
51
|
-
})
|
|
52
|
-
myEl.fireLasers()
|
|
53
|
-
})
|
|
54
|
-
|
|
55
|
-
test('distributed children', function () {
|
|
56
|
-
var els = myEl.getContentChildren()
|
|
57
|
-
assert.equal(els.length, 1, 'one distributed node')
|
|
58
|
-
assert.equal(els[0], myEl.querySelector('h2'), 'content distributed correctly')
|
|
59
|
-
})
|
|
60
|
-
})
|
|
61
|
-
</script>
|
|
62
|
-
</body>
|
|
63
|
-
</html>
|
package/test/index.html
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<!--
|
|
3
|
-
@license
|
|
4
|
-
Copyright © HatioLab Inc. All rights reserved.
|
|
5
|
-
-->
|
|
6
|
-
<html><head>
|
|
7
|
-
<meta charset="utf-8">
|
|
8
|
-
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
|
|
9
|
-
|
|
10
|
-
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
|
11
|
-
<script src="../../web-component-tester/browser.js"></script>
|
|
12
|
-
</head>
|
|
13
|
-
<body>
|
|
14
|
-
<script>
|
|
15
|
-
// Load and run all tests (.html, .js):
|
|
16
|
-
WCT.loadSuites([
|
|
17
|
-
'basic-test.html',
|
|
18
|
-
'basic-test.html?dom=shadow'
|
|
19
|
-
]);
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
</body></html>
|
package/tsconfig.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2018",
|
|
4
|
-
"module": "esnext",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"noEmitOnError": true,
|
|
7
|
-
"lib": ["es2019", "dom"],
|
|
8
|
-
"strict": true,
|
|
9
|
-
"esModuleInterop": false,
|
|
10
|
-
"allowJs": true,
|
|
11
|
-
"allowSyntheticDefaultImports": true,
|
|
12
|
-
"experimentalDecorators": true,
|
|
13
|
-
"importHelpers": true,
|
|
14
|
-
"outDir": "dist",
|
|
15
|
-
"sourceMap": true,
|
|
16
|
-
"inlineSources": true,
|
|
17
|
-
"rootDir": "src",
|
|
18
|
-
"declaration": true,
|
|
19
|
-
"incremental": true,
|
|
20
|
-
"skipLibCheck": true
|
|
21
|
-
},
|
|
22
|
-
"include": ["**/*.ts", "*.d.ts"]
|
|
23
|
-
}
|