Files
@ 0480fc790527
Branch filter:
Location: light9/light9/web/paint/paint-report-elements.html
0480fc790527
4.5 KiB
text/html
paint now looks for best match
Ignore-this: 5604a2a2181624a0612dddf1afa32985
Ignore-this: 5604a2a2181624a0612dddf1afa32985
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 149 150 151 152 153 154 155 156 | <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%; }
#connectors path { stroke: #615c54; stroke-width: 3px; }
</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="mac2" path="{{solution.bestMatch.path}}"></light9-capture-image>
<div>Error: 280844</div>
<light9-device-settings></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>
<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>{{label}}</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>
<script>
Polymer({
is: "light9-device-settings",
properties: {
label: {type: String, notify: true},
attrs: {type: Array, notify: true},
},
ready: function() {
this.label = "aura2";
this.attrs = [
{attr: 'rx', val: .03},
{attr: 'color', val: '#ffe897'},
];
}
});
</script>
</dom-module>
<dom-module id="light9-capture-image">
<template>
<style>
:host { display: block; }
</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>
|