Files
@ 4682f604b245
Branch filter:
Location: light9/web/paint/paint-report-elements.html
4682f604b245
4.5 KiB
text/html
dead code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | <link rel="import" href="/lib/polymer/polymer.html">
<link rel="import" href="/lib/iron-resizable-behavior/iron-resizable-behavior.html">
<link rel="import" href="/lib/iron-ajax/iron-ajax.html">
<dom-module id="light9-simulation">
<template>
<style>
#solutions { display: flex; margin: 20px; }
#single-light { margin-right: 70px; }
#multi-light {}
#breakdown { position: relative; }
#sources { display: flex; }
#solution { display: flex; margin-top: 80px; }
#connectors { position: absolute; width: 100%; height: 100%; z-index: -1; }
#connectors path { stroke: #615c54; stroke-width: 3px; }
[draggable=true]:hover {
box-shadow: 0 0 20px yellow;
}
</style>
<div id="solutions">
<div id="single-light">
<div>Single pic best match:</div>
<!-- drag this img to make an effect out of just it -->
<light9-capture-image name="lighhtnamehere" path="{{solution.bestMatch.path}}"></light9-capture-image>
<div>Error: {{solution.bestMatch.dist}}</div>
<light9-device-settings graph="{{graph}}" subj="{{solution.bestMatch.uri}}"></light9-device-settings>
</div>
<!-- existing effect best match? -->
<div id="multi-light">
Created from multiple lights:
<div id="breakdown">
<svg id="connectors">
<g>
<path d="M 112,241 L 150,280"></path>
<path d="M 332,241 L 150,280"></path>
<path d="M 532,241 L 150,280"></path>
<path d="M 732,241 L 150,280"></path>
</g>
</svg>
<div id="sources">
<div class="effectLike" draggable="true">
<light9-capture-image name="aura1" path="show/dance2017/capture/moving1/cap258592/pic1.jpg"></light9-capture-image>
<light9-device-settings></light9-device-settings>
</div>
<div>
<light9-capture-image name="aura2" path="show/dance2017/capture/moving1/cap258592/pic1.jpg"></light9-capture-image>
<light9-device-settings></light9-device-settings>
</div>
<div>
<light9-capture-image name="aura3" path="show/dance2017/capture/moving1/cap258592/pic1.jpg"></light9-capture-image>
<light9-device-settings></light9-device-settings>
</div>
<div>
<light9-capture-image name="aura4" path="show/dance2017/capture/moving1/cap258592/pic1.jpg"></light9-capture-image>
<light9-device-settings></light9-device-settings>
</div>
</div>
<div id="solution">
<div>
<div>combined</div>
<!-- drag this img to make an effect out of it -->
<div><img width="150" src="../show/dance2017/capture/moving1/cap258592/pic1.jpg"></div>
<div>error 9980</div>
</div>
<div>
<div>residual</div>
<div><img width="150" src="../show/dance2017/capture/moving1/cap258592/pic1.jpg"></div>
</div>
</div>
</div>
Save as effect named <input> <button>Save</button>
</div>
</template>
</dom-module>
<!-- merge more with light9-collector-device -->
<dom-module id="light9-device-settings">
<template>
<style>
:host {
display: block;
break-inside: avoid-column;
border: 2px solid gray;
padding: 8px;
}
td.nonzero {
background: #310202;
color: #e25757;
}
td.full {
background: #2b0000;
color: red;
font-weight: bold;
}
</style>
<h3><a href="{{subj}}">{{label}}</a></h3>
<table class="borders">
<tr>
<th>device attr</th>
<th>value</th>
</tr>
<template is="dom-repeat" items="{{attrs}}">
<tr>
<td>{{item.attr}}</td>
<td class$="{{item.valClass}}">{{item.val}}</td>
</tr>
</template>
</template>
</dom-module>
<dom-module id="light9-capture-image">
<template>
<style>
:host { display: block; }
img {
outline: 1px solid #232323;
margin: 5px;
}
</style>
<div>{{name}}</div>
<div><img width="100" src="../{{path}}"></div>
</template>
<script>
Polymer({
is: "light9-capture-image",
properties: {
name: { type: String },
path: { type: String },
}
});
</script>
</dom-module>
|