Inital Commit

This commit is contained in:
brammp committed 2022-01-21 16:01:56 +01:00
commit ab40ebe2ce
15 files changed
+351

No files matched your search

+1
View File
@@ -0,0 +1 @@
db.php
+48
View File
@@ -0,0 +1,48 @@
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 21, 2022 at 03:57 PM
-- Server version: 8.0.28
-- PHP Version: 8.1.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `pa1`
--
-- --------------------------------------------------------
--
-- Table structure for table `ImgAnnotations`
--
CREATE TABLE `ImgAnnotations` (
`id` int NOT NULL,
`data` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `ImgAnnotations`
--
ALTER TABLE `ImgAnnotations`
ADD PRIMARY KEY (`id`);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+44
View File
@@ -0,0 +1,44 @@
<style>
a.button {
background-color: Gainsboro;
border: none;
color: black;
padding: 10px 10px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}
</style>
<?php
include 'db.php';
//Debug
echo "<br>";echo "ID:"; echo $_POST["TheID"];echo "<br>";
//EndDebugs
//Check if data was send
if (empty($_POST["TheNewData"])) {
echo 'No data has been submitted <br><button onclick="history.back()">Go Back</button>';
}
else {
$stmt = $mysqli->prepare("SELECT TRUE FROM ImgAnnotations WHERE id = ? LIMIT 1");
$stmt->bind_param("i", $_POST["TheID"]);
$stmt->execute();
$result = $stmt->get_result(); // get the mysqli result
if( mysqli_num_rows($result) > 0) {
//ID does exits, updating";
$stmt = $mysqli->prepare("UPDATE ImgAnnotations SET data = ? WHERE id = ?");
$stmt->bind_param("si", $_POST["TheNewData"], $_POST["TheID"]);
}else {
//ID doesn't exits, creating";
$stmt = $mysqli->prepare("INSERT INTO ImgAnnotations (id, data) VALUES (?, ?)");
$stmt->bind_param("is", $_POST["TheID"], $_POST["TheNewData"]);
}
$stmt->execute();
echo 'Data has been saved<br> <a href="Editor.php" class="button">Editor</a><a> </a><a href="Viewer.php" class="button">Viewer</a>';
}
//echo $_POST["TheNewData"]
?>
+70
View File
@@ -0,0 +1,70 @@
<?php
//ID Check
if (empty($_POST["TheID"])) {
echo '<style type="text/css">.EditorDialog{display:none;}</style>';
}else {
//If id is set check in database if exists
include 'db.php';
$stmt = $mysqli->prepare("SELECT data FROM ImgAnnotations WHERE id = ? LIMIT 1");
$stmt->bind_param("i", $_POST["TheID"]);
$stmt->execute();
$result = $stmt->get_result();
$resultData = $result->fetch_assoc();
//Check if exists
if (!empty($resultData)) {
//If exists get data
$TheData = $resultData['data'];
}else {
//If not exists start clean
$TheData = "";
}
}
?>
<!DOCTYPE html>
<html>
<head>
<!--Load CSS and JS-->
<link rel="stylesheet" href="vendor/css/app.css">
<link rel="stylesheet" href="vendor/css/reset.css">
<link href="vendor/css/app.css" rel="preload" as="style">
<link href="vendor/js/picture-annotation-chunk-vendors.min.js" rel="preload" as="script">
<link href="vendor/js/picture-annotation.min.js" rel="preload" as="script">
<link href="vendor/css/app.css" rel="stylesheet">
<!--StoreData in js Var until saved-->
<script type="application/javascript">
function callBack(data) {
document.Save.TheNewData.value = data;
}
</script>
</head>
<body>
<div class="LoadDialog">
<!--Load data-->
<form method="post" name="Load" action="">
<label for="TheID">Enter DeviceID:</label>
<input type="number" name="TheID" value="<?php echo $_POST["TheID"]; ?>">
<input type="submit" value="Load">
</form>
</div>
<div class="EditorDialog">
<!--Editor-->
<div id="my-pic-annotation" class="picture-annotation" data-image-src="Screen.png" data-width="1200" data-height="500" data-edit-mode="1" data-callback="callBack">
<!--Load existing Data-->
<div class="picture-annotation-data" style="display:none;"><?php echo $TheData; ?></div>
</div>
<script src="vendor/js/picture-annotation-chunk-vendors.min.js"></script><script src="vendor/js/picture-annotation.min.js"></script>
<!--Hidden form for submitting to DB-->
<form method="post" name="Save" action="Editor-Save.php">
<input type="hidden" name="TheID" value="<?php echo $_POST["TheID"]; ?>">
<input type="hidden" name="TheNewData" value="">
<input type="submit" value="Save" >
</form>
<!--Hidden form for opeing in Vierwer-->
<form method="post" name="OpenInViewer" action="Viewer.php">
<input type="hidden" name="TheID" value="<?php echo $_POST["TheID"]; ?>">
<input type="submit" value="Open in Viewer" >
</form>
</div>
</body>
</html>
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

+60
View File
@@ -0,0 +1,60 @@
<?php
//ID Check
if (empty($_POST["TheID"])) {
echo '<style type="text/css">.EditorDialog{display:none;}</style>';
}else {
//If id is set check in database if exists
include 'db.php';
$stmt = $mysqli->prepare("SELECT data FROM ImgAnnotations WHERE id = ? LIMIT 1");
$stmt->bind_param("i", $_POST["TheID"]);
$stmt->execute();
$result = $stmt->get_result();
$resultData = $result->fetch_assoc();
//Check if exists
if (!empty($resultData)) {
//If exists get data
$TheData = $resultData['data'];
}else {
//If not exists start clean
echo '<p style="color: red;font-weight: bold;">This DeviceID does not exist</p>';
echo '<p style="font-weight: bold;">Open in Editor to create it</p>';
echo '<style type="text/css">.EditorDialog{display:none;}</style>';
}
}
?>
<!DOCTYPE html>
<html>
<head>
<!--Load CSS and JS-->
<link rel="stylesheet" href="vendor/css/app.css">
<link rel="stylesheet" href="vendor/css/reset.css">
<link href="vendor/css/app.css" rel="preload" as="style">
<link href="vendor/js/picture-annotation-chunk-vendors.min.js" rel="preload" as="script">
<link href="vendor/js/picture-annotation.min.js" rel="preload" as="script">
<link href="vendor/css/app.css" rel="stylesheet">
</head>
<body>
<div class="LoadDialog">
<!--Load data-->
<form method="post" name="Load" action="">
<label for="TheID">Enter DeviceID:</label>
<input type="number" name="TheID" value="<?php echo $_POST["TheID"]; ?>">
<input type="submit" value="Load">
</form>
</div>
<div class="EditorDialog">
<!--Editor-->
<div id="my-pic-annotation-view" class="picture-annotation" data-image-src="Screen.png"data-width="1200" data-height="500" >
<!--Load existing Data-->
<div class="picture-annotation-data" style="display:none;"><?php echo $TheData; ?></div>
</div>
<script src="vendor/js/picture-annotation-chunk-vendors.min.js"></script><script src="vendor/js/picture-annotation.min.js"></script>
</div>
<!--Hidden form for opeing in editor-->
<form method="post" name="OpenInEditor" action="Editor.php">
<input type="hidden" name="TheID" value="<?php echo $_POST["TheID"]; ?>">
<input type="submit" value="Open in Editor" >
</form>
</body>
</html>
+16
View File
@@ -0,0 +1,16 @@
<?php
// DB Credentials
define('DB_HOST', 'localhost');
define('DB_USERNAME', 'DBUserName');
define('DB_PASSWORD', 'DBPassword');
define('DB_DBNAME', 'DBName');
// mysqli object
$mysqli = new mysqli(DB_HOST, DB_USERNAME, DB_PASSWORD, DB_DBNAME);
if($mysqli->connect_error) {
exit('Error connecting to database');
}
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
$mysqli->set_charset("utf8");
+16
View File
@@ -0,0 +1,16 @@
<style>
a.button {
background-color: Gainsboro;
border: none;
color: black;
padding: 10px 10px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}
</style>
<a href="Editor.php" class="button">Open editor</a>
<br>
<br>
<a href="Viewer.php" class="button">Open viewer</a>
+1
View File
@@ -0,0 +1 @@
.pa-container{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;display:grid;grid-template-columns:2fr 1fr;overflow:hidden}.pa-canvas{border:1px solid #ccc;position:relative;overflow:hidden}.pa-controls{position:absolute;z-index:100;background-color:#fff;padding:.3em;left:1em;top:1em;border:1px solid #333;border-radius:.5em}.pa-controls a{color:#000;display:block;padding:.2em}.pa-controls hr{color:#000;padding:0;margin:.1em 0 .3em 0}.pa-polygon-hint{position:absolute;bottom:1em;left:1em;background-color:rgba(0,0,0,.6);color:#fff;padding:.5em;border-radius:.5em;font-size:90%}.pa-infobar{margin-left:5px;overflow-y:scroll}.pa-loader{position:absolute;z-index:102;left:0;top:0;background-color:#000;background-color:rgba(0,0,0,.4)}.lds-ring,.pa-loader{width:100%;height:100%}.lds-ring{display:inline-block;position:relative}.lds-ring div{-webkit-box-sizing:border-box;box-sizing:border-box;display:block;top:30%;left:calc(50% - 82px);position:absolute;width:164px;height:164px;margin:8px;border:18px solid #fff;border-radius:50%;-webkit-animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#fff transparent transparent transparent}.lds-ring div:first-child{-webkit-animation-delay:-.45s;animation-delay:-.45s}.lds-ring div:nth-child(2){-webkit-animation-delay:-.3s;animation-delay:-.3s}.lds-ring div:nth-child(3){-webkit-animation-delay:-.15s;animation-delay:-.15s}@-webkit-keyframes lds-ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes lds-ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.pa-side-bar-entry.is-hover-target .pa-accordion,.pa-side-bar-entry.is-selected-target .pa-accordion{background-color:#efc4b0}.pa-accordion{background-color:#eee;color:#444;cursor:pointer;padding:18px;width:100%;text-align:left;border:none;outline:none;-webkit-transition:.4s;transition:.4s;margin-bottom:2px}.pa-accordion.is-active,.pa-accordion:hover{background-color:#ccc}.pa-side-bar-title{vertical-align:top;padding-left:5px}.pa-side-bar-icons{float:right}.pa-annotation-text{padding:5px}.pa-panel{padding:0 18px;background-color:#fff;max-height:0;overflow:hidden;-webkit-transition:max-height .2s ease-out;transition:max-height .2s ease-out}.pa-annotation-link{display:block;text-align:center;color:#000;text-decoration:none;background:#fafad2;padding:.7em;border:0;margin:1em 0;-webkit-transition:background .5s ease-out;transition:background .5s ease-out}.pa-annotation-link:focus,.pa-annotation-link:hover{background:gold}.pa-annotation-form{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;display:grid;grid-template-columns:auto 1fr;grid-gap:1em;padding:10px 0}.pa-annotation-form label{grid-column:1/2;text-align:right}.pa-annotation-form button{grid-column:2/3;background:#d3d3d3;padding:.7em;border:0}.pa-annotation-form button:hover{background:gold}.pa-annotation-form input,.pa-annotation-form textarea{grid-column:2/3;background:#fff;border:1px solid #9c9c9c}.pa-annotation-form input:focus,.pa-annotation-form textarea:focus{outline:3px solid gold}.pa-annotation-form textarea{height:10em}
+52
View File
@@ -0,0 +1,52 @@
/* http://meyerweb.com/eric/tools/css/reset/
v5.0.1 | 20191019
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, menu, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
display: block;
}
/* HTML5 hidden-attribute fix for newer browsers */
*[hidden] {
display: none;
}
body {
line-height: 1;
}
menu, ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
+18
View File
@@ -0,0 +1,18 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"057f":function(t,e,n){var r=n("fc6a"),i=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},"06cf":function(t,e,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),c=n("5135"),h=n("0cfb"),u=Object.getOwnPropertyDescriptor;e.f=r?u:function(t,e){if(t=a(t),e=s(e,!0),h)try{return u(t,e)}catch(n){}if(c(t,e))return o(!i.f.call(t,e),t[e])}},"06f8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9cb8"),i=n("ed3d"),o=n("4971"),a=n("d777"),s={node:1,duration:1,easing:1,onFinish:1,yoyo:1},c=1,h=2,u=3,l=0,f=["fill","stroke","shadowColor"],d=function(){function t(t,e,n,r,i,o,a){this.prop=t,this.propFunc=e,this.begin=r,this._pos=r,this.duration=o,this._change=0,this.prevPos=0,this.yoyo=a,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=n,this._change=i-this.begin,this.pause()}return t.prototype.fire=function(t){var e=this[t];e&&e()},t.prototype.setTime=function(t){t>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():t<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=t,this.update())},t.prototype.getTime=function(){return this._time},t.prototype.setPosition=function(t){this.prevPos=this._pos,this.propFunc(t),this._pos=t},t.prototype.getPosition=function(t){return void 0===t&&(t=this._time),this.func(t,this.begin,this._change,this.duration)},t.prototype.play=function(){this.state=h,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")},t.prototype.reverse=function(){this.state=u,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")},t.prototype.seek=function(t){this.pause(),this._time=t,this.update(),this.fire("onSeek")},t.prototype.reset=function(){this.pause(),this._time=0,this.update(),this.fire("onReset")},t.prototype.finish=function(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")},t.prototype.update=function(){this.setPosition(this.getPosition(this._time))},t.prototype.onEnterFrame=function(){var t=this.getTimer()-this._startTime;this.state===h?this.setTime(t):this.state===u&&this.setTime(this.duration-t)},t.prototype.pause=function(){this.state=c,this.fire("onPause")},t.prototype.getTimer=function(){return(new Date).getTime()},t}(),p=function(){function t(n){var o,c,h=this,u=n.node,f=u._id,p=n.easing||e.Easings.Linear,g=!!n.yoyo;o="undefined"===typeof n.duration?.3:0===n.duration?.001:n.duration,this.node=u,this._id=l++;var v=u.getLayer()||(u instanceof a.Konva["Stage"]?u.getLayers():null);for(c in v||r.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new i.Animation((function(){h.tween.onEnterFrame()}),v),this.tween=new d(c,(function(t){h._tweenFunc(t)}),p,0,1,1e3*o,g),this._addListeners(),t.attrs[f]||(t.attrs[f]={}),t.attrs[f][this._id]||(t.attrs[f][this._id]={}),t.tweens[f]||(t.tweens[f]={}),n)void 0===s[c]&&this._addAttr(c,n[c]);this.reset(),this.onFinish=n.onFinish,this.onReset=n.onReset}return t.prototype._addAttr=function(e,n){var i,o,a,s,c,h,u,l,d=this.node,p=d._id;if(a=t.tweens[p][e],a&&delete t.attrs[p][a][e],i=d.getAttr(e),r.Util._isArray(n))if(o=[],c=Math.max(n.length,i.length),"points"===e&&n.length!==i.length&&(n.length>i.length?(u=i,i=r.Util._prepareArrayForTween(i,n,d.closed())):(h=n,n=r.Util._prepareArrayForTween(n,i,d.closed()))),0===e.indexOf("fill"))for(s=0;s<c;s++)if(s%2===0)o.push(n[s]-i[s]);else{var g=r.Util.colorToRGBA(i[s]);l=r.Util.colorToRGBA(n[s]),i[s]=g,o.push({r:l.r-g.r,g:l.g-g.g,b:l.b-g.b,a:l.a-g.a})}else for(s=0;s<c;s++)o.push(n[s]-i[s]);else-1!==f.indexOf(e)?(i=r.Util.colorToRGBA(i),l=r.Util.colorToRGBA(n),o={r:l.r-i.r,g:l.g-i.g,b:l.b-i.b,a:l.a-i.a}):o=n-i;t.attrs[p][this._id][e]={start:i,diff:o,end:n,trueEnd:h,trueStart:u},t.tweens[p][e]=this._id},t.prototype._tweenFunc=function(e){var n,i,o,a,s,c,h,u,l=this.node,d=t.attrs[l._id][this._id];for(n in d){if(i=d[n],o=i.start,a=i.diff,u=i.end,r.Util._isArray(o))if(s=[],h=Math.max(o.length,u.length),0===n.indexOf("fill"))for(c=0;c<h;c++)c%2===0?s.push((o[c]||0)+a[c]*e):s.push("rgba("+Math.round(o[c].r+a[c].r*e)+","+Math.round(o[c].g+a[c].g*e)+","+Math.round(o[c].b+a[c].b*e)+","+(o[c].a+a[c].a*e)+")");else foLine truncated
/*!
* Vue.js v2.6.12
* (c) 2014-2020 Evan You
* Released under the MIT License.
*/
var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function o(t){return!0===t}function a(t){return!1===t}function s(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function c(t){return null!==t&&"object"===typeof t}var h=Object.prototype.toString;function u(t){return"[object Object]"===h.call(t)}function l(t){return"[object RegExp]"===h.call(t)}function f(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===h?JSON.stringify(t,null,2):String(t)}function g(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}v("slot,component",!0);var y=v("key,ref,slot,slot-scope,is");function m(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function b(t,e){return _.call(t,e)}function w(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var x=/-(\w)/g,S=w((function(t){return t.replace(x,(function(t,e){return e?e.toUpperCase():""}))})),C=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),P=/\B([A-Z])/g,k=w((function(t){return t.replace(P,"-$1").toLowerCase()}));function O(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function A(t,e){return t.bind(e)}var T=Function.prototype.bind?A:O;function M(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function F(t,e){for(var n in e)t[n]=e[n];return t}function N(t){for(var e={},n=0;n<t.length;n++)t[n]&&F(e,t[n]);return e}function L(t,e,n){}var D=function(t,e,n){return!1},E=function(t){return t};function I(t,e){if(t===e)return!0;var n=c(t),r=c(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return I(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return I(t[n],e[n])}))}catch(h){return!1}}function j(t,e){for(var n=0;n<t.length;n++)if(I(t[n],e))return n;return-1}function G(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var R="data-server-rendered",$=["component","directive","filter"],U=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],V={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:D,isReservedAttr:D,isUnknownElement:D,getTagNamespace:L,parsePlatformTagName:E,mustUseProp:D,async:!0,_lifecycleHooks:U},H=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function B(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function W(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var z=new RegExp("[^"+H.source+".$_\\d]");function K(t){if(!z.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}var Y,X="__proto__"in{},q="undefined"!==typeof window,Z="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,J=Z&&WXEnvironment.platform.toLowerCase(),Q=q&&window.navigator.userAgent.toLowerCase(),tt=Q&&/msie|trident/.test(Q),et=Q&&Q.indexOf("msie 9.0")>0,nt=Q&&Q.indexOf("edge/")>0,rt=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===J),it=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),ot={}.watch,at=!1;if(q)try{var st={};Object.defineProperty(st,"passive",{get:function(){at=!0}}),window.addEventListener("test-passive",null,st)}catch(Sa){}var ct=function(){return void 0===Y&&(Y=!q&&!Z&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),Y},ht=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ut(t){return"function"===typeof t&&/native code/.test(t.toString())}var lt,ft="undefined"!==typeof Symbol&&ut(Symbol)&&"undefined"!==typeof Reflect&&ut(Reflect.ownKeys);lt="undefined"!==typeof Set&&ut(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var dt=L,pt=0,gt=function(){this.id=pt++,this.subs=[]};gt.prototype.addSub=function(t){this.subs.push(t)},gt.prototype.removeSub=function(t){m(this.subs,t)},gt.prototype.depend=funcLine truncated
/*!
* vue-konva v2.1.7 - https://github.com/konvajs/vue-konva#readme
* MIT Licensed
*/
(function(e,r){t.exports=r(n("2b0e"),n("362d"))})(0,(function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(e,n){e.exports=t},function(t,e,n){t.exports=n(3)},function(t,n){t.exports=e},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n.n(r);function o(t){var e=t.getLayer()||t.getStage();e&&e.batchDraw()}var a={key:!0,style:!0,elm:!0,isRootInsert:!0},s=".vue-konva-event";function c(t,e,n,r){void 0===e&&(e={}),void 0===n&&(n={});var i=t._konvaNode,c={},h=!1;for(var u in n)if(!a[u]){var l="on"===u.slice(0,2),f=n[u]!==e[u];if(l&&f){var d=u.substr(2).toLowerCase();"content"===d.substr(0,7)&&(d="content"+d.substr(7,1).toUpperCase()+d.substr(8)),i.off(d+s,n[u])}var p=!e.hasOwnProperty(u);p&&i.setAttr(u,void 0)}for(var g in e)if(!a[g]){var v="on"===g.slice(0,2),y=n[g]!==e[g];if(v&&y){var m=g.substr(2).toLowerCase();"content"===m.substr(0,7)&&(m="content"+m.substr(7,1).toUpperCase()+m.substr(8)),e[g]&&(i.off(m+s),i.on(m+s,e[g]))}!v&&(e[g]!==n[g]||r&&e[g]!==i.getAttr(g))&&(h=!0,c[g]=e[g])}h&&(i.setAttrs(c),o(i))}var h="v",u="_konvaNode";function l(t){var e={};return Object.keys(t).forEach((function(n){e["on"+n]=t[n]})),e}function f(t){function e(t){return t._konvaNode?t:t.$parent?e(t.$parent):{}}return e(t.$parent)}function d(t){return t?t.$options[u]?t.getNode():0===t.$children.length?null:d(t.$children[0]):null}function p(t,e){var n=!1,r=t.componentOptions.children||[],i=[];r.forEach((function(t){var e=d(t.componentInstance);e&&i.push(e);var n=t.elm,r=t.componentInstance;if(n&&n.tagName&&r&&!e){var o=n&&n.tagName.toLowerCase();console.error('vue-konva error: You are trying to render "'+o+'" inside your component tree. Looks like it is not a Konva node. You can render only Konva components inside the Stage.')}})),i.forEach((function(t,e){t.getZIndex()!==e&&(t.setZIndex(e),n=!0)})),n&&o(e)}function g(){return g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},g.apply(this,arguments)}var v=i.a.component("v-stage",{render:function(t){return t("div",this.$slots.default)},watch:{config:{handler:function(t){this.uploadKonva()},deep:!0}},props:{config:{type:Object,default:function(){return{}}},__useStrictMode:{type:Boolean}},created:function(){this._konvaNode=new window.Konva.Stage({width:this.config.width,height:this.config.height,container:document.createElement("div")})},mounted:function(){this.$el.innerHTML="",this._konvaNode.container(this.$el),this.uploadKonva(),this.validateChildren()},updated:function(){this.uploadKonva(),this.uploadKonva(),p(this.$vnode,this._konvaNode)},beforeDestroy:function(){this._konvaNode.destroy()},methods:{getNode:function(){return this._konvaNode},getStage:function(){return this._konvaNode},uploadKonva:function(){var t=this.oldProps||{},e=g({},this.$attrs,this.config,l(this.$listeners));c(this,e,t,this.__useStrictMode),this.oldProps=e},validateChildren:function(){}}});function y(){return y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},y.apply(this,arguments)}var m=".vue-konva-event",_={Group:!0,Layer:!0,FastLayer:!0,Label:!0},b=function(t){var e;return e={},e[u]=!0,e.render=function(e){var n=_[t];return n?e("template",this.$slots.default):null},e.watch={config:{handler:function(t){this.uploadKonva()},deep:!0}},e.props={config:{type:Object,default:function(){return{}}},__useStrictMode:{type:Boolean}},e.created=function(){this.initKonva()},e.mounted=function(){var t=f(this),e=t._konvaNode;e.add(this._konvaNode),o(this._konvaNode)},e.updated=function(){this.uploadKonva(),p(this.$vnode,this._konvaNode)},e.destroyed=function(){o(this._konvaNode),this._konvaNode.destroy(),this._konvaNode.off(m)},e.methods={getNode:function(){return this._konvaNode},getStage:function(){return this._konvaNode},initKonva:function(){var e=window.Konva[t];e?(this._konvaNode=new e,this._konvaNode.VueComponent=this,this.uploadKonva()):console.error("vue-konva error: Can not find node "+t)},uploadKonva:function()Line truncated
/*!
* vue-i18n v8.24.4
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/var r=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function i(t,e){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}function o(t,e){"undefined"!==typeof console&&(console.error("[vue-i18n] "+t),e&&console.error(e.stack))}var a=Array.isArray;function s(t){return null!==t&&"object"===typeof t}function c(t){return"boolean"===typeof t}function h(t){return"string"===typeof t}var u=Object.prototype.toString,l="[object Object]";function f(t){return u.call(t)===l}function d(t){return null===t||void 0===t}function p(t){return"function"===typeof t}function g(){var t=[],e=arguments.length;while(e--)t[e]=arguments[e];var n=null,r=null;return 1===t.length?s(t[0])||a(t[0])?r=t[0]:"string"===typeof t[0]&&(n=t[0]):2===t.length&&("string"===typeof t[0]&&(n=t[0]),(s(t[1])||a(t[1]))&&(r=t[1])),{locale:n,params:r}}function v(t){return JSON.parse(JSON.stringify(t))}function y(t,e){if(t.delete(e))return t}function m(t,e){return!!~t.indexOf(e)}var _=Object.prototype.hasOwnProperty;function b(t,e){return _.call(t,e)}function w(t){for(var e=arguments,n=Object(t),r=1;r<arguments.length;r++){var i=e[r];if(void 0!==i&&null!==i){var o=void 0;for(o in i)b(i,o)&&(s(i[o])?n[o]=w(n[o],i[o]):n[o]=i[o])}}return n}function x(t,e){if(t===e)return!0;var n=s(t),r=s(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=a(t),o=a(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return x(t,e[n])}));if(i||o)return!1;var c=Object.keys(t),h=Object.keys(e);return c.length===h.length&&c.every((function(n){return x(t[n],e[n])}))}catch(u){return!1}}function S(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function C(t){return null!=t&&Object.keys(t).forEach((function(e){"string"==typeof t[e]&&(t[e]=S(t[e]))})),t}function P(t){t.prototype.hasOwnProperty("$i18n")||Object.defineProperty(t.prototype,"$i18n",{get:function(){return this._i18n}}),t.prototype.$t=function(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[t,r.locale,r._getMessages(),this].concat(e))},t.prototype.$tc=function(t,e){var n=[],r=arguments.length-2;while(r-- >0)n[r]=arguments[r+2];var i=this.$i18n;return i._tc.apply(i,[t,i.locale,i._getMessages(),this,e].concat(n))},t.prototype.$te=function(t,e){var n=this.$i18n;return n._te(t,n.locale,n._getMessages(),e)},t.prototype.$d=function(t){var e,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(e=this.$i18n).d.apply(e,[t].concat(n))},t.prototype.$n=function(t){var e,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(e=this.$i18n).n.apply(e,[t].concat(n))}}var k={beforeCreate:function(){var t=this.$options;if(t.i18n=t.i18n||(t.__i18n?{}:null),t.i18n)if(t.i18n instanceof Ct){if(t.__i18n)try{var e=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18n.forEach((function(t){e=w(e,JSON.parse(t))})),Object.keys(e).forEach((function(n){t.i18n.mergeLocaleMessage(n,e[n])}))}catch(a){0}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(f(t.i18n)){var n=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Ct?this.$root.$i18n:null;if(n&&(t.i18n.root=this.$root,t.i18n.formatter=n.formatter,t.i18n.fallbackLocale=n.fallbackLocale,t.i18n.formatFallbackMessages=n.formatFallbackMessages,t.i18n.silentTranslationWarn=n.silentTranslationWarn,t.i18n.silentFallbackWarn=n.silentFallbackWarn,t.i18n.pluralizationRules=n.pluralizationRules,t.i18n.preserveDirectiveContent=n.preserveDirectiveContent),t.__i18n)try{var r=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18n.forEach((function(t){r=w(r,JSON.parse(t))})),t.i18n.messages=r}catch(a){0}var i=t.i18n,o=i.sharedMessages;o&&f(o)&&(t.i18n.messages=w(t.i18n.messages,o)),this._i18n=new Ct(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),n&&n.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Ct?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof Ct&&(this._i18n=t.parent.$i18n)},beforeMount:function(){var t=this.$options;t.i18n=t.i18n||(t.__i18n?{}:null),t.i18n?(t.i18n instanceof Ct||f(t.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Ct||t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof Ct)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:function(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)},beforeDestroy:function(){if(this._i18n){var t=this;this.$nextTick((function(){t._subscribing&&(t._i18n.unsubscribeDataLine truncated
//# sourceMappingURL=picture-annotation-chunk-vendors.min.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"sources":["webpack:///./node_modules/core-js/internals/to-string-tag-support.js","webpack:///./node_modules/core-js/internals/function-bind-context.js","webpack:///./node_modules/core-js/internals/object-get-own-property-names-external.js","webpack:///./node_modules/core-js/internals/object-get-own-property-descriptor.js","webpack:///./node_modules/konva/lib/Tween.js","webpack:///./node_modules/core-js/internals/ie8-dom-define.js","webpack:///./node_modules/konva/lib/Layer.js","webpack:///./node_modules/konva/lib/filters/Threshold.js","webpack:///./node_modules/vue-nl2br/dist/vue-nl2br.js","webpack:///./node_modules/core-js/modules/web.dom-collections.for-each.js","webpack:///./node_modules/core-js/internals/array-for-each.js","webpack:///./node_modules/core-js/internals/an-instance.js","webpack:///./node_modules/konva/lib/shapes/Arrow.js","webpack:///./node_modules/core-js/internals/html.js","webpack:///./node_modules/core-js/internals/a-function.js","webpack:///./node_modules/konva/lib/filters/Kaleidoscope.js","webpack:///./node_modules/core-js/internals/check-correctness-of-iteration.js","webpack:///./node_modules/core-js/internals/engine-is-ios.js","webpack:///./node_modules/core-js/internals/require-object-coercible.js","webpack:///./node_modules/core-js/internals/array-method-has-species-support.js","webpack:///./node_modules/konva/lib/shapes/Circle.js","webpack:///./node_modules/konva/lib/filters/Posterize.js","webpack:///./node_modules/core-js/internals/iterate.js","webpack:///./node_modules/konva/lib/shapes/Image.js","webpack:///./node_modules/core-js/internals/to-absolute-index.js","webpack:///./node_modules/core-js/internals/export.js","webpack:///./node_modules/core-js/internals/object-get-own-property-names.js","webpack:///./node_modules/core-js/internals/set-species.js","webpack:///./node_modules/konva/lib/shapes/RegularPolygon.js","webpack:///./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack:///./node_modules/konva/lib/shapes/TextPath.js","webpack:///./node_modules/core-js/internals/iterator-close.js","webpack:///./node_modules/vue/dist/vue.runtime.esm.js","webpack:///./node_modules/core-js/internals/task.js","webpack:///./node_modules/core-js/internals/engine-v8-version.js","webpack:///./node_modules/konva/lib/FastLayer.js","webpack:///./node_modules/core-js/internals/engine-user-agent.js","webpack:///./node_modules/core-js/internals/get-iterator-method.js","webpack:///./node_modules/konva/lib/index.js","webpack:///./node_modules/konva/lib/_CoreInternals.js","webpack:///./node_modules/core-js/internals/object-define-properties.js","webpack:///./node_modules/konva/lib/shapes/Ellipse.js","webpack:///./node_modules/core-js/internals/a-possible-prototype.js","webpack:///./node_modules/core-js/modules/es.string.iterator.js","webpack:///./node_modules/core-js/internals/iterators.js","webpack:///./node_modules/konva/lib/filters/Pixelate.js","webpack:///./node_modules/core-js/internals/path.js","webpack:///./node_modules/core-js/internals/indexed-object.js","webpack:///./node_modules/core-js/internals/add-to-unscopables.js","webpack:///./node_modules/core-js/internals/host-report-errors.js","webpack:///./node_modules/konva/lib/Validators.js","webpack:///./node_modules/konva/lib/filters/HSV.js","webpack:///./node_modules/core-js/internals/species-constructor.js","webpack:///./node_modules/core-js/internals/native-symbol.js","webpack:///./node_modules/konva/lib/Node.js","webpack:///./node_modules/core-js/internals/array-includes.js","webpack:///./node_modules/core-js/modules/es.array.filter.js","webpack:///./node_modules/core-js/internals/to-length.js","webpack:///./node_modules/core-js/internals/has.js","webpack:///./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack:///./node_modules/konva/lib/shapes/Text.js","webpack:///./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack:///./node_modules/@babel/runtime/helpers/esm/objectSpread2.js","webpack:///./node_modules/core-js/internals/shared.js","webpack:///./node_modules/core-js/internals/own-keys.js","webpack:///./node_modules/core-js/internals/whitespaces.js","webpack:///./node_modules/core-js/internals/string-trim.js","webpack:///./node_modules/core-js/internals/create-property-descriptor.js","webpack:///./node_modules/konva/lib/shapes/Rect.js","webpack:///./node_modules/core-js/internals/engine-is-node.js","webpack:///./node_modules/core-js/internals/engine-is-browser.js","webpack:///./node_modules/core-js/internals/object-assign.js","webpack:///./node_modules/core-js/internals/string-multibyte.js","webpack:///./node_modules/core-js/internals/array-species-create.js","webpack:///./node_modules/core-js/internals/internal-state.js","webpack:///./node_modules/konva/lib/filters/Brighten.js","webpack:///./node_modules/core-js/internals/redefine.js","webpack:///./node_modules/core-js/internals/inherit-if-required.js","webpack:///./node_modules/core-js/internals/object-get-own-property-symbols.jsLine truncated
+2
View File
@@ -0,0 +1,2 @@
(function(e){function t(t){for(var n,o,r=t[0],_=t[1],l=t[2],d=0,h=[];d<r.length;d++)o=r[d],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&h.push(i[o][0]),i[o]=0;for(n in _)Object.prototype.hasOwnProperty.call(_,n)&&(e[n]=_[n]);c&&c(t);while(h.length)h.shift()();return s.push.apply(s,l||[]),a()}function a(){for(var e,t=0;t<s.length;t++){for(var a=s[t],n=!0,r=1;r<a.length;r++){var _=a[r];0!==i[_]&&(n=!1)}n&&(s.splice(t--,1),e=o(o.s=a[0]))}return e}var n={},i={app:0},s=[];function o(t){if(n[t])return n[t].exports;var a=n[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=e,o.c=n,o.d=function(e,t,a){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(a,n,function(t){return e[t]}.bind(null,n));return a},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/";var r=window["webpackJsonp"]=window["webpackJsonp"]||[],_=r.push.bind(r);r.push=t,r=r.slice();for(var l=0;l<r.length;l++)t(r[l]);var c=_;s.push([0,"chunk-vendors"]),a()})({0:function(e,t,a){e.exports=a("56d7")},"3f4a":function(module,__webpack_exports__,__webpack_require__){"use strict";var _var_www_debb1_local_picture_annotation_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("53ca"),_var_www_debb1_local_picture_annotation_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("5530"),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("b0c0"),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("7db0"),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("a434"),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("c740"),core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_array_fill_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("cb29"),core_js_modules_es_array_fill_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_array_fill_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("159b"),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__),vue__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("2b0e"),vue_konva__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("7591"),vue_konva__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(vue_konva__WEBPACK_IMPORTED_MODULE_9__),vue_i18n__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("a925"),_i18n_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("9225"),_components_Icon__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("cdae"),_components_Loader__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("555f"),_components_SideBarEntry__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("70dc");vue__WEBPACK_IMPORTED_MODULE_8__["default"].use(vue_konva__WEBPACK_IMPORTED_MODULE_9___default.a),vue__WEBPACK_IMPORTED_MODULE_8__["default"].use(vue_i18n__WEBPACK_IMPORTED_MODULE_10__["a"]),vue__WEBPACK_IMPORTED_MODULE_8__["default"].config.productionTip=!1,__webpack_exports__["a"]={components:{SideBarEntry:_components_SideBarEntry__WEBPACK_IMPORTED_MODULE_14__["a"],Icon:_components_Icon__WEBPACK_IMPORTED_MODULE_12__["a"],Loader:_components_Loader__WEBPACK_IMPORTED_MODULE_13__["a"]},props:["language","containerId","imageSrc","dataCallback","localStorageKey","width","height","editMode","initialData","initialDataId"],i18n:new vue_i18n__WEBPACK_IMPORTED_MODULE_10__["a"](_i18n_js__WEBPACK_IMPORTED_MODULE_11__["a"]),data:function(){return{image:null,stageSize:{width:null,height:null},scale:1,shapes:[],selectedShapeName:"",currentHoverShape:"",isLoading:!0,isShapesVisible:!0,isAddingPolygon:Line truncated
//# sourceMappingURL=picture-annotation.min.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///src/App.vue","webpack:///./src/components/Loader.vue?29e3","webpack:///./src/components/Loader.vue","webpack:///./src/main.js","webpack:///./src/App.vue?7b85","webpack:///./src/App.vue?c53a","webpack:///./src/App.vue","webpack:///./src/components/SideBarEntry.vue?e68d","webpack:///src/components/SideBarEntry.vue","webpack:///./src/components/SideBarEntry.vue?79a3","webpack:///./src/components/SideBarEntry.vue","webpack:///./src/i18n.js","webpack:///./src/components/Icon.vue?eae0","webpack:///src/components/Icon.vue","webpack:///./src/components/Icon.vue?157f","webpack:///./src/components/Icon.vue","webpack:///./src/App.vue?5c67"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","components","SideBarEntry","Icon","Loader","props","i18n","image","stageSize","width","height","scale","shapes","selectedShapeName","currentHoverShape","isLoading","isShapesVisible","isAddingPolygon","polygonPoints","polygonAddShapes","callback","undefined","formData","title","text","linkTitle","link","computed","polygonPointsConfig","points","this","closed","created","parseInt","isNaN","innerWidth","innerHeight","src","imageSrc","onload","dataCallback","mounted","document","addEventListener","handleKeyEvent","language","$i18n","locale","load","beforeDestroy","removeEventListener","methods","handleStageMouseDown","e","evt","preventDefault","stopPropagation","stopImmediatePropagation","button","removePolygonPoint","editMode","target","getStage","updateTransformer","clickedOnTransformer","shape","selectedNode","transformerNode","node","attachTo","detach","getLayer","batchDraw","cancelEvent","startPolygonDrawing","finishPolygon","addPolygonPoint","x","y","pop","addPolygon","shapesUpdated","addRectangle","addCircle","radius","addPerson","getBaseShape","type","fill","opacity","stroke","draggable","strokeWidth","strokeScaleEnabled","annotation","getBaseShapeForPolygon","deleteShape","idx","event","handleScroll","changeScale","wheel","handleDragEnd","currentTarget","attrs","handleTransform","rotation","scaleX","scaleY","handleMouseEnter","$refs","stage","container","style","cursor","handleMouseLeave","handleGlobalMouseEnter","handleGlobalMouseLeave","handleSideBarMouseEnter","handleSideBarMouseLeave","formSubmitted","toggleShowShapes","items","canvas","_canvas","JSON","stringify","localStorageKey","localStorage","setItem","initialDataId","innerHTML","parse","initialData","forEach","render","_vm","_h","$createElement","_self","_c","_m","staticRenderFns","staticClass","script","component","containerId","$t","on","$event","_e","ref","_l","index","directives","rawName","expression","_v","_s","$elements","getElementsByClassName","savedElements","$el","Vue","h","App","attributes","id","$mount","class","active","toggleContent","submitted","domProps","composing","$set","Nl2br","$emit","panel","maxHeight","scrollHeight","watch","newShape","fallbackLocale","messages","en","zoom_in","zoom_out","add_polygon","add_rectangle","add_circle","add_person","delete_shape","hide_shapes","show_shapes","annotation_title","annotation_text","annotation_link_title","annotation_link","submit","more","accept_polygon","polygon_help","de","viewBox","xmlns","String","required","default","Number"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAG/Be,GAAqBA,EAAoBhB,GAE5C,MAAMO,EAASC,OACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB,IAAK,CAC9C,IAAIC,EAAQH,EAAeE,GACG,IAA3BX,EAAgBY,KAAcF,GAAY,GAE3CA,IACFL,EAAgBQ,OAAOpB,IAAK,GAC5Be,EAASM,EAAoBA,EAAoBC,EAAIN,EAAe,KAItE,OAAOD,EAIR,IAAIQ,EAAmB,GAKnBhB,EAAkB,CACrB,IAAO,GAGJK,EAAkB,GAGtB,SAASS,EAAoB1B,GAG5B,GAAG4B,EAAiB5B,GACnB,OAAO4B,EAAiB5B,GAAU6B,QAGnC,IAAIC,EAASF,EAAiB5B,GAAY,CACzCK,EAAGL,EACH+B,GAAG,EACHF,QAAS,IAUV,OANAf,EAAQd,GAAUW,KAAKmB,EAAOD,QAASC,EAAQA,EAAOD,QAASH,GAG/DI,EAAOC,GAAI,EAGJD,EAAOD,QAKfH,EAAoBM,EAAIlB,EAGxBY,EAAoBO,EAAIL,EAGxBF,EAAoBQ,EAAI,SAASL,EAASM,EAAMC,GAC3CV,EAAoBW,EAAER,EAASM,IAClC3B,OAAOLine truncated
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020 Maximilian Kalus
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.