ofd-view 0.1.44 → 0.1.46
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/ofd-view.common.js +19 -21
- package/lib/ofd-view.common.js.map +1 -1
- package/lib/ofd-view.umd.js +19 -21
- package/lib/ofd-view.umd.js.map +1 -1
- package/lib/ofd-view.umd.min.js +1 -1
- package/lib/ofd-view.umd.min.js.map +1 -1
- package/lib/viewer.css +1 -19
- package/package.json +1 -5
package/lib/ofd-view.common.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/******/ (function() { // webpackBootstrap
|
2
2
|
/******/ var __webpack_modules__ = ({
|
3
3
|
|
4
|
-
/***/
|
4
|
+
/***/ 944:
|
5
5
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
6
6
|
|
7
7
|
"use strict";
|
@@ -15,7 +15,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
15
15
|
|
16
16
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
17
17
|
// Module
|
18
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".vdr[data-v-
|
18
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".vdr[data-v-316ef3a2]{touch-action:none;position:absolute;box-sizing:border-box;border:1px dashed #ddd;cursor:move}.vdr button[data-v-316ef3a2]{display:none}.vdr[data-v-316ef3a2]:hover{border:1px solid #fd397a;background:rgba(253,57,122,.08)}.vdr:hover button[data-v-316ef3a2]{display:block}.handle[data-v-316ef3a2]{box-sizing:border-box;display:none;position:absolute;width:10px;height:10px;font-size:1px;background:rgba(253,57,122,.08);border:1px solid #fd397a}.handle-tl[data-v-316ef3a2]{top:-10px;left:-10px;cursor:nw-resize}.handle-tm[data-v-316ef3a2]{top:-10px;left:50%;margin-left:-5px;cursor:n-resize}.handle-tr[data-v-316ef3a2]{top:-10px;right:-10px;cursor:ne-resize}.handle-ml[data-v-316ef3a2]{left:-10px;cursor:w-resize}.handle-ml[data-v-316ef3a2],.handle-mr[data-v-316ef3a2]{top:50%;margin-top:-5px}.handle-mr[data-v-316ef3a2]{right:-10px;cursor:e-resize}.handle-bl[data-v-316ef3a2]{bottom:-10px;left:-10px;cursor:sw-resize}.handle-bm[data-v-316ef3a2]{bottom:-10px;left:50%;margin-left:-5px;cursor:s-resize}.handle-br[data-v-316ef3a2]{bottom:-10px;right:-10px;cursor:se-resize}@media only screen and (max-width:768px){[class*=handle-][data-v-316ef3a2]:before{content:\"\";left:-10px;right:-10px;bottom:-10px;top:-10px;position:absolute}}.close[data-v-316ef3a2]{background:orange;color:red;border-radius:12px;line-height:20px;text-align:center;height:20px;width:20px;font-size:18px;padding:1px}.close[data-v-316ef3a2]:before{content:\"\\2716\"}.close[data-v-316ef3a2]{top:5px;right:2px;position:absolute}", ""]);
|
19
19
|
// Exports
|
20
20
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
21
21
|
|
@@ -164,19 +164,19 @@ module.exports = function (i) {
|
|
164
164
|
|
165
165
|
/***/ }),
|
166
166
|
|
167
|
-
/***/
|
167
|
+
/***/ 954:
|
168
168
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
169
169
|
|
170
170
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
171
171
|
|
172
172
|
// load the styles
|
173
|
-
var content = __webpack_require__(
|
173
|
+
var content = __webpack_require__(944);
|
174
174
|
if(content.__esModule) content = content.default;
|
175
175
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
176
176
|
if(content.locals) module.exports = content.locals;
|
177
177
|
// add the styles to the DOM
|
178
178
|
var add = (__webpack_require__(402)/* ["default"] */ .Z)
|
179
|
-
var update = add("
|
179
|
+
var update = add("4d76d678", content, true, {"sourceMap":false,"shadowMode":false});
|
180
180
|
|
181
181
|
/***/ }),
|
182
182
|
|
@@ -577,8 +577,8 @@ var staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',
|
|
577
577
|
|
578
578
|
;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=template&id=18db0fa8&scoped=true&
|
579
579
|
|
580
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/draggable-resizable/draggable-resizable.vue?vue&type=template&id=
|
581
|
-
var
|
580
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/draggable-resizable/draggable-resizable.vue?vue&type=template&id=316ef3a2&scoped=true&
|
581
|
+
var draggable_resizablevue_type_template_id_316ef3a2_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"vdr",class:{
|
582
582
|
draggable: _vm.draggable,
|
583
583
|
resizable: _vm.resizable,
|
584
584
|
active: _vm.enabled,
|
@@ -586,7 +586,7 @@ var draggable_resizablevue_type_template_id_b44a7a5c_scoped_true_render = functi
|
|
586
586
|
resizing: _vm.resizing
|
587
587
|
},style:(_vm.style),on:{"mousedown":_vm.elmDown,"touchstart":_vm.elmDown}},[(_vm.editable)?_c('button',{staticClass:"btn btn-danger btn-elevate btn-pill btn-icon btn-elevate-air btn-sm",staticStyle:{"position":"absolute","right":"5px","top":"-20px"},attrs:{"type":"button"},on:{"click":function($event){$event.stopPropagation();return _vm.dropItem.apply(null, arguments)}}},[_c('span',{staticClass:"close"})]):_vm._e(),_vm._l((_vm.handles),function(handle){return (_vm.resizable)?_c('div',{key:handle,staticClass:"handle",class:'handle-' + handle,style:({ display: _vm.enabled ? 'block' : 'none'}),on:{"mousedown":function($event){return _vm.handleDown(handle, $event)},"touchstart":function($event){return _vm.handleDown(handle, $event)}}}):_vm._e()}),_vm._t("default")],2)
|
588
588
|
}
|
589
|
-
var
|
589
|
+
var draggable_resizablevue_type_template_id_316ef3a2_scoped_true_staticRenderFns = []
|
590
590
|
|
591
591
|
|
592
592
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/draggable-resizable/draggable-resizable.vue?vue&type=script&lang=js&
|
@@ -632,9 +632,6 @@ function matchesSelectorToParentElements(el, selector, baseNode) {
|
|
632
632
|
editable: {
|
633
633
|
type: Boolean, default: true
|
634
634
|
},
|
635
|
-
originBottom: {
|
636
|
-
type: Boolean, default: true
|
637
|
-
},
|
638
635
|
w: {
|
639
636
|
type: Number,
|
640
637
|
default: 200,
|
@@ -885,7 +882,7 @@ function matchesSelectorToParentElements(el, selector, baseNode) {
|
|
885
882
|
this.section.length = 0;
|
886
883
|
let t = 10;
|
887
884
|
for (let i = 0; i < this.pagesCount; i++) {
|
888
|
-
t = t + (i > 0 ? this.pages[
|
885
|
+
t = t + (i > 0 ? this.pages[i - 1].viewport.height : 0) + (i > 0 ? 9 + 2 : 0);
|
889
886
|
this.section.push({
|
890
887
|
t,
|
891
888
|
o: this.pages[i].div.offsetLeft + 9
|
@@ -925,7 +922,7 @@ function matchesSelectorToParentElements(el, selector, baseNode) {
|
|
925
922
|
_emitPlaced(pageIndex) {
|
926
923
|
this.$emit('placed', pageIndex, this.index, {
|
927
924
|
x: (this.left - this.section[pageIndex].o) / this.pages[pageIndex].viewport.width,
|
928
|
-
y: (
|
925
|
+
y: ((this.top - this.section[pageIndex].t)) / this.pages[pageIndex].viewport.height,
|
929
926
|
w: this.elmW / this.pages[pageIndex].viewport.width,
|
930
927
|
h: this.elmH / this.pages[pageIndex].viewport.height
|
931
928
|
}, this.stampId);
|
@@ -940,8 +937,9 @@ function matchesSelectorToParentElements(el, selector, baseNode) {
|
|
940
937
|
this.parentH = parentH;
|
941
938
|
if (this.w > this.parentW) this.width = parentW;
|
942
939
|
if (this.h > this.parentH) this.height = parentH;
|
943
|
-
if ((this.x + this.w) > this.parentW) this.width = parentW - this.x;
|
944
|
-
if ((this.y + this.h) > this.parentH) this.height = parentH - this.y;
|
940
|
+
if ((this.x + this.w) > this.parentW && parentW - this.x > 0) this.width = parentW - this.x;
|
941
|
+
if ((this.y + this.h) > this.parentH && parentH - this.y > 0) this.height = parentH - this.y;
|
942
|
+
|
945
943
|
}
|
946
944
|
this.elmW = this.width;
|
947
945
|
this.elmH = this.height;
|
@@ -1180,9 +1178,9 @@ function matchesSelectorToParentElements(el, selector, baseNode) {
|
|
1180
1178
|
|
1181
1179
|
;// CONCATENATED MODULE: ./packages/draggable-resizable/draggable-resizable.vue?vue&type=script&lang=js&
|
1182
1180
|
/* harmony default export */ var draggable_resizable_draggable_resizablevue_type_script_lang_js_ = (draggable_resizablevue_type_script_lang_js_);
|
1183
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/draggable-resizable/draggable-resizable.vue?vue&type=style&index=0&id=
|
1184
|
-
var
|
1185
|
-
;// CONCATENATED MODULE: ./packages/draggable-resizable/draggable-resizable.vue?vue&type=style&index=0&id=
|
1181
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/draggable-resizable/draggable-resizable.vue?vue&type=style&index=0&id=316ef3a2&prod&scoped=true&lang=css&
|
1182
|
+
var draggable_resizablevue_type_style_index_0_id_316ef3a2_prod_scoped_true_lang_css_ = __webpack_require__(954);
|
1183
|
+
;// CONCATENATED MODULE: ./packages/draggable-resizable/draggable-resizable.vue?vue&type=style&index=0&id=316ef3a2&prod&scoped=true&lang=css&
|
1186
1184
|
|
1187
1185
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
1188
1186
|
/* globals __VUE_SSR_CONTEXT__ */
|
@@ -1293,11 +1291,11 @@ function normalizeComponent(
|
|
1293
1291
|
|
1294
1292
|
var component = normalizeComponent(
|
1295
1293
|
draggable_resizable_draggable_resizablevue_type_script_lang_js_,
|
1296
|
-
|
1297
|
-
|
1294
|
+
draggable_resizablevue_type_template_id_316ef3a2_scoped_true_render,
|
1295
|
+
draggable_resizablevue_type_template_id_316ef3a2_scoped_true_staticRenderFns,
|
1298
1296
|
false,
|
1299
1297
|
null,
|
1300
|
-
"
|
1298
|
+
"316ef3a2",
|
1301
1299
|
null
|
1302
1300
|
|
1303
1301
|
)
|