@ckeditor/ckeditor5-minimap 45.0.0-alpha.9 → 45.1.0-alpha.0

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/build/minimap.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md.
4
- */(()=>{var t={21:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},51:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},128:t=>{"use strict";var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},188:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var n=i(758),o=i.n(n),r=i(935),s=i.n(r)()(o());s.push([t.id,':root{--ck-color-minimap-tracker-background:208,0%,51%;--ck-color-minimap-iframe-outline:#bfbfbf;--ck-color-minimap-iframe-shadow:rgba(0,0,0,.11);--ck-color-minimap-progress-background:#666}.ck.ck-minimap{background:var(--ck-color-base-background);position:absolute;user-select:none}.ck.ck-minimap,.ck.ck-minimap iframe{height:100%;width:100%}.ck.ck-minimap iframe{border:0;box-shadow:0 2px 5px var(--ck-color-minimap-iframe-shadow);margin:0;outline:1px solid var(--ck-color-minimap-iframe-outline);pointer-events:none;position:relative}.ck.ck-minimap .ck.ck-minimap__position-tracker{background:hsla(var(--ck-color-minimap-tracker-background),.2);position:absolute;top:0;transition:background .1s ease-in-out;width:100%;z-index:1}@media (prefers-reduced-motion:reduce){.ck.ck-minimap .ck.ck-minimap__position-tracker{transition:none}}.ck.ck-minimap .ck.ck-minimap__position-tracker:hover{background:hsla(var(--ck-color-minimap-tracker-background),.3)}.ck.ck-minimap .ck.ck-minimap__position-tracker.ck-minimap__position-tracker_dragging,.ck.ck-minimap .ck.ck-minimap__position-tracker.ck-minimap__position-tracker_dragging:hover{background:hsla(var(--ck-color-minimap-tracker-background),.4)}.ck.ck-minimap .ck.ck-minimap__position-tracker.ck-minimap__position-tracker_dragging:after,.ck.ck-minimap .ck.ck-minimap__position-tracker.ck-minimap__position-tracker_dragging:hover:after{opacity:1}.ck.ck-minimap .ck.ck-minimap__position-tracker:after{background:var(--ck-color-minimap-progress-background);border:1px solid var(--ck-color-base-background);border-radius:3px;color:var(--ck-color-base-background);content:attr(data-progress) "%";font-size:10px;opacity:0;padding:2px 4px;position:absolute;right:5px;top:5px;transition:opacity .1s ease-in-out}@media (prefers-reduced-motion:reduce){.ck.ck-minimap .ck.ck-minimap__position-tracker:after{transition:none}}',""]);const a=s},237:t=>{"use strict";t.exports=CKEditor5.dll},311:(t,e,i)=>{t.exports=i(237)("./src/ui.js")},584:(t,e,i)=>{t.exports=i(237)("./src/utils.js")},591:t=>{"use strict";var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var r={},s=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],m=r[l]||0,p="".concat(l," ").concat(m);r[l]=m+1;var h=i(p),d={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==h)e[h].references++,e[h].updater(d);else{var u=o(d,n);n.byIndex=a,e.splice(a,0,{identifier:p,updater:u,references:1})}s.push(p)}return s}function o(t,e){var i=e.domAPI(e);i.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,o){var r=n(t=t||[],o=o||{});return function(t){t=t||[];for(var s=0;s<r.length;s++){var a=i(r[s]);e[a].references--}for(var c=n(t,o),l=0;l<r.length;l++){var m=i(r[l]);0===e[m].references&&(e[m].updater(),e.splice(m,1))}r=c}}},639:t=>{"use strict";var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,o){var r;if(n)r="";else{r="",o.supports&&(r+="@supports (".concat(o.supports,") {")),o.media&&(r+="@media ".concat(o.media," {"));var s=void 0!==o.layer;s&&(r+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),r+=o.css,s&&(r+="}"),o.media&&(r+="}"),o.supports&&(r+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,r);else{var a=document.createTextNode(r),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var o={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=o.singletonCounter++,i=o.singleton||(o.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}},758:t=>{"use strict";t.exports=function(t){return t[1]}},782:(t,e,i)=>{t.exports=i(237)("./src/core.js")},783:(t,e,i)=>{t.exports=i(237)("./src/engine.js")},935:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,o,r){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(s[c]=!0)}for(var l=0;l<t.length;l++){var m=[].concat(t[l]);n&&s[m[0]]||(void 0!==r&&(void 0===m[5]||(m[1]="@layer".concat(m[5].length>0?" ".concat(m[5]):""," {").concat(m[1],"}")),m[5]=r),i&&(m[2]?(m[1]="@media ".concat(m[2]," {").concat(m[1],"}"),m[2]=i):m[2]=i),o&&(m[4]?(m[1]="@supports (".concat(m[4],") {").concat(m[1],"}"),m[4]=o):m[4]="".concat(o)),e.push(m))}},e}}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={id:n,exports:{}};return t[n](r,r.exports,i),r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";i.r(n),i.d(n,{Minimap:()=>S});var t=i(782),e=i(584),o=i(311);const r=(0,e.toUnit)("px");class s extends o.IframeView{_options;constructor(t,e){super(t);const i=this.bindTemplate;this.set("top",0),this.set("height",0),this._options=e,this.extendTemplate({attributes:{tabindex:-1,"aria-hidden":"true",class:["ck-minimap__iframe"],style:{top:i.to("top",(t=>r(t))),height:i.to("height",(t=>r(t)))}}})}render(){return super.render().then((()=>{this._prepareDocument()}))}setHeight(t){this.height=t}setTopOffset(t){this.top=t}_prepareDocument(){const t=this.element.contentWindow.document,e=t.adoptNode(this._options.domRootClone),i=this._options.useSimplePreview?"\n\t\t\t.ck.ck-editor__editable_inline img {\n\t\t\t\tfilter: contrast( 0 );\n\t\t\t}\n\n\t\t\tp, li, a, figcaption, span {\n\t\t\t\tbackground: hsl(0, 0%, 80%) !important;\n\t\t\t\tcolor: hsl(0, 0%, 80%) !important;\n\t\t\t}\n\n\t\t\th1, h2, h3, h4 {\n\t\t\t\tbackground: hsl(0, 0%, 60%) !important;\n\t\t\t\tcolor: hsl(0, 0%, 60%) !important;\n\t\t\t}\n\t\t":"",n=`<!DOCTYPE html><html lang="en">\n\t\t\t<head>\n\t\t\t\t<meta charset="utf-8">\n\t\t\t\t<meta name="viewport" content="width=device-width, initial-scale=1">\n\t\t\t\t${this._options.pageStyles.map((t=>"string"==typeof t?`<style>${t}</style>`:`<link rel="stylesheet" type="text/css" href="${t.href}">`)).join("\n")}\n\t\t\t\t<style>\n\t\t\t\t\thtml, body {\n\t\t\t\t\t\tmargin: 0 !important;\n\t\t\t\t\t\tpadding: 0 !important;\n\t\t\t\t\t}\n\n\t\t\t\t\thtml {\n\t\t\t\t\t\toverflow: hidden;\n\t\t\t\t\t}\n\n\t\t\t\t\tbody {\n\t\t\t\t\t\ttransform: scale( ${this._options.scaleRatio} );\n\t\t\t\t\t\ttransform-origin: 0 0;\n\t\t\t\t\t\toverflow: visible;\n\t\t\t\t\t}\n\n\t\t\t\t\t.ck.ck-editor__editable_inline {\n\t\t\t\t\t\tmargin: 0 !important;\n\t\t\t\t\t\tborder-color: transparent !important;\n\t\t\t\t\t\toutline-color: transparent !important;\n\t\t\t\t\t\tbox-shadow: none !important;\n\t\t\t\t\t}\n\n\t\t\t\t\t.ck.ck-content {\n\t\t\t\t\t\tbackground: white;\n\t\t\t\t\t}\n\n\t\t\t\t\t${i}\n\t\t\t\t</style>\n\t\t\t</head>\n\t\t\t<body class="${this._options.extraClasses||""}"></body>\n\t\t</html>`;t.open(),t.write(n),t.close(),t.body.appendChild(e)}}const a=(0,e.toUnit)("px");class c extends o.View{constructor(t){super(t);const e=this.bindTemplate;this.set("height",0),this.set("top",0),this.set("scrollProgress",0),this.set("_isDragging",!1),this.setTemplate({tag:"div",attributes:{class:["ck","ck-minimap__position-tracker",e.if("_isDragging","ck-minimap__position-tracker_dragging")],style:{top:e.to("top",(t=>a(t))),height:e.to("height",(t=>a(t)))},"data-progress":e.to("scrollProgress")},on:{mousedown:e.to((()=>{this._isDragging=!0}))}})}render(){super.render(),this.listenTo(e.global.document,"mousemove",((t,e)=>{this._isDragging&&this.fire("drag",e.movementY)}),{useCapture:!0}),this.listenTo(e.global.document,"mouseup",(()=>{this._isDragging=!1}),{useCapture:!0})}setHeight(t){this.height=t}setTopOffset(t){this.top=t}setScrollProgress(t){this.scrollProgress=t}}class l extends o.View{_positionTrackerView;_scaleRatio;_minimapIframeView;constructor({locale:t,scaleRatio:e,pageStyles:i,extraClasses:n,useSimplePreview:o,domRootClone:r}){super(t);const a=this.bindTemplate;this._positionTrackerView=new c(t),this._positionTrackerView.delegate("drag").to(this),this._scaleRatio=e,this._minimapIframeView=new s(t,{useSimplePreview:o,pageStyles:i,extraClasses:n,scaleRatio:e,domRootClone:r}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-minimap"]},children:[this._positionTrackerView],on:{click:a.to(this._handleMinimapClick.bind(this)),wheel:a.to(this._handleMinimapMouseWheel.bind(this))}})}destroy(){this._minimapIframeView.destroy(),super.destroy()}get height(){return new e.Rect(this.element).height}get scrollHeight(){return Math.max(0,Math.min(this.height,this._minimapIframeView.height)-this._positionTrackerView.height)}render(){super.render(),this._minimapIframeView.render(),this.element.appendChild(this._minimapIframeView.element)}setContentHeight(t){this._minimapIframeView.setHeight(t*this._scaleRatio)}setScrollProgress(t){const e=this._minimapIframeView,i=this._positionTrackerView;if(e.height<this.height)e.setTopOffset(0),i.setTopOffset((e.height-i.height)*t);else{const n=e.height-this.height;e.setTopOffset(-n*t),i.setTopOffset((this.height-i.height)*t)}i.setScrollProgress(Math.round(100*t))}setPositionTrackerHeight(t){this._positionTrackerView.setHeight(t*this._scaleRatio)}_handleMinimapClick(t){const i=this._positionTrackerView;if(t.target===i.element)return;const n=new e.Rect(i.element),o=(t.clientY-n.top-n.height/2)/this._minimapIframeView.height;this.fire("click",o)}_handleMinimapMouseWheel(t){this.fire("drag",t.deltaY*this._scaleRatio)}}var m=i(783);function p(t,e){const i=t.editing.view.document,n=i.getRoot(e),o=new m.DomConverter(i),r=new m.Renderer(o,i.selection),s=t.editing.view.getDomRoot().cloneNode();return o.bindElements(s,n),r.markToSync("children",n),r.markToSync("attributes",n),n.on("change:children",((t,e)=>r.markToSync("children",e))),n.on("change:attributes",((t,e)=>r.markToSync("attributes",e))),n.on("change:text",((t,e)=>r.markToSync("text",e))),r.render(),t.editing.view.on("render",(()=>r.render())),t.on("destroy",(()=>{o.unbindDomElement(s)})),s}function h(t){return new e.Rect(t===e.global.document.body?e.global.window:t)}function d(t){return t===e.global.document.body?e.global.window:t}var u=i(591),g=i.n(u),f=i(639),k=i.n(f),_=i(128),b=i.n(_),v=i(21),w=i.n(v),y=i(51),x=i.n(y),T=i(188),R={attributes:{"data-cke":!0}};R.setAttributes=w(),R.insert=b().bind(null,"head"),R.domAPI=k(),R.insertStyleElement=x();g()(T.A,R);T.A&&T.A.locals&&T.A.locals;class S extends t.Plugin{static get pluginName(){return"Minimap"}static get isOfficialPlugin(){return!0}_minimapView;_scrollableRootAncestor;_editingRootElement;init(){const t=this.editor;this._minimapView=null,this._scrollableRootAncestor=null,this.listenTo(t.ui,"ready",this._onUiReady.bind(this))}destroy(){super.destroy(),this._minimapView.destroy(),this._minimapView.element.remove()}_onUiReady(){const t=this.editor,i=this._editingRootElement=t.ui.getEditableElement();this._scrollableRootAncestor=(0,e.findClosestScrollableAncestor)(i),i.ownerDocument.body.contains(i)?(this._initializeMinimapView(),this.listenTo(t.editing.view,"render",(()=>{"ready"===t.state&&this._syncMinimapToEditingRootScrollPosition()})),this._syncMinimapToEditingRootScrollPosition()):t.ui.once("update",this._onUiReady.bind(this))}_initializeMinimapView(){const t=this.editor,i=t.locale,n=t.config.get("minimap.useSimplePreview"),o=t.config.get("minimap.container"),r=this._scrollableRootAncestor,s=h(this._editingRootElement).width,a=h(o).width/s,c=this._minimapView=new l({locale:i,scaleRatio:a,pageStyles:Array.from(e.global.document.styleSheets).map((t=>t.href&&!t.href.startsWith(e.global.window.location.origin)?{href:t.href}:Array.from(t.cssRules).filter((t=>!(t instanceof CSSMediaRule))).map((t=>t.cssText)).join(" \n"))),extraClasses:t.config.get("minimap.extraClasses"),useSimplePreview:n,domRootClone:p(t)});c.render(),c.listenTo(e.global.document,"scroll",((t,i)=>{if(r===e.global.document.body){if(i.target!==e.global.document)return}else if(i.target!==r)return;this._syncMinimapToEditingRootScrollPosition()}),{useCapture:!0,usePassive:!0}),c.listenTo(e.global.window,"resize",(()=>{this._syncMinimapToEditingRootScrollPosition()})),c.on("drag",((t,i)=>{let n;n=0===c.scrollHeight?0:i/c.scrollHeight;const o=n*(r.scrollHeight-((s=r)===e.global.document.body?e.global.window.innerHeight:s.clientHeight));var s;d(r).scrollBy(0,Math.round(o))})),c.on("click",((t,e)=>{const i=e*r.scrollHeight;d(r).scrollBy(0,Math.round(i))})),o.appendChild(c.element)}_syncMinimapToEditingRootScrollPosition(){const t=this._editingRootElement,e=this._minimapView;e.setContentHeight(t.offsetHeight);const i=h(t),n=h(this._scrollableRootAncestor);let o;n.contains(i)||i.top>n.top?o=0:(o=(i.top-n.top)/(n.height-i.height),o=Math.max(0,Math.min(o,1))),e.setPositionTrackerHeight(n.getIntersection(i).height),e.setScrollProgress(o)}}})(),(window.CKEditor5=window.CKEditor5||{}).minimap=n})();
4
+ */(()=>{var t={21:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},51:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},128:t=>{"use strict";var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},188:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var n=i(758),o=i.n(n),r=i(935),s=i.n(r)()(o());s.push([t.id,':root{--ck-color-minimap-tracker-background:208,0%,51%;--ck-color-minimap-iframe-outline:#bfbfbf;--ck-color-minimap-iframe-shadow:rgba(0,0,0,.11);--ck-color-minimap-progress-background:#666}.ck.ck-minimap{background:var(--ck-color-base-background);position:absolute;user-select:none}.ck.ck-minimap,.ck.ck-minimap iframe{height:100%;width:100%}.ck.ck-minimap iframe{border:0;box-shadow:0 2px 5px var(--ck-color-minimap-iframe-shadow);margin:0;outline:1px solid var(--ck-color-minimap-iframe-outline);pointer-events:none;position:relative}.ck.ck-minimap .ck.ck-minimap__position-tracker{background:hsla(var(--ck-color-minimap-tracker-background),.2);position:absolute;top:0;transition:background .1s ease-in-out;width:100%;z-index:1}@media (prefers-reduced-motion:reduce){.ck.ck-minimap .ck.ck-minimap__position-tracker{transition:none}}.ck.ck-minimap .ck.ck-minimap__position-tracker:hover{background:hsla(var(--ck-color-minimap-tracker-background),.3)}.ck.ck-minimap .ck.ck-minimap__position-tracker.ck-minimap__position-tracker_dragging,.ck.ck-minimap .ck.ck-minimap__position-tracker.ck-minimap__position-tracker_dragging:hover{background:hsla(var(--ck-color-minimap-tracker-background),.4)}.ck.ck-minimap .ck.ck-minimap__position-tracker.ck-minimap__position-tracker_dragging:after,.ck.ck-minimap .ck.ck-minimap__position-tracker.ck-minimap__position-tracker_dragging:hover:after{opacity:1}.ck.ck-minimap .ck.ck-minimap__position-tracker:after{background:var(--ck-color-minimap-progress-background);border:1px solid var(--ck-color-base-background);border-radius:3px;color:var(--ck-color-base-background);content:attr(data-progress) "%";font-size:10px;opacity:0;padding:2px 4px;position:absolute;right:5px;top:5px;transition:opacity .1s ease-in-out}@media (prefers-reduced-motion:reduce){.ck.ck-minimap .ck.ck-minimap__position-tracker:after{transition:none}}',""]);const a=s},237:t=>{"use strict";t.exports=CKEditor5.dll},311:(t,e,i)=>{t.exports=i(237)("./src/ui.js")},584:(t,e,i)=>{t.exports=i(237)("./src/utils.js")},591:t=>{"use strict";var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var r={},s=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],m=r[l]||0,p="".concat(l," ").concat(m);r[l]=m+1;var h=i(p),d={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==h)e[h].references++,e[h].updater(d);else{var u=o(d,n);n.byIndex=a,e.splice(a,0,{identifier:p,updater:u,references:1})}s.push(p)}return s}function o(t,e){var i=e.domAPI(e);i.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,o){var r=n(t=t||[],o=o||{});return function(t){t=t||[];for(var s=0;s<r.length;s++){var a=i(r[s]);e[a].references--}for(var c=n(t,o),l=0;l<r.length;l++){var m=i(r[l]);0===e[m].references&&(e[m].updater(),e.splice(m,1))}r=c}}},639:t=>{"use strict";var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,o){var r;if(n)r="";else{r="",o.supports&&(r+="@supports (".concat(o.supports,") {")),o.media&&(r+="@media ".concat(o.media," {"));var s=void 0!==o.layer;s&&(r+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),r+=o.css,s&&(r+="}"),o.media&&(r+="}"),o.supports&&(r+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,r);else{var a=document.createTextNode(r),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var o={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=o.singletonCounter++,i=o.singleton||(o.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}},758:t=>{"use strict";t.exports=function(t){return t[1]}},782:(t,e,i)=>{t.exports=i(237)("./src/core.js")},783:(t,e,i)=>{t.exports=i(237)("./src/engine.js")},935:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,o,r){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(s[c]=!0)}for(var l=0;l<t.length;l++){var m=[].concat(t[l]);n&&s[m[0]]||(void 0!==r&&(void 0===m[5]||(m[1]="@layer".concat(m[5].length>0?" ".concat(m[5]):""," {").concat(m[1],"}")),m[5]=r),i&&(m[2]?(m[1]="@media ".concat(m[2]," {").concat(m[1],"}"),m[2]=i):m[2]=i),o&&(m[4]?(m[1]="@supports (".concat(m[4],") {").concat(m[1],"}"),m[4]=o):m[4]="".concat(o)),e.push(m))}},e}}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={id:n,exports:{}};return t[n](r,r.exports,i),r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";i.r(n),i.d(n,{Minimap:()=>S});var t=i(782),e=i(584),o=i(311);const r=(0,e.toUnit)("px");class s extends o.IframeView{_options;constructor(t,e){super(t);const i=this.bindTemplate;this.set("top",0),this.set("height",0),this._options=e,this.extendTemplate({attributes:{tabindex:-1,"aria-hidden":"true",class:["ck-minimap__iframe"],style:{top:i.to("top",(t=>r(t))),height:i.to("height",(t=>r(t)))}}})}render(){return super.render().then((()=>{this._prepareDocument()}))}setHeight(t){this.height=t}setTopOffset(t){this.top=t}_prepareDocument(){const t=this.element.contentWindow.document,e=t.adoptNode(this._options.domRootClone),i=this._options.useSimplePreview?"\n\t\t\t.ck.ck-editor__editable_inline img {\n\t\t\t\tfilter: contrast( 0 );\n\t\t\t}\n\n\t\t\tp, li, a, figcaption, span {\n\t\t\t\tbackground: hsl(0, 0%, 80%) !important;\n\t\t\t\tcolor: hsl(0, 0%, 80%) !important;\n\t\t\t}\n\n\t\t\th1, h2, h3, h4 {\n\t\t\t\tbackground: hsl(0, 0%, 60%) !important;\n\t\t\t\tcolor: hsl(0, 0%, 60%) !important;\n\t\t\t}\n\t\t":"",n=`<!DOCTYPE html><html lang="en">\n\t\t\t<head>\n\t\t\t\t<meta charset="utf-8">\n\t\t\t\t<meta name="viewport" content="width=device-width, initial-scale=1">\n\t\t\t\t${this._options.pageStyles.map((t=>"string"==typeof t?`<style>${t}</style>`:`<link rel="stylesheet" type="text/css" href="${t.href}">`)).join("\n")}\n\t\t\t\t<style>\n\t\t\t\t\thtml, body {\n\t\t\t\t\t\tmargin: 0 !important;\n\t\t\t\t\t\tpadding: 0 !important;\n\t\t\t\t\t}\n\n\t\t\t\t\thtml {\n\t\t\t\t\t\toverflow: hidden;\n\t\t\t\t\t}\n\n\t\t\t\t\tbody {\n\t\t\t\t\t\ttransform: scale( ${this._options.scaleRatio} );\n\t\t\t\t\t\ttransform-origin: 0 0;\n\t\t\t\t\t\toverflow: visible;\n\t\t\t\t\t}\n\n\t\t\t\t\t.ck.ck-editor__editable_inline {\n\t\t\t\t\t\tmargin: 0 !important;\n\t\t\t\t\t\tborder-color: transparent !important;\n\t\t\t\t\t\toutline-color: transparent !important;\n\t\t\t\t\t\tbox-shadow: none !important;\n\t\t\t\t\t}\n\n\t\t\t\t\t.ck.ck-content {\n\t\t\t\t\t\tbackground: white;\n\t\t\t\t\t}\n\n\t\t\t\t\t${i}\n\t\t\t\t</style>\n\t\t\t</head>\n\t\t\t<body class="${this._options.extraClasses||""}"></body>\n\t\t</html>`;t.open(),t.write(n),t.close(),t.body.appendChild(e)}}const a=(0,e.toUnit)("px");class c extends o.View{constructor(t){super(t);const e=this.bindTemplate;this.set("height",0),this.set("top",0),this.set("scrollProgress",0),this.set("_isDragging",!1),this.setTemplate({tag:"div",attributes:{class:["ck","ck-minimap__position-tracker",e.if("_isDragging","ck-minimap__position-tracker_dragging")],style:{top:e.to("top",(t=>a(t))),height:e.to("height",(t=>a(t)))},"data-progress":e.to("scrollProgress")},on:{mousedown:e.to((()=>{this._isDragging=!0}))}})}render(){super.render(),this.listenTo(e.global.document,"mousemove",((t,e)=>{this._isDragging&&this.fire("drag",e.movementY)}),{useCapture:!0}),this.listenTo(e.global.document,"mouseup",(()=>{this._isDragging=!1}),{useCapture:!0})}setHeight(t){this.height=t}setTopOffset(t){this.top=t}setScrollProgress(t){this.scrollProgress=t}}class l extends o.View{_positionTrackerView;_scaleRatio;_minimapIframeView;constructor({locale:t,scaleRatio:e,pageStyles:i,extraClasses:n,useSimplePreview:o,domRootClone:r}){super(t);const a=this.bindTemplate;this._positionTrackerView=new c(t),this._positionTrackerView.delegate("drag").to(this),this._scaleRatio=e,this._minimapIframeView=new s(t,{useSimplePreview:o,pageStyles:i,extraClasses:n,scaleRatio:e,domRootClone:r}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-minimap"]},children:[this._positionTrackerView],on:{click:a.to(this._handleMinimapClick.bind(this)),wheel:a.to(this._handleMinimapMouseWheel.bind(this))}})}destroy(){this._minimapIframeView.destroy(),super.destroy()}get height(){return new e.Rect(this.element).height}get scrollHeight(){return Math.max(0,Math.min(this.height,this._minimapIframeView.height)-this._positionTrackerView.height)}render(){super.render(),this._minimapIframeView.render(),this.element.appendChild(this._minimapIframeView.element)}setContentHeight(t){this._minimapIframeView.setHeight(t*this._scaleRatio)}setScrollProgress(t){const e=this._minimapIframeView,i=this._positionTrackerView;if(e.height<this.height)e.setTopOffset(0),i.setTopOffset((e.height-i.height)*t);else{const n=e.height-this.height;e.setTopOffset(-n*t),i.setTopOffset((this.height-i.height)*t)}i.setScrollProgress(Math.round(100*t))}setPositionTrackerHeight(t){this._positionTrackerView.setHeight(t*this._scaleRatio)}_handleMinimapClick(t){const i=this._positionTrackerView;if(t.target===i.element)return;const n=new e.Rect(i.element),o=(t.clientY-n.top-n.height/2)/this._minimapIframeView.height;this.fire("click",o)}_handleMinimapMouseWheel(t){this.fire("drag",t.deltaY*this._scaleRatio)}}var m=i(783);function p(t,e){const i=t.editing.view.document,n=i.getRoot(e),o=new m.DomConverter(i),r=new m.Renderer(o,i.selection),s=t.editing.view.getDomRoot().cloneNode();return o.bindElements(s,n),r.markToSync("children",n),r.markToSync("attributes",n),n.on("change:children",((t,e)=>r.markToSync("children",e))),n.on("change:attributes",((t,e)=>r.markToSync("attributes",e))),n.on("change:text",((t,e)=>r.markToSync("text",e))),r.render(),t.editing.view.on("render",(()=>r.render())),t.on("destroy",(()=>{o.unbindDomElement(s)})),s}function h(t){return new e.Rect(t===e.global.document.body?e.global.window:t)}function d(t){return t===e.global.document.body?e.global.window:t}var u=i(591),g=i.n(u),f=i(639),k=i.n(f),_=i(128),b=i.n(_),v=i(21),w=i.n(v),y=i(51),x=i.n(y),T=i(188),R={attributes:{"data-cke":!0}};R.setAttributes=w(),R.insert=b().bind(null,"head"),R.domAPI=k(),R.insertStyleElement=x();g()(T.A,R);T.A&&T.A.locals&&T.A.locals;class S extends t.Plugin{static get pluginName(){return"Minimap"}static get isOfficialPlugin(){return!0}_minimapView;_scrollableRootAncestor;_editingRootElement;init(){const t=this.editor;this._minimapView=null,this._scrollableRootAncestor=null,this.listenTo(t.ui,"ready",this._onUiReady.bind(this))}destroy(){super.destroy(),this._minimapView.destroy(),this._minimapView.element.remove()}_onUiReady(){const t=this.editor,i=this._editingRootElement=t.ui.getEditableElement();this._scrollableRootAncestor=(0,e.findClosestScrollableAncestor)(i),i.ownerDocument.body.contains(i)?(this._initializeMinimapView(),this.listenTo(t.editing.view,"render",(()=>{"ready"===t.state&&this._syncMinimapToEditingRootScrollPosition()})),this._syncMinimapToEditingRootScrollPosition()):t.ui.once("update",this._onUiReady.bind(this))}_initializeMinimapView(){const t=this.editor,i=t.locale,n=t.config.get("minimap.useSimplePreview"),o=t.config.get("minimap.container"),r=this._scrollableRootAncestor,s=h(this._editingRootElement).width,a=h(o).width/s,c=this._minimapView=new l({locale:i,scaleRatio:a,pageStyles:Array.from(e.global.document.styleSheets).map((t=>t.href&&!t.href.startsWith(e.global.window.location.origin)?{href:t.href}:Array.from(t.cssRules).filter((t=>!(t instanceof CSSMediaRule))).map((t=>t.cssText)).join(" \n"))),extraClasses:t.config.get("minimap.extraClasses"),useSimplePreview:n,domRootClone:p(t)});c.render(),c.listenTo(e.global.document,"scroll",((t,i)=>{if(r===e.global.document.body){if(i.target!==e.global.document)return}else if(i.target!==r)return;this._syncMinimapToEditingRootScrollPosition()}),{useCapture:!0,usePassive:!0}),c.listenTo(e.global.window,"resize",(()=>{this._syncMinimapToEditingRootScrollPosition()})),c.on("drag",((t,i)=>{let n;n=0===c.scrollHeight?0:i/c.scrollHeight;const o=n*(r.scrollHeight-((s=r)===e.global.document.body?e.global.window.innerHeight:s.clientHeight));var s;d(r).scrollBy(0,Math.round(o))})),c.on("click",((t,e)=>{const i=e*r.scrollHeight;d(r).scrollBy(0,Math.round(i))})),o.appendChild(c.element)}_syncMinimapToEditingRootScrollPosition(){const t=this._editingRootElement,e=this._minimapView;e.setContentHeight(t.offsetHeight);const i=h(t),n=h(this._scrollableRootAncestor);let o;n.getIntersection(i)&&(n.contains(i)||i.top>n.top?o=0:(o=(i.top-n.top)/(n.height-i.height),o=Math.max(0,Math.min(o,1))),e.setPositionTrackerHeight(n.getIntersection(i).height),e.setScrollProgress(o))}}})(),(window.CKEditor5=window.CKEditor5||{}).minimap=n})();
package/dist/index.js CHANGED
@@ -532,6 +532,11 @@ const toPx = /* #__PURE__ */ toUnit('px');
532
532
  const editingRootRect = getDomElementRect(editingRootElement);
533
533
  const scrollableRootAncestorRect = getDomElementRect(this._scrollableRootAncestor);
534
534
  let scrollProgress;
535
+ // It's possible that at some point elements do not intersect, e.g. when entering the fullscreen mode.
536
+ // Prevent the minimap from being updated in such case.
537
+ if (!scrollableRootAncestorRect.getIntersection(editingRootRect)) {
538
+ return;
539
+ }
535
540
  // @if CK_DEBUG_MINIMAP // RectDrawer.clear();
536
541
  // @if CK_DEBUG_MINIMAP // RectDrawer.draw( scrollableRootAncestorRect, { outlineColor: 'red' }, 'scrollableRootAncestor' );
537
542
  // @if CK_DEBUG_MINIMAP // RectDrawer.draw( editingRootRect, { outlineColor: 'green' }, 'editingRoot' );
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js","../src/minimapiframeview.ts","../src/minimappositiontrackerview.ts","../src/minimapview.ts","../src/utils.ts","../src/minimap.ts"],"names":["toPx","toUnit","MinimapIframeView","IframeView","constructor","locale","options","bind","bindTemplate","set","_options","extendTemplate","attributes","tabindex","class","style","top","to","height","render","then","_prepareDocument","setHeight","newHeight","setTopOffset","newOffset","iframeDocument","element","contentWindow","document","domRootClone","adoptNode","boxStyles","useSimplePreview","pageStyles","map","definition","href","join","html","scaleRatio","extraClasses","open","write","close","body","appendChild","MinimapPositionTrackerView","View","setTemplate","tag","if","on","mousedown","_isDragging","listenTo","global","evt","data","fire","movementY","useCapture","setScrollProgress","newProgress","scrollProgress","MinimapView","_positionTrackerView","delegate","_scaleRatio","_minimapIframeView","children","click","_handleMinimapClick","wheel","_handleMinimapMouseWheel","destroy","Rect","scrollHeight","Math","max","min","setContentHeight","newScrollProgress","iframeView","positionTrackerView","totalOffset","round","setPositionTrackerHeight","trackerHeight","target","trackerViewRect","diff","clientY","percentage","deltaY","cloneEditingViewDomRoot","editor","rootName","viewDocument","editing","view","viewRoot","getRoot","domConverter","DomConverter","renderer","Renderer","selection","getDomRoot","cloneNode","bindElements","markToSync","node","unbindDomElement","getPageStyles","Array","from","styleSheets","styleSheet","startsWith","window","location","origin","cssRules","filter","rule","CSSMediaRule","cssText","getDomElementRect","domElement","getClientHeight","innerHeight","clientHeight","getScrollable","Minimap","Plugin","pluginName","isOfficialPlugin","_minimapView","_scrollableRootAncestor","ui","_onUiReady","remove","editingRootElement","_editingRootElement","getEditableElement","findClosestScrollableAncestor","ownerDocument","contains","once","_initializeMinimapView","state","_syncMinimapToEditingRootScrollPosition","config","get","minimapContainerElement","scrollableRootAncestor","editingRootElementWidth","width","minimapContainerWidth","minimapScaleRatio","minimapView","usePassive","movementYPercentage","absoluteScrollProgress","scrollable","scrollBy","offsetHeight","editingRootRect","scrollableRootAncestorRect","getIntersection"],"mappings":";;;;AAAA,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;AAC/D,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;AAC7G,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;AACvE,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;ACUjF,KAAA,CAAMA,IAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA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,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM;AKrU1HiG,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,WAAAA,CAAY1E,wBAAwB,CAAEkF,0BAAAA,CAA2BC,eAAe,CAAEF,eAAAA,CAAAA,CAAmBtJ,MAAM,CAAA;AAC3G+I,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,WAAAA,CAAYnG,iBAAiB,CAAEE,cAAAA,CAAAA;AAChC,CAAA,CAAA,CAAA,CAAA;AACD;;ALwUA,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC","file":"index.js.map","sourcesContent":["import { Plugin } from '@ckeditor/ckeditor5-core/dist/index.js';\nimport { toUnit, global, Rect, findClosestScrollableAncestor } from '@ckeditor/ckeditor5-utils/dist/index.js';\nimport { IframeView, View } from '@ckeditor/ckeditor5-ui/dist/index.js';\nimport { DomConverter, Renderer } from '@ckeditor/ckeditor5-engine/dist/index.js';\n\nconst toPx$1 = /* #__PURE__ */ toUnit('px');\n/**\n * The internal `<iframe>` view that hosts the minimap content.\n *\n * @internal\n */ class MinimapIframeView extends IframeView {\n /**\n\t * Cached view constructor options for re-use in other methods.\n\t */ _options;\n /**\n\t * Creates an instance of the internal minimap iframe.\n\t */ constructor(locale, options){\n super(locale);\n const bind = this.bindTemplate;\n this.set('top', 0);\n this.set('height', 0);\n this._options = options;\n this.extendTemplate({\n attributes: {\n tabindex: -1,\n 'aria-hidden': 'true',\n class: [\n 'ck-minimap__iframe'\n ],\n style: {\n top: bind.to('top', (top)=>toPx$1(top)),\n height: bind.to('height', (height)=>toPx$1(height))\n }\n }\n });\n }\n /**\n\t * @inheritDoc\n\t */ render() {\n return super.render().then(()=>{\n this._prepareDocument();\n });\n }\n /**\n\t * Sets the new height of the iframe.\n\t */ setHeight(newHeight) {\n this.height = newHeight;\n }\n /**\n\t * Sets the top offset of the iframe to move it around vertically.\n\t */ setTopOffset(newOffset) {\n this.top = newOffset;\n }\n /**\n\t * Sets the internal structure of the `<iframe>` readying it to display the\n\t * minimap element.\n\t */ _prepareDocument() {\n const iframeDocument = this.element.contentWindow.document;\n const domRootClone = iframeDocument.adoptNode(this._options.domRootClone);\n const boxStyles = this._options.useSimplePreview ? `\n\t\t\t.ck.ck-editor__editable_inline img {\n\t\t\t\tfilter: contrast( 0 );\n\t\t\t}\n\n\t\t\tp, li, a, figcaption, span {\n\t\t\t\tbackground: hsl(0, 0%, 80%) !important;\n\t\t\t\tcolor: hsl(0, 0%, 80%) !important;\n\t\t\t}\n\n\t\t\th1, h2, h3, h4 {\n\t\t\t\tbackground: hsl(0, 0%, 60%) !important;\n\t\t\t\tcolor: hsl(0, 0%, 60%) !important;\n\t\t\t}\n\t\t` : '';\n const pageStyles = this._options.pageStyles.map((definition)=>{\n if (typeof definition === 'string') {\n return `<style>${definition}</style>`;\n } else {\n return `<link rel=\"stylesheet\" type=\"text/css\" href=\"${definition.href}\">`;\n }\n }).join('\\n');\n const html = `<!DOCTYPE html><html lang=\"en\">\n\t\t\t<head>\n\t\t\t\t<meta charset=\"utf-8\">\n\t\t\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t\t\t\t${pageStyles}\n\t\t\t\t<style>\n\t\t\t\t\thtml, body {\n\t\t\t\t\t\tmargin: 0 !important;\n\t\t\t\t\t\tpadding: 0 !important;\n\t\t\t\t\t}\n\n\t\t\t\t\thtml {\n\t\t\t\t\t\toverflow: hidden;\n\t\t\t\t\t}\n\n\t\t\t\t\tbody {\n\t\t\t\t\t\ttransform: scale( ${this._options.scaleRatio} );\n\t\t\t\t\t\ttransform-origin: 0 0;\n\t\t\t\t\t\toverflow: visible;\n\t\t\t\t\t}\n\n\t\t\t\t\t.ck.ck-editor__editable_inline {\n\t\t\t\t\t\tmargin: 0 !important;\n\t\t\t\t\t\tborder-color: transparent !important;\n\t\t\t\t\t\toutline-color: transparent !important;\n\t\t\t\t\t\tbox-shadow: none !important;\n\t\t\t\t\t}\n\n\t\t\t\t\t.ck.ck-content {\n\t\t\t\t\t\tbackground: white;\n\t\t\t\t\t}\n\n\t\t\t\t\t${boxStyles}\n\t\t\t\t</style>\n\t\t\t</head>\n\t\t\t<body class=\"${this._options.extraClasses || ''}\"></body>\n\t\t</html>`;\n iframeDocument.open();\n iframeDocument.write(html);\n iframeDocument.close();\n iframeDocument.body.appendChild(domRootClone);\n }\n}\n\nconst toPx = /* #__PURE__ */ toUnit('px');\n/**\n * The position tracker visualizing the visible subset of the content. Displayed over the minimap.\n *\n * @internal\n */ class MinimapPositionTrackerView extends View {\n constructor(locale){\n super(locale);\n const bind = this.bindTemplate;\n this.set('height', 0);\n this.set('top', 0);\n this.set('scrollProgress', 0);\n this.set('_isDragging', false);\n this.setTemplate({\n tag: 'div',\n attributes: {\n class: [\n 'ck',\n 'ck-minimap__position-tracker',\n bind.if('_isDragging', 'ck-minimap__position-tracker_dragging')\n ],\n style: {\n top: bind.to('top', (top)=>toPx(top)),\n height: bind.to('height', (height)=>toPx(height))\n },\n 'data-progress': bind.to('scrollProgress')\n },\n on: {\n mousedown: bind.to(()=>{\n this._isDragging = true;\n })\n }\n });\n }\n /**\n\t * @inheritDoc\n\t */ render() {\n super.render();\n this.listenTo(global.document, 'mousemove', (evt, data)=>{\n if (!this._isDragging) {\n return;\n }\n this.fire('drag', data.movementY);\n }, {\n useCapture: true\n });\n this.listenTo(global.document, 'mouseup', ()=>{\n this._isDragging = false;\n }, {\n useCapture: true\n });\n }\n /**\n\t * Sets the new height of the tracker to visualize the subset of the content visible to the user.\n\t */ setHeight(newHeight) {\n this.height = newHeight;\n }\n /**\n\t * Sets the top offset of the tracker to move it around vertically.\n\t */ setTopOffset(newOffset) {\n this.top = newOffset;\n }\n /**\n\t * Sets the scroll progress (in %) to inform the user using a label when the tracker is being dragged.\n\t */ setScrollProgress(newProgress) {\n this.scrollProgress = newProgress;\n }\n}\n\n/**\n * The main view of the minimap. It renders the original content but scaled down with a tracker element\n * visualizing the subset of the content visible to the user and allowing interactions (scrolling, dragging).\n *\n * @internal\n */ class MinimapView extends View {\n /**\n\t * An instance of the tracker view displayed over the minimap.\n\t */ _positionTrackerView;\n /**\n\t * The scale ratio of the minimap relative to the original editing DOM root with the content.\n\t */ _scaleRatio;\n /**\n\t * An instance of the iframe view that hosts the minimap.\n\t */ _minimapIframeView;\n /**\n\t * Creates an instance of the minimap view.\n\t */ constructor({ locale, scaleRatio, pageStyles, extraClasses, useSimplePreview, domRootClone }){\n super(locale);\n const bind = this.bindTemplate;\n this._positionTrackerView = new MinimapPositionTrackerView(locale);\n this._positionTrackerView.delegate('drag').to(this);\n this._scaleRatio = scaleRatio;\n this._minimapIframeView = new MinimapIframeView(locale, {\n useSimplePreview,\n pageStyles,\n extraClasses,\n scaleRatio,\n domRootClone\n });\n this.setTemplate({\n tag: 'div',\n attributes: {\n class: [\n 'ck',\n 'ck-minimap'\n ]\n },\n children: [\n this._positionTrackerView\n ],\n on: {\n click: bind.to(this._handleMinimapClick.bind(this)),\n wheel: bind.to(this._handleMinimapMouseWheel.bind(this))\n }\n });\n }\n /**\n\t * @inheritDoc\n\t */ destroy() {\n this._minimapIframeView.destroy();\n super.destroy();\n }\n /**\n\t * Returns the DOM {@link module:utils/dom/rect~Rect} height of the minimap.\n\t */ get height() {\n return new Rect(this.element).height;\n }\n /**\n\t * Returns the number of available space (pixels) the position tracker (visible subset of the content) can use to scroll vertically.\n\t */ get scrollHeight() {\n return Math.max(0, Math.min(this.height, this._minimapIframeView.height) - this._positionTrackerView.height);\n }\n /**\n\t * @inheritDoc\n\t */ render() {\n super.render();\n this._minimapIframeView.render();\n this.element.appendChild(this._minimapIframeView.element);\n }\n /**\n\t * Sets the new height of the minimap (in px) to respond to the changes in the original editing DOM root.\n\t *\n\t * **Note**:The provided value should be the `offsetHeight` of the original editing DOM root.\n\t */ setContentHeight(newHeight) {\n this._minimapIframeView.setHeight(newHeight * this._scaleRatio);\n }\n /**\n\t * Sets the minimap scroll progress.\n\t *\n\t * The minimap scroll progress is linked to the original editing DOM root and its scrollable container (ancestor).\n\t * Changing the progress will alter the vertical position of the minimap (and its position tracker) and give the user an accurate\n\t * overview of the visible document.\n\t *\n\t * **Note**: The value should be between 0 and 1. 0 when the DOM root has not been scrolled, 1 when the\n\t * scrolling has reached the end.\n\t */ setScrollProgress(newScrollProgress) {\n const iframeView = this._minimapIframeView;\n const positionTrackerView = this._positionTrackerView;\n // The scrolling should end when the bottom edge of the iframe touches the bottom edge of the minimap.\n if (iframeView.height < this.height) {\n iframeView.setTopOffset(0);\n positionTrackerView.setTopOffset((iframeView.height - positionTrackerView.height) * newScrollProgress);\n } else {\n const totalOffset = iframeView.height - this.height;\n iframeView.setTopOffset(-totalOffset * newScrollProgress);\n positionTrackerView.setTopOffset((this.height - positionTrackerView.height) * newScrollProgress);\n }\n positionTrackerView.setScrollProgress(Math.round(newScrollProgress * 100));\n }\n /**\n\t * Sets the new height of the tracker (in px) to visualize the subset of the content visible to the user.\n\t */ setPositionTrackerHeight(trackerHeight) {\n this._positionTrackerView.setHeight(trackerHeight * this._scaleRatio);\n }\n /**\n\t * @param data DOM event data\n\t */ _handleMinimapClick(data) {\n const positionTrackerView = this._positionTrackerView;\n if (data.target === positionTrackerView.element) {\n return;\n }\n const trackerViewRect = new Rect(positionTrackerView.element);\n const diff = data.clientY - trackerViewRect.top - trackerViewRect.height / 2;\n const percentage = diff / this._minimapIframeView.height;\n this.fire('click', percentage);\n }\n /**\n\t * @param data DOM event data\n\t */ _handleMinimapMouseWheel(data) {\n this.fire('drag', data.deltaY * this._scaleRatio);\n }\n}\n\n/**\n * Clones the editing view DOM root by using a dedicated pair of {@link module:engine/view/renderer~Renderer} and\n * {@link module:engine/view/domconverter~DomConverter}. The DOM root clone updates incrementally to stay in sync with the\n * source root.\n *\n * @internal\n * @param editor The editor instance the original editing root belongs to.\n * @param rootName The name of the root to clone.\n * @returns The editing root DOM clone element.\n */ function cloneEditingViewDomRoot(editor, rootName) {\n const viewDocument = editor.editing.view.document;\n const viewRoot = viewDocument.getRoot(rootName);\n const domConverter = new DomConverter(viewDocument);\n const renderer = new Renderer(domConverter, viewDocument.selection);\n const domRootClone = editor.editing.view.getDomRoot().cloneNode();\n domConverter.bindElements(domRootClone, viewRoot);\n renderer.markToSync('children', viewRoot);\n renderer.markToSync('attributes', viewRoot);\n viewRoot.on('change:children', (evt, node)=>renderer.markToSync('children', node));\n viewRoot.on('change:attributes', (evt, node)=>renderer.markToSync('attributes', node));\n viewRoot.on('change:text', (evt, node)=>renderer.markToSync('text', node));\n renderer.render();\n editor.editing.view.on('render', ()=>renderer.render());\n // TODO: Cleanup after destruction.\n editor.on('destroy', ()=>{\n domConverter.unbindDomElement(domRootClone);\n });\n return domRootClone;\n}\n/**\n * Harvests all web page styles, for instance, to allow re-using them in an `<iframe>` preserving the look of the content.\n *\n * The returned data format is as follows:\n *\n * ```ts\n * [\n * \t'p { color: red; ... } h2 { font-size: 2em; ... } ...',\n * \t'.spacing { padding: 1em; ... }; ...',\n * \t'...',\n * \t{ href: 'http://link.to.external.stylesheet' },\n * \t{ href: '...' }\n * ]\n * ```\n *\n * **Note**: For stylesheets with `href` different than window origin, an object is returned because\n * accessing rules of these styles may cause CORS errors (depending on the configuration of the web page).\n *\n * @internal\n */ function getPageStyles() {\n return Array.from(global.document.styleSheets).map((styleSheet)=>{\n // CORS\n if (styleSheet.href && !styleSheet.href.startsWith(global.window.location.origin)) {\n return {\n href: styleSheet.href\n };\n }\n return Array.from(styleSheet.cssRules).filter((rule)=>!(rule instanceof CSSMediaRule)).map((rule)=>rule.cssText).join(' \\n');\n });\n}\n/**\n * Gets dimensions rectangle according to passed DOM element. Returns whole window's size for `body` element.\n *\n * @internal\n */ function getDomElementRect(domElement) {\n return new Rect(domElement === global.document.body ? global.window : domElement);\n}\n/**\n * Gets client height according to passed DOM element. Returns window's height for `body` element.\n *\n * @internal\n */ function getClientHeight(domElement) {\n return domElement === global.document.body ? global.window.innerHeight : domElement.clientHeight;\n}\n/**\n * Returns the DOM element itself if it's not a `body` element, whole window otherwise.\n *\n * @internal\n */ function getScrollable(domElement) {\n return domElement === global.document.body ? global.window : domElement;\n}\n\n/**\n * The content minimap feature.\n */ class Minimap extends Plugin {\n /**\n\t * @inheritDoc\n\t */ static get pluginName() {\n return 'Minimap';\n }\n /**\n\t * @inheritDoc\n\t */ static get isOfficialPlugin() {\n return true;\n }\n /**\n\t * The reference to the view of the minimap.\n\t */ _minimapView;\n /**\n\t * The DOM element closest to the editable element of the editor as returned\n\t * by {@link module:ui/editorui/editorui~EditorUI#getEditableElement}.\n\t */ _scrollableRootAncestor;\n /**\n\t * The DOM element closest to the editable element of the editor as returned\n\t * by {@link module:ui/editorui/editorui~EditorUI#getEditableElement}.\n\t */ _editingRootElement;\n /**\n\t * @inheritDoc\n\t */ init() {\n const editor = this.editor;\n this._minimapView = null;\n this._scrollableRootAncestor = null;\n this.listenTo(editor.ui, 'ready', this._onUiReady.bind(this));\n }\n /**\n\t * @inheritDoc\n\t */ destroy() {\n super.destroy();\n this._minimapView.destroy();\n this._minimapView.element.remove();\n }\n /**\n\t * Initializes the minimap view element and starts the layout synchronization\n\t * on the editing view `render` event.\n\t */ _onUiReady() {\n const editor = this.editor;\n // TODO: This will not work with the multi-root editor.\n const editingRootElement = this._editingRootElement = editor.ui.getEditableElement();\n this._scrollableRootAncestor = findClosestScrollableAncestor(editingRootElement);\n // DOM root element is not yet attached to the document.\n if (!editingRootElement.ownerDocument.body.contains(editingRootElement)) {\n editor.ui.once('update', this._onUiReady.bind(this));\n return;\n }\n this._initializeMinimapView();\n this.listenTo(editor.editing.view, 'render', ()=>{\n if (editor.state !== 'ready') {\n return;\n }\n this._syncMinimapToEditingRootScrollPosition();\n });\n this._syncMinimapToEditingRootScrollPosition();\n }\n /**\n\t * Initializes the minimap view and attaches listeners that make it responsive to the environment (document)\n\t * but also allow the minimap to control the document (scroll position).\n\t */ _initializeMinimapView() {\n const editor = this.editor;\n const locale = editor.locale;\n const useSimplePreview = editor.config.get('minimap.useSimplePreview');\n // TODO: Throw an error if there is no `minimap` in config.\n const minimapContainerElement = editor.config.get('minimap.container');\n const scrollableRootAncestor = this._scrollableRootAncestor;\n // TODO: This should be dynamic, the root width could change as the viewport scales if not fixed unit.\n const editingRootElementWidth = getDomElementRect(this._editingRootElement).width;\n const minimapContainerWidth = getDomElementRect(minimapContainerElement).width;\n const minimapScaleRatio = minimapContainerWidth / editingRootElementWidth;\n const minimapView = this._minimapView = new MinimapView({\n locale,\n scaleRatio: minimapScaleRatio,\n pageStyles: getPageStyles(),\n extraClasses: editor.config.get('minimap.extraClasses'),\n useSimplePreview,\n domRootClone: cloneEditingViewDomRoot(editor)\n });\n minimapView.render();\n // Scrollable ancestor scroll -> minimap position update.\n minimapView.listenTo(global.document, 'scroll', (evt, data)=>{\n if (scrollableRootAncestor === global.document.body) {\n if (data.target !== global.document) {\n return;\n }\n } else if (data.target !== scrollableRootAncestor) {\n return;\n }\n this._syncMinimapToEditingRootScrollPosition();\n }, {\n useCapture: true,\n usePassive: true\n });\n // Viewport resize -> minimap position update.\n minimapView.listenTo(global.window, 'resize', ()=>{\n this._syncMinimapToEditingRootScrollPosition();\n });\n // Dragging the visible content area -> document (scrollable) position update.\n minimapView.on('drag', (evt, movementY)=>{\n let movementYPercentage;\n if (minimapView.scrollHeight === 0) {\n movementYPercentage = 0;\n } else {\n movementYPercentage = movementY / minimapView.scrollHeight;\n }\n const absoluteScrollProgress = movementYPercentage * (scrollableRootAncestor.scrollHeight - getClientHeight(scrollableRootAncestor));\n const scrollable = getScrollable(scrollableRootAncestor);\n scrollable.scrollBy(0, Math.round(absoluteScrollProgress));\n });\n // Clicking the minimap -> center the document (scrollable) to the corresponding position.\n minimapView.on('click', (evt, percentage)=>{\n const absoluteScrollProgress = percentage * scrollableRootAncestor.scrollHeight;\n const scrollable = getScrollable(scrollableRootAncestor);\n scrollable.scrollBy(0, Math.round(absoluteScrollProgress));\n });\n minimapContainerElement.appendChild(minimapView.element);\n }\n /**\n\t * @private\n\t */ _syncMinimapToEditingRootScrollPosition() {\n const editingRootElement = this._editingRootElement;\n const minimapView = this._minimapView;\n minimapView.setContentHeight(editingRootElement.offsetHeight);\n const editingRootRect = getDomElementRect(editingRootElement);\n const scrollableRootAncestorRect = getDomElementRect(this._scrollableRootAncestor);\n let scrollProgress;\n // @if CK_DEBUG_MINIMAP // RectDrawer.clear();\n // @if CK_DEBUG_MINIMAP // RectDrawer.draw( scrollableRootAncestorRect, { outlineColor: 'red' }, 'scrollableRootAncestor' );\n // @if CK_DEBUG_MINIMAP // RectDrawer.draw( editingRootRect, { outlineColor: 'green' }, 'editingRoot' );\n // The root is completely visible in the scrollable ancestor.\n if (scrollableRootAncestorRect.contains(editingRootRect)) {\n scrollProgress = 0;\n } else {\n if (editingRootRect.top > scrollableRootAncestorRect.top) {\n scrollProgress = 0;\n } else {\n scrollProgress = (editingRootRect.top - scrollableRootAncestorRect.top) / (scrollableRootAncestorRect.height - editingRootRect.height);\n scrollProgress = Math.max(0, Math.min(scrollProgress, 1));\n }\n }\n // The intersection helps to change the tracker height when there is a lot of padding around the root.\n // Note: It is **essential** that the height is set first because the progress depends on the correct tracker height.\n minimapView.setPositionTrackerHeight(scrollableRootAncestorRect.getIntersection(editingRootRect).height);\n minimapView.setScrollProgress(scrollProgress);\n }\n}\n\nexport { Minimap };\n//# sourceMappingURL=index.js.map\n","/**\n * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/**\n * @module minimap/minimapiframeview\n */\n\nimport { IframeView } from 'ckeditor5/src/ui.js';\nimport { toUnit, type Locale } from 'ckeditor5/src/utils.js';\nimport type { MinimapViewOptions } from './minimapview.js';\n\nconst toPx = /* #__PURE__ */ toUnit( 'px' );\n\n/**\n * The internal `<iframe>` view that hosts the minimap content.\n *\n * @internal\n */\nexport default class MinimapIframeView extends IframeView {\n\t/**\n\t * The CSS `top` used to scroll the minimap.\n\t *\n\t * @readonly\n\t */\n\tdeclare public top: number;\n\n\t/**\n\t * The CSS `height` of the iframe.\n\t *\n\t * @readonly\n\t */\n\tdeclare public height: number;\n\n\t/**\n\t * Cached view constructor options for re-use in other methods.\n\t */\n\tprivate readonly _options: MinimapViewOptions;\n\n\t/**\n\t * Creates an instance of the internal minimap iframe.\n\t */\n\tconstructor( locale: Locale, options: MinimapViewOptions ) {\n\t\tsuper( locale );\n\n\t\tconst bind = this.bindTemplate;\n\n\t\tthis.set( 'top', 0 );\n\n\t\tthis.set( 'height', 0 );\n\n\t\tthis._options = options;\n\n\t\tthis.extendTemplate( {\n\t\t\tattributes: {\n\t\t\t\ttabindex: -1,\n\t\t\t\t'aria-hidden': 'true',\n\t\t\t\tclass: [\n\t\t\t\t\t'ck-minimap__iframe'\n\t\t\t\t],\n\t\t\t\tstyle: {\n\t\t\t\t\ttop: bind.to( 'top', top => toPx( top ) ),\n\t\t\t\t\theight: bind.to( 'height', height => toPx( height ) )\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override render(): Promise<unknown> {\n\t\treturn super.render().then( () => {\n\t\t\tthis._prepareDocument();\n\t\t} );\n\t}\n\n\t/**\n\t * Sets the new height of the iframe.\n\t */\n\tpublic setHeight( newHeight: number ): void {\n\t\tthis.height = newHeight;\n\t}\n\n\t/**\n\t * Sets the top offset of the iframe to move it around vertically.\n\t */\n\tpublic setTopOffset( newOffset: number ): void {\n\t\tthis.top = newOffset;\n\t}\n\n\t/**\n\t * Sets the internal structure of the `<iframe>` readying it to display the\n\t * minimap element.\n\t */\n\tprivate _prepareDocument(): void {\n\t\tconst iframeDocument = this.element!.contentWindow!.document;\n\t\tconst domRootClone = iframeDocument.adoptNode( this._options.domRootClone );\n\n\t\tconst boxStyles = this._options.useSimplePreview ? `\n\t\t\t.ck.ck-editor__editable_inline img {\n\t\t\t\tfilter: contrast( 0 );\n\t\t\t}\n\n\t\t\tp, li, a, figcaption, span {\n\t\t\t\tbackground: hsl(0, 0%, 80%) !important;\n\t\t\t\tcolor: hsl(0, 0%, 80%) !important;\n\t\t\t}\n\n\t\t\th1, h2, h3, h4 {\n\t\t\t\tbackground: hsl(0, 0%, 60%) !important;\n\t\t\t\tcolor: hsl(0, 0%, 60%) !important;\n\t\t\t}\n\t\t` : '';\n\n\t\tconst pageStyles = this._options.pageStyles.map( definition => {\n\t\t\tif ( typeof definition === 'string' ) {\n\t\t\t\treturn `<style>${ definition }</style>`;\n\t\t\t} else {\n\t\t\t\treturn `<link rel=\"stylesheet\" type=\"text/css\" href=\"${ definition.href }\">`;\n\t\t\t}\n\t\t} ).join( '\\n' );\n\n\t\tconst html = `<!DOCTYPE html><html lang=\"en\">\n\t\t\t<head>\n\t\t\t\t<meta charset=\"utf-8\">\n\t\t\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t\t\t\t${ pageStyles }\n\t\t\t\t<style>\n\t\t\t\t\thtml, body {\n\t\t\t\t\t\tmargin: 0 !important;\n\t\t\t\t\t\tpadding: 0 !important;\n\t\t\t\t\t}\n\n\t\t\t\t\thtml {\n\t\t\t\t\t\toverflow: hidden;\n\t\t\t\t\t}\n\n\t\t\t\t\tbody {\n\t\t\t\t\t\ttransform: scale( ${ this._options.scaleRatio } );\n\t\t\t\t\t\ttransform-origin: 0 0;\n\t\t\t\t\t\toverflow: visible;\n\t\t\t\t\t}\n\n\t\t\t\t\t.ck.ck-editor__editable_inline {\n\t\t\t\t\t\tmargin: 0 !important;\n\t\t\t\t\t\tborder-color: transparent !important;\n\t\t\t\t\t\toutline-color: transparent !important;\n\t\t\t\t\t\tbox-shadow: none !important;\n\t\t\t\t\t}\n\n\t\t\t\t\t.ck.ck-content {\n\t\t\t\t\t\tbackground: white;\n\t\t\t\t\t}\n\n\t\t\t\t\t${ boxStyles }\n\t\t\t\t</style>\n\t\t\t</head>\n\t\t\t<body class=\"${ this._options.extraClasses || '' }\"></body>\n\t\t</html>`;\n\n\t\tiframeDocument.open();\n\t\tiframeDocument.write( html );\n\t\tiframeDocument.close();\n\t\tiframeDocument.body.appendChild( domRootClone );\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/**\n * @module minimap/minimappositiontrackerview\n */\n\nimport { View } from 'ckeditor5/src/ui.js';\nimport { toUnit, global, type Locale } from 'ckeditor5/src/utils.js';\nimport type { MinimapDragEvent } from './minimapview.js';\n\nconst toPx = /* #__PURE__ */ toUnit( 'px' );\n\n/**\n * The position tracker visualizing the visible subset of the content. Displayed over the minimap.\n *\n * @internal\n */\nexport default class MinimapPositionTrackerView extends View {\n\t/**\n\t * The CSS `height` of the tracker visualizing the subset of the content visible to the user.\n\t *\n\t * @readonly\n\t */\n\tdeclare public height: number;\n\n\t/**\n\t * The CSS `top` of the tracker, used to move it vertically over the minimap.\n\t *\n\t * @readonly\n\t */\n\tdeclare public top: number;\n\n\t/**\n\t * The scroll progress (in %) displayed over the tracker when being dragged by the user.\n\t *\n\t * @readonly\n\t */\n\tdeclare public scrollProgress: number;\n\n\t/**\n\t * Indicates whether the tracker is being dragged by the user (e.g. using the mouse).\n\t *\n\t * @internal\n\t * @readonly\n\t */\n\tdeclare public _isDragging: boolean;\n\n\tconstructor( locale: Locale ) {\n\t\tsuper( locale );\n\n\t\tconst bind = this.bindTemplate;\n\n\t\tthis.set( 'height', 0 );\n\t\tthis.set( 'top', 0 );\n\t\tthis.set( 'scrollProgress', 0 );\n\t\tthis.set( '_isDragging', false );\n\n\t\tthis.setTemplate( {\n\t\t\ttag: 'div',\n\t\t\tattributes: {\n\t\t\t\tclass: [\n\t\t\t\t\t'ck',\n\t\t\t\t\t'ck-minimap__position-tracker',\n\t\t\t\t\tbind.if( '_isDragging', 'ck-minimap__position-tracker_dragging' )\n\t\t\t\t],\n\t\t\t\tstyle: {\n\t\t\t\t\ttop: bind.to( 'top', top => toPx( top ) ),\n\t\t\t\t\theight: bind.to( 'height', height => toPx( height ) )\n\t\t\t\t},\n\t\t\t\t'data-progress': bind.to( 'scrollProgress' )\n\t\t\t},\n\t\t\ton: {\n\t\t\t\tmousedown: bind.to( () => {\n\t\t\t\t\tthis._isDragging = true;\n\t\t\t\t} )\n\t\t\t}\n\t\t} );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override render(): void {\n\t\tsuper.render();\n\n\t\tthis.listenTo( global.document, 'mousemove', ( evt, data ) => {\n\t\t\tif ( !this._isDragging ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.fire<MinimapDragEvent>( 'drag', data.movementY );\n\t\t}, { useCapture: true } );\n\n\t\tthis.listenTo( global.document, 'mouseup', () => {\n\t\t\tthis._isDragging = false;\n\t\t}, { useCapture: true } );\n\t}\n\n\t/**\n\t * Sets the new height of the tracker to visualize the subset of the content visible to the user.\n\t */\n\tpublic setHeight( newHeight: number ): void {\n\t\tthis.height = newHeight;\n\t}\n\n\t/**\n\t * Sets the top offset of the tracker to move it around vertically.\n\t */\n\tpublic setTopOffset( newOffset: number ): void {\n\t\tthis.top = newOffset;\n\t}\n\n\t/**\n\t * Sets the scroll progress (in %) to inform the user using a label when the tracker is being dragged.\n\t */\n\tpublic setScrollProgress( newProgress: number ): void {\n\t\tthis.scrollProgress = newProgress;\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/**\n * @module minimap/minimapview\n */\n\nimport { View } from 'ckeditor5/src/ui.js';\nimport { Rect, type Locale } from 'ckeditor5/src/utils.js';\n\nimport MinimapIframeView from './minimapiframeview.js';\nimport MinimapPositionTrackerView from './minimappositiontrackerview.js';\n\nexport type MinimapViewOptions = {\n\tdomRootClone: HTMLElement;\n\tpageStyles: Array<string | { href: string }>;\n\tscaleRatio: number;\n\tuseSimplePreview?: boolean;\n\textraClasses?: string;\n};\n\n/**\n * The main view of the minimap. It renders the original content but scaled down with a tracker element\n * visualizing the subset of the content visible to the user and allowing interactions (scrolling, dragging).\n *\n * @internal\n */\nexport default class MinimapView extends View {\n\t/**\n\t * An instance of the tracker view displayed over the minimap.\n\t */\n\tprivate readonly _positionTrackerView: MinimapPositionTrackerView;\n\n\t/**\n\t * The scale ratio of the minimap relative to the original editing DOM root with the content.\n\t */\n\tprivate readonly _scaleRatio: number;\n\n\t/**\n\t * An instance of the iframe view that hosts the minimap.\n\t */\n\tprivate readonly _minimapIframeView: MinimapIframeView;\n\n\t/**\n\t * Creates an instance of the minimap view.\n\t */\n\tconstructor(\n\t\t{ locale, scaleRatio, pageStyles, extraClasses, useSimplePreview, domRootClone }: { locale: Locale } & MinimapViewOptions\n\t) {\n\t\tsuper( locale );\n\n\t\tconst bind = this.bindTemplate;\n\n\t\tthis._positionTrackerView = new MinimapPositionTrackerView( locale );\n\t\tthis._positionTrackerView.delegate( 'drag' ).to( this );\n\n\t\tthis._scaleRatio = scaleRatio;\n\n\t\tthis._minimapIframeView = new MinimapIframeView( locale, {\n\t\t\tuseSimplePreview,\n\t\t\tpageStyles,\n\t\t\textraClasses,\n\t\t\tscaleRatio,\n\t\t\tdomRootClone\n\t\t} );\n\n\t\tthis.setTemplate( {\n\t\t\ttag: 'div',\n\t\t\tattributes: {\n\t\t\t\tclass: [\n\t\t\t\t\t'ck',\n\t\t\t\t\t'ck-minimap'\n\t\t\t\t]\n\t\t\t},\n\t\t\tchildren: [\n\t\t\t\tthis._positionTrackerView\n\t\t\t],\n\t\t\ton: {\n\t\t\t\tclick: bind.to( this._handleMinimapClick.bind( this ) ),\n\t\t\t\twheel: bind.to( this._handleMinimapMouseWheel.bind( this ) )\n\t\t\t}\n\t\t} );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override destroy(): void {\n\t\tthis._minimapIframeView.destroy();\n\n\t\tsuper.destroy();\n\t}\n\n\t/**\n\t * Returns the DOM {@link module:utils/dom/rect~Rect} height of the minimap.\n\t */\n\tpublic get height(): number {\n\t\treturn new Rect( this.element! ).height;\n\t}\n\n\t/**\n\t * Returns the number of available space (pixels) the position tracker (visible subset of the content) can use to scroll vertically.\n\t */\n\tpublic get scrollHeight(): number {\n\t\treturn Math.max( 0, Math.min( this.height, this._minimapIframeView.height ) - this._positionTrackerView.height );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override render(): void {\n\t\tsuper.render();\n\n\t\tthis._minimapIframeView.render();\n\n\t\tthis.element!.appendChild( this._minimapIframeView.element! );\n\t}\n\n\t/**\n\t * Sets the new height of the minimap (in px) to respond to the changes in the original editing DOM root.\n\t *\n\t * **Note**:The provided value should be the `offsetHeight` of the original editing DOM root.\n\t */\n\tpublic setContentHeight( newHeight: number ): void {\n\t\tthis._minimapIframeView.setHeight( newHeight * this._scaleRatio );\n\t}\n\n\t/**\n\t * Sets the minimap scroll progress.\n\t *\n\t * The minimap scroll progress is linked to the original editing DOM root and its scrollable container (ancestor).\n\t * Changing the progress will alter the vertical position of the minimap (and its position tracker) and give the user an accurate\n\t * overview of the visible document.\n\t *\n\t * **Note**: The value should be between 0 and 1. 0 when the DOM root has not been scrolled, 1 when the\n\t * scrolling has reached the end.\n\t */\n\tpublic setScrollProgress( newScrollProgress: number ): void {\n\t\tconst iframeView = this._minimapIframeView;\n\t\tconst positionTrackerView = this._positionTrackerView;\n\n\t\t// The scrolling should end when the bottom edge of the iframe touches the bottom edge of the minimap.\n\t\tif ( iframeView.height < this.height ) {\n\t\t\tiframeView.setTopOffset( 0 );\n\t\t\tpositionTrackerView.setTopOffset( ( iframeView.height - positionTrackerView.height ) * newScrollProgress );\n\t\t} else {\n\t\t\tconst totalOffset = iframeView.height - this.height;\n\n\t\t\tiframeView.setTopOffset( -totalOffset * newScrollProgress );\n\t\t\tpositionTrackerView.setTopOffset( ( this.height - positionTrackerView.height ) * newScrollProgress );\n\t\t}\n\n\t\tpositionTrackerView.setScrollProgress( Math.round( newScrollProgress * 100 ) );\n\t}\n\n\t/**\n\t * Sets the new height of the tracker (in px) to visualize the subset of the content visible to the user.\n\t */\n\tpublic setPositionTrackerHeight( trackerHeight: number ): void {\n\t\tthis._positionTrackerView.setHeight( trackerHeight * this._scaleRatio );\n\t}\n\n\t/**\n\t * @param data DOM event data\n\t */\n\tprivate _handleMinimapClick( data: Event ) {\n\t\tconst positionTrackerView = this._positionTrackerView;\n\n\t\tif ( data.target === positionTrackerView.element ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst trackerViewRect = new Rect( positionTrackerView.element! );\n\t\tconst diff = ( data as MouseEvent ).clientY - trackerViewRect.top - trackerViewRect.height / 2;\n\t\tconst percentage = diff / this._minimapIframeView.height;\n\n\t\tthis.fire<MinimapClickEvent>( 'click', percentage );\n\t}\n\n\t/**\n\t * @param data DOM event data\n\t */\n\tprivate _handleMinimapMouseWheel( data: Event ) {\n\t\tthis.fire<MinimapDragEvent>( 'drag', ( data as WheelEvent ).deltaY * this._scaleRatio );\n\t}\n}\n\n/**\n * Fired when the minimap view is clicked.\n *\n * @eventName ~MinimapView#click\n * @param percentage The number between 0 and 1 representing a place in the minimap (its height) that was clicked.\n */\nexport type MinimapClickEvent = {\n\tname: 'click';\n\targs: [ percentage: number ];\n};\n\n/**\n * Fired when the position tracker is dragged or the minimap is scrolled via mouse wheel.\n *\n * @eventName ~MinimapView#drag\n * @param movementY The vertical movement of the minimap as a result of dragging or scrolling.\n */\nexport type MinimapDragEvent = {\n\tname: 'drag';\n\targs: [ movementY: number ];\n};\n","/**\n * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/* global CSSMediaRule */\n\n/**\n * @module minimap/utils\n */\n\nimport { Rect, global } from 'ckeditor5/src/utils.js';\nimport { DomConverter, Renderer } from 'ckeditor5/src/engine.js';\nimport type { Editor } from 'ckeditor5/src/core.js';\n\n/**\n * Clones the editing view DOM root by using a dedicated pair of {@link module:engine/view/renderer~Renderer} and\n * {@link module:engine/view/domconverter~DomConverter}. The DOM root clone updates incrementally to stay in sync with the\n * source root.\n *\n * @internal\n * @param editor The editor instance the original editing root belongs to.\n * @param rootName The name of the root to clone.\n * @returns The editing root DOM clone element.\n */\nexport function cloneEditingViewDomRoot( editor: Editor, rootName?: string ): HTMLElement {\n\tconst viewDocument = editor.editing.view.document;\n\tconst viewRoot = viewDocument.getRoot( rootName )!;\n\tconst domConverter = new DomConverter( viewDocument );\n\tconst renderer = new Renderer( domConverter, viewDocument.selection );\n\tconst domRootClone = editor.editing.view.getDomRoot()!.cloneNode() as HTMLElement;\n\n\tdomConverter.bindElements( domRootClone, viewRoot );\n\n\trenderer.markToSync( 'children', viewRoot );\n\trenderer.markToSync( 'attributes', viewRoot );\n\n\tviewRoot.on( 'change:children', ( evt, node ) => renderer.markToSync( 'children', node ) );\n\tviewRoot.on( 'change:attributes', ( evt, node ) => renderer.markToSync( 'attributes', node ) );\n\tviewRoot.on( 'change:text', ( evt, node ) => renderer.markToSync( 'text', node ) );\n\n\trenderer.render();\n\n\teditor.editing.view.on( 'render', () => renderer.render() );\n\n\t// TODO: Cleanup after destruction.\n\teditor.on( 'destroy', () => {\n\t\tdomConverter.unbindDomElement( domRootClone );\n\t} );\n\n\treturn domRootClone;\n}\n\n/**\n * Harvests all web page styles, for instance, to allow re-using them in an `<iframe>` preserving the look of the content.\n *\n * The returned data format is as follows:\n *\n * ```ts\n * [\n * \t'p { color: red; ... } h2 { font-size: 2em; ... } ...',\n * \t'.spacing { padding: 1em; ... }; ...',\n * \t'...',\n * \t{ href: 'http://link.to.external.stylesheet' },\n * \t{ href: '...' }\n * ]\n * ```\n *\n * **Note**: For stylesheets with `href` different than window origin, an object is returned because\n * accessing rules of these styles may cause CORS errors (depending on the configuration of the web page).\n *\n * @internal\n */\nexport function getPageStyles(): Array<string | { href: string }> {\n\treturn Array.from( global.document.styleSheets )\n\t\t.map( styleSheet => {\n\t\t\t// CORS\n\t\t\tif ( styleSheet.href && !styleSheet.href.startsWith( global.window.location.origin ) ) {\n\t\t\t\treturn { href: styleSheet.href };\n\t\t\t}\n\n\t\t\treturn Array.from( styleSheet.cssRules )\n\t\t\t\t.filter( rule => !( rule instanceof CSSMediaRule ) )\n\t\t\t\t.map( rule => rule.cssText )\n\t\t\t\t.join( ' \\n' );\n\t\t} );\n}\n\n/**\n * Gets dimensions rectangle according to passed DOM element. Returns whole window's size for `body` element.\n *\n * @internal\n */\nexport function getDomElementRect( domElement: HTMLElement ): Rect {\n\treturn new Rect( domElement === global.document.body ? global.window : domElement );\n}\n\n/**\n * Gets client height according to passed DOM element. Returns window's height for `body` element.\n *\n * @internal\n */\nexport function getClientHeight( domElement: HTMLElement ): number {\n\treturn domElement === global.document.body ? global.window.innerHeight : domElement.clientHeight;\n}\n\n/**\n * Returns the DOM element itself if it's not a `body` element, whole window otherwise.\n *\n * @internal\n */\nexport function getScrollable( domElement: HTMLElement ): Window | HTMLElement {\n\treturn domElement === global.document.body ? global.window : domElement;\n}\n","/**\n * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/**\n * @module minimap/minimap\n */\n\nimport { Plugin } from 'ckeditor5/src/core.js';\nimport { findClosestScrollableAncestor, global } from 'ckeditor5/src/utils.js';\nimport MinimapView, { type MinimapDragEvent, type MinimapClickEvent } from './minimapview.js';\nimport {\n\tcloneEditingViewDomRoot,\n\tgetClientHeight,\n\tgetDomElementRect,\n\tgetPageStyles,\n\tgetScrollable\n} from './utils.js';\n\n// @if CK_DEBUG_MINIMAP // const RectDrawer = require( '@ckeditor/ckeditor5-utils/tests/_utils/rectdrawer' ).default;\n\nimport '../theme/minimap.css';\n\n/**\n * The content minimap feature.\n */\nexport default class Minimap extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'Minimap' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static override get isOfficialPlugin(): true {\n\t\treturn true;\n\t}\n\n\t/**\n\t * The reference to the view of the minimap.\n\t */\n\tprivate _minimapView!: MinimapView | null;\n\n\t/**\n\t * The DOM element closest to the editable element of the editor as returned\n\t * by {@link module:ui/editorui/editorui~EditorUI#getEditableElement}.\n\t */\n\tprivate _scrollableRootAncestor!: HTMLElement | null;\n\n\t/**\n\t * The DOM element closest to the editable element of the editor as returned\n\t * by {@link module:ui/editorui/editorui~EditorUI#getEditableElement}.\n\t */\n\tprivate _editingRootElement?: HTMLElement;\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\t\tthis._minimapView = null;\n\t\tthis._scrollableRootAncestor = null;\n\n\t\tthis.listenTo( editor.ui, 'ready', this._onUiReady.bind( this ) );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override destroy(): void {\n\t\tsuper.destroy();\n\n\t\tthis._minimapView!.destroy();\n\t\tthis._minimapView!.element!.remove();\n\t}\n\n\t/**\n\t * Initializes the minimap view element and starts the layout synchronization\n\t * on the editing view `render` event.\n\t */\n\tprivate _onUiReady(): void {\n\t\tconst editor = this.editor;\n\n\t\t// TODO: This will not work with the multi-root editor.\n\t\tconst editingRootElement = this._editingRootElement = editor.ui.getEditableElement()!;\n\n\t\tthis._scrollableRootAncestor = findClosestScrollableAncestor( editingRootElement );\n\n\t\t// DOM root element is not yet attached to the document.\n\t\tif ( !editingRootElement.ownerDocument.body.contains( editingRootElement ) ) {\n\t\t\teditor.ui.once( 'update', this._onUiReady.bind( this ) );\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis._initializeMinimapView();\n\n\t\tthis.listenTo( editor.editing.view, 'render', () => {\n\t\t\tif ( editor.state !== 'ready' ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._syncMinimapToEditingRootScrollPosition();\n\t\t} );\n\n\t\tthis._syncMinimapToEditingRootScrollPosition();\n\t}\n\n\t/**\n\t * Initializes the minimap view and attaches listeners that make it responsive to the environment (document)\n\t * but also allow the minimap to control the document (scroll position).\n\t */\n\tprivate _initializeMinimapView(): void {\n\t\tconst editor = this.editor;\n\t\tconst locale = editor.locale;\n\t\tconst useSimplePreview = editor.config.get( 'minimap.useSimplePreview' );\n\n\t\t// TODO: Throw an error if there is no `minimap` in config.\n\t\tconst minimapContainerElement = editor.config.get( 'minimap.container' )!;\n\t\tconst scrollableRootAncestor = this._scrollableRootAncestor!;\n\n\t\t// TODO: This should be dynamic, the root width could change as the viewport scales if not fixed unit.\n\t\tconst editingRootElementWidth = getDomElementRect( this._editingRootElement! ).width;\n\t\tconst minimapContainerWidth = getDomElementRect( minimapContainerElement ).width;\n\t\tconst minimapScaleRatio = minimapContainerWidth / editingRootElementWidth;\n\n\t\tconst minimapView = this._minimapView = new MinimapView( {\n\t\t\tlocale,\n\t\t\tscaleRatio: minimapScaleRatio,\n\t\t\tpageStyles: getPageStyles(),\n\t\t\textraClasses: editor.config.get( 'minimap.extraClasses' ),\n\t\t\tuseSimplePreview,\n\t\t\tdomRootClone: cloneEditingViewDomRoot( editor )\n\t\t} );\n\n\t\tminimapView.render();\n\n\t\t// Scrollable ancestor scroll -> minimap position update.\n\t\tminimapView.listenTo( global.document, 'scroll', ( evt, data ) => {\n\t\t\tif ( scrollableRootAncestor === global.document.body ) {\n\t\t\t\tif ( data.target !== global.document ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else if ( data.target !== scrollableRootAncestor ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._syncMinimapToEditingRootScrollPosition();\n\t\t}, { useCapture: true, usePassive: true } );\n\n\t\t// Viewport resize -> minimap position update.\n\t\tminimapView.listenTo( global.window, 'resize', () => {\n\t\t\tthis._syncMinimapToEditingRootScrollPosition();\n\t\t} );\n\n\t\t// Dragging the visible content area -> document (scrollable) position update.\n\t\tminimapView.on<MinimapDragEvent>( 'drag', ( evt, movementY ) => {\n\t\t\tlet movementYPercentage;\n\n\t\t\tif ( minimapView.scrollHeight === 0 ) {\n\t\t\t\tmovementYPercentage = 0;\n\t\t\t} else {\n\t\t\t\tmovementYPercentage = movementY / minimapView.scrollHeight;\n\t\t\t}\n\n\t\t\tconst absoluteScrollProgress = movementYPercentage *\n\t\t\t\t( scrollableRootAncestor.scrollHeight - getClientHeight( scrollableRootAncestor ) );\n\t\t\tconst scrollable = getScrollable( scrollableRootAncestor );\n\n\t\t\tscrollable.scrollBy( 0, Math.round( absoluteScrollProgress ) );\n\t\t} );\n\n\t\t// Clicking the minimap -> center the document (scrollable) to the corresponding position.\n\t\tminimapView.on<MinimapClickEvent>( 'click', ( evt, percentage ) => {\n\t\t\tconst absoluteScrollProgress = percentage * scrollableRootAncestor.scrollHeight;\n\t\t\tconst scrollable = getScrollable( scrollableRootAncestor );\n\n\t\t\tscrollable.scrollBy( 0, Math.round( absoluteScrollProgress ) );\n\t\t} );\n\n\t\tminimapContainerElement.appendChild( minimapView.element! );\n\t}\n\n\t/**\n\t * @private\n\t */\n\tprivate _syncMinimapToEditingRootScrollPosition(): void {\n\t\tconst editingRootElement = this._editingRootElement!;\n\t\tconst minimapView = this._minimapView!;\n\n\t\tminimapView.setContentHeight( editingRootElement.offsetHeight );\n\n\t\tconst editingRootRect = getDomElementRect( editingRootElement );\n\t\tconst scrollableRootAncestorRect = getDomElementRect( this._scrollableRootAncestor! );\n\t\tlet scrollProgress;\n\n\t\t// @if CK_DEBUG_MINIMAP // RectDrawer.clear();\n\t\t// @if CK_DEBUG_MINIMAP // RectDrawer.draw( scrollableRootAncestorRect, { outlineColor: 'red' }, 'scrollableRootAncestor' );\n\t\t// @if CK_DEBUG_MINIMAP // RectDrawer.draw( editingRootRect, { outlineColor: 'green' }, 'editingRoot' );\n\n\t\t// The root is completely visible in the scrollable ancestor.\n\t\tif ( scrollableRootAncestorRect.contains( editingRootRect ) ) {\n\t\t\tscrollProgress = 0;\n\t\t} else {\n\t\t\tif ( editingRootRect.top > scrollableRootAncestorRect.top ) {\n\t\t\t\tscrollProgress = 0;\n\t\t\t} else {\n\t\t\t\tscrollProgress = ( editingRootRect.top - scrollableRootAncestorRect.top ) /\n\t\t\t\t\t( scrollableRootAncestorRect.height - editingRootRect.height );\n\n\t\t\t\tscrollProgress = Math.max( 0, Math.min( scrollProgress, 1 ) );\n\t\t\t}\n\t\t}\n\n\t\t// The intersection helps to change the tracker height when there is a lot of padding around the root.\n\t\t// Note: It is **essential** that the height is set first because the progress depends on the correct tracker height.\n\t\tminimapView.setPositionTrackerHeight( scrollableRootAncestorRect.getIntersection( editingRootRect )!.height );\n\t\tminimapView.setScrollProgress( scrollProgress );\n\t}\n}\n"]}
1
+ {"version":3,"sources":["index.js","../src/minimapiframeview.ts","../src/minimappositiontrackerview.ts","../src/minimapview.ts","../src/utils.ts","../src/minimap.ts"],"names":["toPx","toUnit","MinimapIframeView","IframeView","constructor","locale","options","bind","bindTemplate","set","_options","extendTemplate","attributes","tabindex","class","style","top","to","height","render","then","_prepareDocument","setHeight","newHeight","setTopOffset","newOffset","iframeDocument","element","contentWindow","document","domRootClone","adoptNode","boxStyles","useSimplePreview","pageStyles","map","definition","href","join","html","scaleRatio","extraClasses","open","write","close","body","appendChild","MinimapPositionTrackerView","View","setTemplate","tag","if","on","mousedown","_isDragging","listenTo","global","evt","data","fire","movementY","useCapture","setScrollProgress","newProgress","scrollProgress","MinimapView","_positionTrackerView","delegate","_scaleRatio","_minimapIframeView","children","click","_handleMinimapClick","wheel","_handleMinimapMouseWheel","destroy","Rect","scrollHeight","Math","max","min","setContentHeight","newScrollProgress","iframeView","positionTrackerView","totalOffset","round","setPositionTrackerHeight","trackerHeight","target","trackerViewRect","diff","clientY","percentage","deltaY","cloneEditingViewDomRoot","editor","rootName","viewDocument","editing","view","viewRoot","getRoot","domConverter","DomConverter","renderer","Renderer","selection","getDomRoot","cloneNode","bindElements","markToSync","node","unbindDomElement","getPageStyles","Array","from","styleSheets","styleSheet","startsWith","window","location","origin","cssRules","filter","rule","CSSMediaRule","cssText","getDomElementRect","domElement","getClientHeight","innerHeight","clientHeight","getScrollable","Minimap","Plugin","pluginName","isOfficialPlugin","_minimapView","_scrollableRootAncestor","ui","_onUiReady","remove","editingRootElement","_editingRootElement","getEditableElement","findClosestScrollableAncestor","ownerDocument","contains","once","_initializeMinimapView","state","_syncMinimapToEditingRootScrollPosition","config","get","minimapContainerElement","scrollableRootAncestor","editingRootElementWidth","width","minimapContainerWidth","minimapScaleRatio","minimapView","usePassive","movementYPercentage","absoluteScrollProgress","scrollable","scrollBy","offsetHeight","editingRootRect","scrollableRootAncestorRect","getIntersection"],"mappings":";;;;AAAA,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;AAC/D,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;AAC7G,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;AACvE,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,C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,MAAM,CAAA;AAC3G+I,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,WAAAA,CAAYnG,iBAAiB,CAAEE,cAAAA,CAAAA;AAChC,CAAA,CAAA,CAAA,CAAA;AACD;;ALuUA,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC","file":"index.js.map","sourcesContent":["import { Plugin } from '@ckeditor/ckeditor5-core/dist/index.js';\nimport { toUnit, global, Rect, findClosestScrollableAncestor } from '@ckeditor/ckeditor5-utils/dist/index.js';\nimport { IframeView, View } from '@ckeditor/ckeditor5-ui/dist/index.js';\nimport { DomConverter, Renderer } from '@ckeditor/ckeditor5-engine/dist/index.js';\n\nconst toPx$1 = /* #__PURE__ */ toUnit('px');\n/**\n * The internal `<iframe>` view that hosts the minimap content.\n *\n * @internal\n */ class MinimapIframeView extends IframeView {\n /**\n\t * Cached view constructor options for re-use in other methods.\n\t */ _options;\n /**\n\t * Creates an instance of the internal minimap iframe.\n\t */ constructor(locale, options){\n super(locale);\n const bind = this.bindTemplate;\n this.set('top', 0);\n this.set('height', 0);\n this._options = options;\n this.extendTemplate({\n attributes: {\n tabindex: -1,\n 'aria-hidden': 'true',\n class: [\n 'ck-minimap__iframe'\n ],\n style: {\n top: bind.to('top', (top)=>toPx$1(top)),\n height: bind.to('height', (height)=>toPx$1(height))\n }\n }\n });\n }\n /**\n\t * @inheritDoc\n\t */ render() {\n return super.render().then(()=>{\n this._prepareDocument();\n });\n }\n /**\n\t * Sets the new height of the iframe.\n\t */ setHeight(newHeight) {\n this.height = newHeight;\n }\n /**\n\t * Sets the top offset of the iframe to move it around vertically.\n\t */ setTopOffset(newOffset) {\n this.top = newOffset;\n }\n /**\n\t * Sets the internal structure of the `<iframe>` readying it to display the\n\t * minimap element.\n\t */ _prepareDocument() {\n const iframeDocument = this.element.contentWindow.document;\n const domRootClone = iframeDocument.adoptNode(this._options.domRootClone);\n const boxStyles = this._options.useSimplePreview ? `\n\t\t\t.ck.ck-editor__editable_inline img {\n\t\t\t\tfilter: contrast( 0 );\n\t\t\t}\n\n\t\t\tp, li, a, figcaption, span {\n\t\t\t\tbackground: hsl(0, 0%, 80%) !important;\n\t\t\t\tcolor: hsl(0, 0%, 80%) !important;\n\t\t\t}\n\n\t\t\th1, h2, h3, h4 {\n\t\t\t\tbackground: hsl(0, 0%, 60%) !important;\n\t\t\t\tcolor: hsl(0, 0%, 60%) !important;\n\t\t\t}\n\t\t` : '';\n const pageStyles = this._options.pageStyles.map((definition)=>{\n if (typeof definition === 'string') {\n return `<style>${definition}</style>`;\n } else {\n return `<link rel=\"stylesheet\" type=\"text/css\" href=\"${definition.href}\">`;\n }\n }).join('\\n');\n const html = `<!DOCTYPE html><html lang=\"en\">\n\t\t\t<head>\n\t\t\t\t<meta charset=\"utf-8\">\n\t\t\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t\t\t\t${pageStyles}\n\t\t\t\t<style>\n\t\t\t\t\thtml, body {\n\t\t\t\t\t\tmargin: 0 !important;\n\t\t\t\t\t\tpadding: 0 !important;\n\t\t\t\t\t}\n\n\t\t\t\t\thtml {\n\t\t\t\t\t\toverflow: hidden;\n\t\t\t\t\t}\n\n\t\t\t\t\tbody {\n\t\t\t\t\t\ttransform: scale( ${this._options.scaleRatio} );\n\t\t\t\t\t\ttransform-origin: 0 0;\n\t\t\t\t\t\toverflow: visible;\n\t\t\t\t\t}\n\n\t\t\t\t\t.ck.ck-editor__editable_inline {\n\t\t\t\t\t\tmargin: 0 !important;\n\t\t\t\t\t\tborder-color: transparent !important;\n\t\t\t\t\t\toutline-color: transparent !important;\n\t\t\t\t\t\tbox-shadow: none !important;\n\t\t\t\t\t}\n\n\t\t\t\t\t.ck.ck-content {\n\t\t\t\t\t\tbackground: white;\n\t\t\t\t\t}\n\n\t\t\t\t\t${boxStyles}\n\t\t\t\t</style>\n\t\t\t</head>\n\t\t\t<body class=\"${this._options.extraClasses || ''}\"></body>\n\t\t</html>`;\n iframeDocument.open();\n iframeDocument.write(html);\n iframeDocument.close();\n iframeDocument.body.appendChild(domRootClone);\n }\n}\n\nconst toPx = /* #__PURE__ */ toUnit('px');\n/**\n * The position tracker visualizing the visible subset of the content. Displayed over the minimap.\n *\n * @internal\n */ class MinimapPositionTrackerView extends View {\n constructor(locale){\n super(locale);\n const bind = this.bindTemplate;\n this.set('height', 0);\n this.set('top', 0);\n this.set('scrollProgress', 0);\n this.set('_isDragging', false);\n this.setTemplate({\n tag: 'div',\n attributes: {\n class: [\n 'ck',\n 'ck-minimap__position-tracker',\n bind.if('_isDragging', 'ck-minimap__position-tracker_dragging')\n ],\n style: {\n top: bind.to('top', (top)=>toPx(top)),\n height: bind.to('height', (height)=>toPx(height))\n },\n 'data-progress': bind.to('scrollProgress')\n },\n on: {\n mousedown: bind.to(()=>{\n this._isDragging = true;\n })\n }\n });\n }\n /**\n\t * @inheritDoc\n\t */ render() {\n super.render();\n this.listenTo(global.document, 'mousemove', (evt, data)=>{\n if (!this._isDragging) {\n return;\n }\n this.fire('drag', data.movementY);\n }, {\n useCapture: true\n });\n this.listenTo(global.document, 'mouseup', ()=>{\n this._isDragging = false;\n }, {\n useCapture: true\n });\n }\n /**\n\t * Sets the new height of the tracker to visualize the subset of the content visible to the user.\n\t */ setHeight(newHeight) {\n this.height = newHeight;\n }\n /**\n\t * Sets the top offset of the tracker to move it around vertically.\n\t */ setTopOffset(newOffset) {\n this.top = newOffset;\n }\n /**\n\t * Sets the scroll progress (in %) to inform the user using a label when the tracker is being dragged.\n\t */ setScrollProgress(newProgress) {\n this.scrollProgress = newProgress;\n }\n}\n\n/**\n * The main view of the minimap. It renders the original content but scaled down with a tracker element\n * visualizing the subset of the content visible to the user and allowing interactions (scrolling, dragging).\n *\n * @internal\n */ class MinimapView extends View {\n /**\n\t * An instance of the tracker view displayed over the minimap.\n\t */ _positionTrackerView;\n /**\n\t * The scale ratio of the minimap relative to the original editing DOM root with the content.\n\t */ _scaleRatio;\n /**\n\t * An instance of the iframe view that hosts the minimap.\n\t */ _minimapIframeView;\n /**\n\t * Creates an instance of the minimap view.\n\t */ constructor({ locale, scaleRatio, pageStyles, extraClasses, useSimplePreview, domRootClone }){\n super(locale);\n const bind = this.bindTemplate;\n this._positionTrackerView = new MinimapPositionTrackerView(locale);\n this._positionTrackerView.delegate('drag').to(this);\n this._scaleRatio = scaleRatio;\n this._minimapIframeView = new MinimapIframeView(locale, {\n useSimplePreview,\n pageStyles,\n extraClasses,\n scaleRatio,\n domRootClone\n });\n this.setTemplate({\n tag: 'div',\n attributes: {\n class: [\n 'ck',\n 'ck-minimap'\n ]\n },\n children: [\n this._positionTrackerView\n ],\n on: {\n click: bind.to(this._handleMinimapClick.bind(this)),\n wheel: bind.to(this._handleMinimapMouseWheel.bind(this))\n }\n });\n }\n /**\n\t * @inheritDoc\n\t */ destroy() {\n this._minimapIframeView.destroy();\n super.destroy();\n }\n /**\n\t * Returns the DOM {@link module:utils/dom/rect~Rect} height of the minimap.\n\t */ get height() {\n return new Rect(this.element).height;\n }\n /**\n\t * Returns the number of available space (pixels) the position tracker (visible subset of the content) can use to scroll vertically.\n\t */ get scrollHeight() {\n return Math.max(0, Math.min(this.height, this._minimapIframeView.height) - this._positionTrackerView.height);\n }\n /**\n\t * @inheritDoc\n\t */ render() {\n super.render();\n this._minimapIframeView.render();\n this.element.appendChild(this._minimapIframeView.element);\n }\n /**\n\t * Sets the new height of the minimap (in px) to respond to the changes in the original editing DOM root.\n\t *\n\t * **Note**:The provided value should be the `offsetHeight` of the original editing DOM root.\n\t */ setContentHeight(newHeight) {\n this._minimapIframeView.setHeight(newHeight * this._scaleRatio);\n }\n /**\n\t * Sets the minimap scroll progress.\n\t *\n\t * The minimap scroll progress is linked to the original editing DOM root and its scrollable container (ancestor).\n\t * Changing the progress will alter the vertical position of the minimap (and its position tracker) and give the user an accurate\n\t * overview of the visible document.\n\t *\n\t * **Note**: The value should be between 0 and 1. 0 when the DOM root has not been scrolled, 1 when the\n\t * scrolling has reached the end.\n\t */ setScrollProgress(newScrollProgress) {\n const iframeView = this._minimapIframeView;\n const positionTrackerView = this._positionTrackerView;\n // The scrolling should end when the bottom edge of the iframe touches the bottom edge of the minimap.\n if (iframeView.height < this.height) {\n iframeView.setTopOffset(0);\n positionTrackerView.setTopOffset((iframeView.height - positionTrackerView.height) * newScrollProgress);\n } else {\n const totalOffset = iframeView.height - this.height;\n iframeView.setTopOffset(-totalOffset * newScrollProgress);\n positionTrackerView.setTopOffset((this.height - positionTrackerView.height) * newScrollProgress);\n }\n positionTrackerView.setScrollProgress(Math.round(newScrollProgress * 100));\n }\n /**\n\t * Sets the new height of the tracker (in px) to visualize the subset of the content visible to the user.\n\t */ setPositionTrackerHeight(trackerHeight) {\n this._positionTrackerView.setHeight(trackerHeight * this._scaleRatio);\n }\n /**\n\t * @param data DOM event data\n\t */ _handleMinimapClick(data) {\n const positionTrackerView = this._positionTrackerView;\n if (data.target === positionTrackerView.element) {\n return;\n }\n const trackerViewRect = new Rect(positionTrackerView.element);\n const diff = data.clientY - trackerViewRect.top - trackerViewRect.height / 2;\n const percentage = diff / this._minimapIframeView.height;\n this.fire('click', percentage);\n }\n /**\n\t * @param data DOM event data\n\t */ _handleMinimapMouseWheel(data) {\n this.fire('drag', data.deltaY * this._scaleRatio);\n }\n}\n\n/**\n * Clones the editing view DOM root by using a dedicated pair of {@link module:engine/view/renderer~Renderer} and\n * {@link module:engine/view/domconverter~DomConverter}. The DOM root clone updates incrementally to stay in sync with the\n * source root.\n *\n * @internal\n * @param editor The editor instance the original editing root belongs to.\n * @param rootName The name of the root to clone.\n * @returns The editing root DOM clone element.\n */ function cloneEditingViewDomRoot(editor, rootName) {\n const viewDocument = editor.editing.view.document;\n const viewRoot = viewDocument.getRoot(rootName);\n const domConverter = new DomConverter(viewDocument);\n const renderer = new Renderer(domConverter, viewDocument.selection);\n const domRootClone = editor.editing.view.getDomRoot().cloneNode();\n domConverter.bindElements(domRootClone, viewRoot);\n renderer.markToSync('children', viewRoot);\n renderer.markToSync('attributes', viewRoot);\n viewRoot.on('change:children', (evt, node)=>renderer.markToSync('children', node));\n viewRoot.on('change:attributes', (evt, node)=>renderer.markToSync('attributes', node));\n viewRoot.on('change:text', (evt, node)=>renderer.markToSync('text', node));\n renderer.render();\n editor.editing.view.on('render', ()=>renderer.render());\n // TODO: Cleanup after destruction.\n editor.on('destroy', ()=>{\n domConverter.unbindDomElement(domRootClone);\n });\n return domRootClone;\n}\n/**\n * Harvests all web page styles, for instance, to allow re-using them in an `<iframe>` preserving the look of the content.\n *\n * The returned data format is as follows:\n *\n * ```ts\n * [\n * \t'p { color: red; ... } h2 { font-size: 2em; ... } ...',\n * \t'.spacing { padding: 1em; ... }; ...',\n * \t'...',\n * \t{ href: 'http://link.to.external.stylesheet' },\n * \t{ href: '...' }\n * ]\n * ```\n *\n * **Note**: For stylesheets with `href` different than window origin, an object is returned because\n * accessing rules of these styles may cause CORS errors (depending on the configuration of the web page).\n *\n * @internal\n */ function getPageStyles() {\n return Array.from(global.document.styleSheets).map((styleSheet)=>{\n // CORS\n if (styleSheet.href && !styleSheet.href.startsWith(global.window.location.origin)) {\n return {\n href: styleSheet.href\n };\n }\n return Array.from(styleSheet.cssRules).filter((rule)=>!(rule instanceof CSSMediaRule)).map((rule)=>rule.cssText).join(' \\n');\n });\n}\n/**\n * Gets dimensions rectangle according to passed DOM element. Returns whole window's size for `body` element.\n *\n * @internal\n */ function getDomElementRect(domElement) {\n return new Rect(domElement === global.document.body ? global.window : domElement);\n}\n/**\n * Gets client height according to passed DOM element. Returns window's height for `body` element.\n *\n * @internal\n */ function getClientHeight(domElement) {\n return domElement === global.document.body ? global.window.innerHeight : domElement.clientHeight;\n}\n/**\n * Returns the DOM element itself if it's not a `body` element, whole window otherwise.\n *\n * @internal\n */ function getScrollable(domElement) {\n return domElement === global.document.body ? global.window : domElement;\n}\n\n/**\n * The content minimap feature.\n */ class Minimap extends Plugin {\n /**\n\t * @inheritDoc\n\t */ static get pluginName() {\n return 'Minimap';\n }\n /**\n\t * @inheritDoc\n\t */ static get isOfficialPlugin() {\n return true;\n }\n /**\n\t * The reference to the view of the minimap.\n\t */ _minimapView;\n /**\n\t * The DOM element closest to the editable element of the editor as returned\n\t * by {@link module:ui/editorui/editorui~EditorUI#getEditableElement}.\n\t */ _scrollableRootAncestor;\n /**\n\t * The DOM element closest to the editable element of the editor as returned\n\t * by {@link module:ui/editorui/editorui~EditorUI#getEditableElement}.\n\t */ _editingRootElement;\n /**\n\t * @inheritDoc\n\t */ init() {\n const editor = this.editor;\n this._minimapView = null;\n this._scrollableRootAncestor = null;\n this.listenTo(editor.ui, 'ready', this._onUiReady.bind(this));\n }\n /**\n\t * @inheritDoc\n\t */ destroy() {\n super.destroy();\n this._minimapView.destroy();\n this._minimapView.element.remove();\n }\n /**\n\t * Initializes the minimap view element and starts the layout synchronization\n\t * on the editing view `render` event.\n\t */ _onUiReady() {\n const editor = this.editor;\n // TODO: This will not work with the multi-root editor.\n const editingRootElement = this._editingRootElement = editor.ui.getEditableElement();\n this._scrollableRootAncestor = findClosestScrollableAncestor(editingRootElement);\n // DOM root element is not yet attached to the document.\n if (!editingRootElement.ownerDocument.body.contains(editingRootElement)) {\n editor.ui.once('update', this._onUiReady.bind(this));\n return;\n }\n this._initializeMinimapView();\n this.listenTo(editor.editing.view, 'render', ()=>{\n if (editor.state !== 'ready') {\n return;\n }\n this._syncMinimapToEditingRootScrollPosition();\n });\n this._syncMinimapToEditingRootScrollPosition();\n }\n /**\n\t * Initializes the minimap view and attaches listeners that make it responsive to the environment (document)\n\t * but also allow the minimap to control the document (scroll position).\n\t */ _initializeMinimapView() {\n const editor = this.editor;\n const locale = editor.locale;\n const useSimplePreview = editor.config.get('minimap.useSimplePreview');\n // TODO: Throw an error if there is no `minimap` in config.\n const minimapContainerElement = editor.config.get('minimap.container');\n const scrollableRootAncestor = this._scrollableRootAncestor;\n // TODO: This should be dynamic, the root width could change as the viewport scales if not fixed unit.\n const editingRootElementWidth = getDomElementRect(this._editingRootElement).width;\n const minimapContainerWidth = getDomElementRect(minimapContainerElement).width;\n const minimapScaleRatio = minimapContainerWidth / editingRootElementWidth;\n const minimapView = this._minimapView = new MinimapView({\n locale,\n scaleRatio: minimapScaleRatio,\n pageStyles: getPageStyles(),\n extraClasses: editor.config.get('minimap.extraClasses'),\n useSimplePreview,\n domRootClone: cloneEditingViewDomRoot(editor)\n });\n minimapView.render();\n // Scrollable ancestor scroll -> minimap position update.\n minimapView.listenTo(global.document, 'scroll', (evt, data)=>{\n if (scrollableRootAncestor === global.document.body) {\n if (data.target !== global.document) {\n return;\n }\n } else if (data.target !== scrollableRootAncestor) {\n return;\n }\n this._syncMinimapToEditingRootScrollPosition();\n }, {\n useCapture: true,\n usePassive: true\n });\n // Viewport resize -> minimap position update.\n minimapView.listenTo(global.window, 'resize', ()=>{\n this._syncMinimapToEditingRootScrollPosition();\n });\n // Dragging the visible content area -> document (scrollable) position update.\n minimapView.on('drag', (evt, movementY)=>{\n let movementYPercentage;\n if (minimapView.scrollHeight === 0) {\n movementYPercentage = 0;\n } else {\n movementYPercentage = movementY / minimapView.scrollHeight;\n }\n const absoluteScrollProgress = movementYPercentage * (scrollableRootAncestor.scrollHeight - getClientHeight(scrollableRootAncestor));\n const scrollable = getScrollable(scrollableRootAncestor);\n scrollable.scrollBy(0, Math.round(absoluteScrollProgress));\n });\n // Clicking the minimap -> center the document (scrollable) to the corresponding position.\n minimapView.on('click', (evt, percentage)=>{\n const absoluteScrollProgress = percentage * scrollableRootAncestor.scrollHeight;\n const scrollable = getScrollable(scrollableRootAncestor);\n scrollable.scrollBy(0, Math.round(absoluteScrollProgress));\n });\n minimapContainerElement.appendChild(minimapView.element);\n }\n /**\n\t * @private\n\t */ _syncMinimapToEditingRootScrollPosition() {\n const editingRootElement = this._editingRootElement;\n const minimapView = this._minimapView;\n minimapView.setContentHeight(editingRootElement.offsetHeight);\n const editingRootRect = getDomElementRect(editingRootElement);\n const scrollableRootAncestorRect = getDomElementRect(this._scrollableRootAncestor);\n let scrollProgress;\n // It's possible that at some point elements do not intersect, e.g. when entering the fullscreen mode.\n // Prevent the minimap from being updated in such case.\n if (!scrollableRootAncestorRect.getIntersection(editingRootRect)) {\n return;\n }\n // @if CK_DEBUG_MINIMAP // RectDrawer.clear();\n // @if CK_DEBUG_MINIMAP // RectDrawer.draw( scrollableRootAncestorRect, { outlineColor: 'red' }, 'scrollableRootAncestor' );\n // @if CK_DEBUG_MINIMAP // RectDrawer.draw( editingRootRect, { outlineColor: 'green' }, 'editingRoot' );\n // The root is completely visible in the scrollable ancestor.\n if (scrollableRootAncestorRect.contains(editingRootRect)) {\n scrollProgress = 0;\n } else {\n if (editingRootRect.top > scrollableRootAncestorRect.top) {\n scrollProgress = 0;\n } else {\n scrollProgress = (editingRootRect.top - scrollableRootAncestorRect.top) / (scrollableRootAncestorRect.height - editingRootRect.height);\n scrollProgress = Math.max(0, Math.min(scrollProgress, 1));\n }\n }\n // The intersection helps to change the tracker height when there is a lot of padding around the root.\n // Note: It is **essential** that the height is set first because the progress depends on the correct tracker height.\n minimapView.setPositionTrackerHeight(scrollableRootAncestorRect.getIntersection(editingRootRect).height);\n minimapView.setScrollProgress(scrollProgress);\n }\n}\n\nexport { Minimap };\n//# sourceMappingURL=index.js.map\n","/**\n * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/**\n * @module minimap/minimapiframeview\n */\n\nimport { IframeView } from 'ckeditor5/src/ui.js';\nimport { toUnit, type Locale } from 'ckeditor5/src/utils.js';\nimport type { MinimapViewOptions } from './minimapview.js';\n\nconst toPx = /* #__PURE__ */ toUnit( 'px' );\n\n/**\n * The internal `<iframe>` view that hosts the minimap content.\n *\n * @internal\n */\nexport default class MinimapIframeView extends IframeView {\n\t/**\n\t * The CSS `top` used to scroll the minimap.\n\t *\n\t * @readonly\n\t */\n\tdeclare public top: number;\n\n\t/**\n\t * The CSS `height` of the iframe.\n\t *\n\t * @readonly\n\t */\n\tdeclare public height: number;\n\n\t/**\n\t * Cached view constructor options for re-use in other methods.\n\t */\n\tprivate readonly _options: MinimapViewOptions;\n\n\t/**\n\t * Creates an instance of the internal minimap iframe.\n\t */\n\tconstructor( locale: Locale, options: MinimapViewOptions ) {\n\t\tsuper( locale );\n\n\t\tconst bind = this.bindTemplate;\n\n\t\tthis.set( 'top', 0 );\n\n\t\tthis.set( 'height', 0 );\n\n\t\tthis._options = options;\n\n\t\tthis.extendTemplate( {\n\t\t\tattributes: {\n\t\t\t\ttabindex: -1,\n\t\t\t\t'aria-hidden': 'true',\n\t\t\t\tclass: [\n\t\t\t\t\t'ck-minimap__iframe'\n\t\t\t\t],\n\t\t\t\tstyle: {\n\t\t\t\t\ttop: bind.to( 'top', top => toPx( top ) ),\n\t\t\t\t\theight: bind.to( 'height', height => toPx( height ) )\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override render(): Promise<unknown> {\n\t\treturn super.render().then( () => {\n\t\t\tthis._prepareDocument();\n\t\t} );\n\t}\n\n\t/**\n\t * Sets the new height of the iframe.\n\t */\n\tpublic setHeight( newHeight: number ): void {\n\t\tthis.height = newHeight;\n\t}\n\n\t/**\n\t * Sets the top offset of the iframe to move it around vertically.\n\t */\n\tpublic setTopOffset( newOffset: number ): void {\n\t\tthis.top = newOffset;\n\t}\n\n\t/**\n\t * Sets the internal structure of the `<iframe>` readying it to display the\n\t * minimap element.\n\t */\n\tprivate _prepareDocument(): void {\n\t\tconst iframeDocument = this.element!.contentWindow!.document;\n\t\tconst domRootClone = iframeDocument.adoptNode( this._options.domRootClone );\n\n\t\tconst boxStyles = this._options.useSimplePreview ? `\n\t\t\t.ck.ck-editor__editable_inline img {\n\t\t\t\tfilter: contrast( 0 );\n\t\t\t}\n\n\t\t\tp, li, a, figcaption, span {\n\t\t\t\tbackground: hsl(0, 0%, 80%) !important;\n\t\t\t\tcolor: hsl(0, 0%, 80%) !important;\n\t\t\t}\n\n\t\t\th1, h2, h3, h4 {\n\t\t\t\tbackground: hsl(0, 0%, 60%) !important;\n\t\t\t\tcolor: hsl(0, 0%, 60%) !important;\n\t\t\t}\n\t\t` : '';\n\n\t\tconst pageStyles = this._options.pageStyles.map( definition => {\n\t\t\tif ( typeof definition === 'string' ) {\n\t\t\t\treturn `<style>${ definition }</style>`;\n\t\t\t} else {\n\t\t\t\treturn `<link rel=\"stylesheet\" type=\"text/css\" href=\"${ definition.href }\">`;\n\t\t\t}\n\t\t} ).join( '\\n' );\n\n\t\tconst html = `<!DOCTYPE html><html lang=\"en\">\n\t\t\t<head>\n\t\t\t\t<meta charset=\"utf-8\">\n\t\t\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t\t\t\t${ pageStyles }\n\t\t\t\t<style>\n\t\t\t\t\thtml, body {\n\t\t\t\t\t\tmargin: 0 !important;\n\t\t\t\t\t\tpadding: 0 !important;\n\t\t\t\t\t}\n\n\t\t\t\t\thtml {\n\t\t\t\t\t\toverflow: hidden;\n\t\t\t\t\t}\n\n\t\t\t\t\tbody {\n\t\t\t\t\t\ttransform: scale( ${ this._options.scaleRatio } );\n\t\t\t\t\t\ttransform-origin: 0 0;\n\t\t\t\t\t\toverflow: visible;\n\t\t\t\t\t}\n\n\t\t\t\t\t.ck.ck-editor__editable_inline {\n\t\t\t\t\t\tmargin: 0 !important;\n\t\t\t\t\t\tborder-color: transparent !important;\n\t\t\t\t\t\toutline-color: transparent !important;\n\t\t\t\t\t\tbox-shadow: none !important;\n\t\t\t\t\t}\n\n\t\t\t\t\t.ck.ck-content {\n\t\t\t\t\t\tbackground: white;\n\t\t\t\t\t}\n\n\t\t\t\t\t${ boxStyles }\n\t\t\t\t</style>\n\t\t\t</head>\n\t\t\t<body class=\"${ this._options.extraClasses || '' }\"></body>\n\t\t</html>`;\n\n\t\tiframeDocument.open();\n\t\tiframeDocument.write( html );\n\t\tiframeDocument.close();\n\t\tiframeDocument.body.appendChild( domRootClone );\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/**\n * @module minimap/minimappositiontrackerview\n */\n\nimport { View } from 'ckeditor5/src/ui.js';\nimport { toUnit, global, type Locale } from 'ckeditor5/src/utils.js';\nimport type { MinimapDragEvent } from './minimapview.js';\n\nconst toPx = /* #__PURE__ */ toUnit( 'px' );\n\n/**\n * The position tracker visualizing the visible subset of the content. Displayed over the minimap.\n *\n * @internal\n */\nexport default class MinimapPositionTrackerView extends View {\n\t/**\n\t * The CSS `height` of the tracker visualizing the subset of the content visible to the user.\n\t *\n\t * @readonly\n\t */\n\tdeclare public height: number;\n\n\t/**\n\t * The CSS `top` of the tracker, used to move it vertically over the minimap.\n\t *\n\t * @readonly\n\t */\n\tdeclare public top: number;\n\n\t/**\n\t * The scroll progress (in %) displayed over the tracker when being dragged by the user.\n\t *\n\t * @readonly\n\t */\n\tdeclare public scrollProgress: number;\n\n\t/**\n\t * Indicates whether the tracker is being dragged by the user (e.g. using the mouse).\n\t *\n\t * @internal\n\t * @readonly\n\t */\n\tdeclare public _isDragging: boolean;\n\n\tconstructor( locale: Locale ) {\n\t\tsuper( locale );\n\n\t\tconst bind = this.bindTemplate;\n\n\t\tthis.set( 'height', 0 );\n\t\tthis.set( 'top', 0 );\n\t\tthis.set( 'scrollProgress', 0 );\n\t\tthis.set( '_isDragging', false );\n\n\t\tthis.setTemplate( {\n\t\t\ttag: 'div',\n\t\t\tattributes: {\n\t\t\t\tclass: [\n\t\t\t\t\t'ck',\n\t\t\t\t\t'ck-minimap__position-tracker',\n\t\t\t\t\tbind.if( '_isDragging', 'ck-minimap__position-tracker_dragging' )\n\t\t\t\t],\n\t\t\t\tstyle: {\n\t\t\t\t\ttop: bind.to( 'top', top => toPx( top ) ),\n\t\t\t\t\theight: bind.to( 'height', height => toPx( height ) )\n\t\t\t\t},\n\t\t\t\t'data-progress': bind.to( 'scrollProgress' )\n\t\t\t},\n\t\t\ton: {\n\t\t\t\tmousedown: bind.to( () => {\n\t\t\t\t\tthis._isDragging = true;\n\t\t\t\t} )\n\t\t\t}\n\t\t} );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override render(): void {\n\t\tsuper.render();\n\n\t\tthis.listenTo( global.document, 'mousemove', ( evt, data ) => {\n\t\t\tif ( !this._isDragging ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.fire<MinimapDragEvent>( 'drag', data.movementY );\n\t\t}, { useCapture: true } );\n\n\t\tthis.listenTo( global.document, 'mouseup', () => {\n\t\t\tthis._isDragging = false;\n\t\t}, { useCapture: true } );\n\t}\n\n\t/**\n\t * Sets the new height of the tracker to visualize the subset of the content visible to the user.\n\t */\n\tpublic setHeight( newHeight: number ): void {\n\t\tthis.height = newHeight;\n\t}\n\n\t/**\n\t * Sets the top offset of the tracker to move it around vertically.\n\t */\n\tpublic setTopOffset( newOffset: number ): void {\n\t\tthis.top = newOffset;\n\t}\n\n\t/**\n\t * Sets the scroll progress (in %) to inform the user using a label when the tracker is being dragged.\n\t */\n\tpublic setScrollProgress( newProgress: number ): void {\n\t\tthis.scrollProgress = newProgress;\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/**\n * @module minimap/minimapview\n */\n\nimport { View } from 'ckeditor5/src/ui.js';\nimport { Rect, type Locale } from 'ckeditor5/src/utils.js';\n\nimport MinimapIframeView from './minimapiframeview.js';\nimport MinimapPositionTrackerView from './minimappositiontrackerview.js';\n\nexport type MinimapViewOptions = {\n\tdomRootClone: HTMLElement;\n\tpageStyles: Array<string | { href: string }>;\n\tscaleRatio: number;\n\tuseSimplePreview?: boolean;\n\textraClasses?: string;\n};\n\n/**\n * The main view of the minimap. It renders the original content but scaled down with a tracker element\n * visualizing the subset of the content visible to the user and allowing interactions (scrolling, dragging).\n *\n * @internal\n */\nexport default class MinimapView extends View {\n\t/**\n\t * An instance of the tracker view displayed over the minimap.\n\t */\n\tprivate readonly _positionTrackerView: MinimapPositionTrackerView;\n\n\t/**\n\t * The scale ratio of the minimap relative to the original editing DOM root with the content.\n\t */\n\tprivate readonly _scaleRatio: number;\n\n\t/**\n\t * An instance of the iframe view that hosts the minimap.\n\t */\n\tprivate readonly _minimapIframeView: MinimapIframeView;\n\n\t/**\n\t * Creates an instance of the minimap view.\n\t */\n\tconstructor(\n\t\t{ locale, scaleRatio, pageStyles, extraClasses, useSimplePreview, domRootClone }: { locale: Locale } & MinimapViewOptions\n\t) {\n\t\tsuper( locale );\n\n\t\tconst bind = this.bindTemplate;\n\n\t\tthis._positionTrackerView = new MinimapPositionTrackerView( locale );\n\t\tthis._positionTrackerView.delegate( 'drag' ).to( this );\n\n\t\tthis._scaleRatio = scaleRatio;\n\n\t\tthis._minimapIframeView = new MinimapIframeView( locale, {\n\t\t\tuseSimplePreview,\n\t\t\tpageStyles,\n\t\t\textraClasses,\n\t\t\tscaleRatio,\n\t\t\tdomRootClone\n\t\t} );\n\n\t\tthis.setTemplate( {\n\t\t\ttag: 'div',\n\t\t\tattributes: {\n\t\t\t\tclass: [\n\t\t\t\t\t'ck',\n\t\t\t\t\t'ck-minimap'\n\t\t\t\t]\n\t\t\t},\n\t\t\tchildren: [\n\t\t\t\tthis._positionTrackerView\n\t\t\t],\n\t\t\ton: {\n\t\t\t\tclick: bind.to( this._handleMinimapClick.bind( this ) ),\n\t\t\t\twheel: bind.to( this._handleMinimapMouseWheel.bind( this ) )\n\t\t\t}\n\t\t} );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override destroy(): void {\n\t\tthis._minimapIframeView.destroy();\n\n\t\tsuper.destroy();\n\t}\n\n\t/**\n\t * Returns the DOM {@link module:utils/dom/rect~Rect} height of the minimap.\n\t */\n\tpublic get height(): number {\n\t\treturn new Rect( this.element! ).height;\n\t}\n\n\t/**\n\t * Returns the number of available space (pixels) the position tracker (visible subset of the content) can use to scroll vertically.\n\t */\n\tpublic get scrollHeight(): number {\n\t\treturn Math.max( 0, Math.min( this.height, this._minimapIframeView.height ) - this._positionTrackerView.height );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override render(): void {\n\t\tsuper.render();\n\n\t\tthis._minimapIframeView.render();\n\n\t\tthis.element!.appendChild( this._minimapIframeView.element! );\n\t}\n\n\t/**\n\t * Sets the new height of the minimap (in px) to respond to the changes in the original editing DOM root.\n\t *\n\t * **Note**:The provided value should be the `offsetHeight` of the original editing DOM root.\n\t */\n\tpublic setContentHeight( newHeight: number ): void {\n\t\tthis._minimapIframeView.setHeight( newHeight * this._scaleRatio );\n\t}\n\n\t/**\n\t * Sets the minimap scroll progress.\n\t *\n\t * The minimap scroll progress is linked to the original editing DOM root and its scrollable container (ancestor).\n\t * Changing the progress will alter the vertical position of the minimap (and its position tracker) and give the user an accurate\n\t * overview of the visible document.\n\t *\n\t * **Note**: The value should be between 0 and 1. 0 when the DOM root has not been scrolled, 1 when the\n\t * scrolling has reached the end.\n\t */\n\tpublic setScrollProgress( newScrollProgress: number ): void {\n\t\tconst iframeView = this._minimapIframeView;\n\t\tconst positionTrackerView = this._positionTrackerView;\n\n\t\t// The scrolling should end when the bottom edge of the iframe touches the bottom edge of the minimap.\n\t\tif ( iframeView.height < this.height ) {\n\t\t\tiframeView.setTopOffset( 0 );\n\t\t\tpositionTrackerView.setTopOffset( ( iframeView.height - positionTrackerView.height ) * newScrollProgress );\n\t\t} else {\n\t\t\tconst totalOffset = iframeView.height - this.height;\n\n\t\t\tiframeView.setTopOffset( -totalOffset * newScrollProgress );\n\t\t\tpositionTrackerView.setTopOffset( ( this.height - positionTrackerView.height ) * newScrollProgress );\n\t\t}\n\n\t\tpositionTrackerView.setScrollProgress( Math.round( newScrollProgress * 100 ) );\n\t}\n\n\t/**\n\t * Sets the new height of the tracker (in px) to visualize the subset of the content visible to the user.\n\t */\n\tpublic setPositionTrackerHeight( trackerHeight: number ): void {\n\t\tthis._positionTrackerView.setHeight( trackerHeight * this._scaleRatio );\n\t}\n\n\t/**\n\t * @param data DOM event data\n\t */\n\tprivate _handleMinimapClick( data: Event ) {\n\t\tconst positionTrackerView = this._positionTrackerView;\n\n\t\tif ( data.target === positionTrackerView.element ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst trackerViewRect = new Rect( positionTrackerView.element! );\n\t\tconst diff = ( data as MouseEvent ).clientY - trackerViewRect.top - trackerViewRect.height / 2;\n\t\tconst percentage = diff / this._minimapIframeView.height;\n\n\t\tthis.fire<MinimapClickEvent>( 'click', percentage );\n\t}\n\n\t/**\n\t * @param data DOM event data\n\t */\n\tprivate _handleMinimapMouseWheel( data: Event ) {\n\t\tthis.fire<MinimapDragEvent>( 'drag', ( data as WheelEvent ).deltaY * this._scaleRatio );\n\t}\n}\n\n/**\n * Fired when the minimap view is clicked.\n *\n * @eventName ~MinimapView#click\n * @param percentage The number between 0 and 1 representing a place in the minimap (its height) that was clicked.\n */\nexport type MinimapClickEvent = {\n\tname: 'click';\n\targs: [ percentage: number ];\n};\n\n/**\n * Fired when the position tracker is dragged or the minimap is scrolled via mouse wheel.\n *\n * @eventName ~MinimapView#drag\n * @param movementY The vertical movement of the minimap as a result of dragging or scrolling.\n */\nexport type MinimapDragEvent = {\n\tname: 'drag';\n\targs: [ movementY: number ];\n};\n","/**\n * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/* global CSSMediaRule */\n\n/**\n * @module minimap/utils\n */\n\nimport { Rect, global } from 'ckeditor5/src/utils.js';\nimport { DomConverter, Renderer } from 'ckeditor5/src/engine.js';\nimport type { Editor } from 'ckeditor5/src/core.js';\n\n/**\n * Clones the editing view DOM root by using a dedicated pair of {@link module:engine/view/renderer~Renderer} and\n * {@link module:engine/view/domconverter~DomConverter}. The DOM root clone updates incrementally to stay in sync with the\n * source root.\n *\n * @internal\n * @param editor The editor instance the original editing root belongs to.\n * @param rootName The name of the root to clone.\n * @returns The editing root DOM clone element.\n */\nexport function cloneEditingViewDomRoot( editor: Editor, rootName?: string ): HTMLElement {\n\tconst viewDocument = editor.editing.view.document;\n\tconst viewRoot = viewDocument.getRoot( rootName )!;\n\tconst domConverter = new DomConverter( viewDocument );\n\tconst renderer = new Renderer( domConverter, viewDocument.selection );\n\tconst domRootClone = editor.editing.view.getDomRoot()!.cloneNode() as HTMLElement;\n\n\tdomConverter.bindElements( domRootClone, viewRoot );\n\n\trenderer.markToSync( 'children', viewRoot );\n\trenderer.markToSync( 'attributes', viewRoot );\n\n\tviewRoot.on( 'change:children', ( evt, node ) => renderer.markToSync( 'children', node ) );\n\tviewRoot.on( 'change:attributes', ( evt, node ) => renderer.markToSync( 'attributes', node ) );\n\tviewRoot.on( 'change:text', ( evt, node ) => renderer.markToSync( 'text', node ) );\n\n\trenderer.render();\n\n\teditor.editing.view.on( 'render', () => renderer.render() );\n\n\t// TODO: Cleanup after destruction.\n\teditor.on( 'destroy', () => {\n\t\tdomConverter.unbindDomElement( domRootClone );\n\t} );\n\n\treturn domRootClone;\n}\n\n/**\n * Harvests all web page styles, for instance, to allow re-using them in an `<iframe>` preserving the look of the content.\n *\n * The returned data format is as follows:\n *\n * ```ts\n * [\n * \t'p { color: red; ... } h2 { font-size: 2em; ... } ...',\n * \t'.spacing { padding: 1em; ... }; ...',\n * \t'...',\n * \t{ href: 'http://link.to.external.stylesheet' },\n * \t{ href: '...' }\n * ]\n * ```\n *\n * **Note**: For stylesheets with `href` different than window origin, an object is returned because\n * accessing rules of these styles may cause CORS errors (depending on the configuration of the web page).\n *\n * @internal\n */\nexport function getPageStyles(): Array<string | { href: string }> {\n\treturn Array.from( global.document.styleSheets )\n\t\t.map( styleSheet => {\n\t\t\t// CORS\n\t\t\tif ( styleSheet.href && !styleSheet.href.startsWith( global.window.location.origin ) ) {\n\t\t\t\treturn { href: styleSheet.href };\n\t\t\t}\n\n\t\t\treturn Array.from( styleSheet.cssRules )\n\t\t\t\t.filter( rule => !( rule instanceof CSSMediaRule ) )\n\t\t\t\t.map( rule => rule.cssText )\n\t\t\t\t.join( ' \\n' );\n\t\t} );\n}\n\n/**\n * Gets dimensions rectangle according to passed DOM element. Returns whole window's size for `body` element.\n *\n * @internal\n */\nexport function getDomElementRect( domElement: HTMLElement ): Rect {\n\treturn new Rect( domElement === global.document.body ? global.window : domElement );\n}\n\n/**\n * Gets client height according to passed DOM element. Returns window's height for `body` element.\n *\n * @internal\n */\nexport function getClientHeight( domElement: HTMLElement ): number {\n\treturn domElement === global.document.body ? global.window.innerHeight : domElement.clientHeight;\n}\n\n/**\n * Returns the DOM element itself if it's not a `body` element, whole window otherwise.\n *\n * @internal\n */\nexport function getScrollable( domElement: HTMLElement ): Window | HTMLElement {\n\treturn domElement === global.document.body ? global.window : domElement;\n}\n","/**\n * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/**\n * @module minimap/minimap\n */\n\nimport { Plugin } from 'ckeditor5/src/core.js';\nimport { findClosestScrollableAncestor, global } from 'ckeditor5/src/utils.js';\nimport MinimapView, { type MinimapDragEvent, type MinimapClickEvent } from './minimapview.js';\nimport {\n\tcloneEditingViewDomRoot,\n\tgetClientHeight,\n\tgetDomElementRect,\n\tgetPageStyles,\n\tgetScrollable\n} from './utils.js';\n\n// @if CK_DEBUG_MINIMAP // const RectDrawer = require( '@ckeditor/ckeditor5-utils/tests/_utils/rectdrawer' ).default;\n\nimport '../theme/minimap.css';\n\n/**\n * The content minimap feature.\n */\nexport default class Minimap extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'Minimap' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static override get isOfficialPlugin(): true {\n\t\treturn true;\n\t}\n\n\t/**\n\t * The reference to the view of the minimap.\n\t */\n\tprivate _minimapView!: MinimapView | null;\n\n\t/**\n\t * The DOM element closest to the editable element of the editor as returned\n\t * by {@link module:ui/editorui/editorui~EditorUI#getEditableElement}.\n\t */\n\tprivate _scrollableRootAncestor!: HTMLElement | null;\n\n\t/**\n\t * The DOM element closest to the editable element of the editor as returned\n\t * by {@link module:ui/editorui/editorui~EditorUI#getEditableElement}.\n\t */\n\tprivate _editingRootElement?: HTMLElement;\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\t\tthis._minimapView = null;\n\t\tthis._scrollableRootAncestor = null;\n\n\t\tthis.listenTo( editor.ui, 'ready', this._onUiReady.bind( this ) );\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override destroy(): void {\n\t\tsuper.destroy();\n\n\t\tthis._minimapView!.destroy();\n\t\tthis._minimapView!.element!.remove();\n\t}\n\n\t/**\n\t * Initializes the minimap view element and starts the layout synchronization\n\t * on the editing view `render` event.\n\t */\n\tprivate _onUiReady(): void {\n\t\tconst editor = this.editor;\n\n\t\t// TODO: This will not work with the multi-root editor.\n\t\tconst editingRootElement = this._editingRootElement = editor.ui.getEditableElement()!;\n\n\t\tthis._scrollableRootAncestor = findClosestScrollableAncestor( editingRootElement );\n\n\t\t// DOM root element is not yet attached to the document.\n\t\tif ( !editingRootElement.ownerDocument.body.contains( editingRootElement ) ) {\n\t\t\teditor.ui.once( 'update', this._onUiReady.bind( this ) );\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis._initializeMinimapView();\n\n\t\tthis.listenTo( editor.editing.view, 'render', () => {\n\t\t\tif ( editor.state !== 'ready' ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._syncMinimapToEditingRootScrollPosition();\n\t\t} );\n\n\t\tthis._syncMinimapToEditingRootScrollPosition();\n\t}\n\n\t/**\n\t * Initializes the minimap view and attaches listeners that make it responsive to the environment (document)\n\t * but also allow the minimap to control the document (scroll position).\n\t */\n\tprivate _initializeMinimapView(): void {\n\t\tconst editor = this.editor;\n\t\tconst locale = editor.locale;\n\t\tconst useSimplePreview = editor.config.get( 'minimap.useSimplePreview' );\n\n\t\t// TODO: Throw an error if there is no `minimap` in config.\n\t\tconst minimapContainerElement = editor.config.get( 'minimap.container' )!;\n\t\tconst scrollableRootAncestor = this._scrollableRootAncestor!;\n\n\t\t// TODO: This should be dynamic, the root width could change as the viewport scales if not fixed unit.\n\t\tconst editingRootElementWidth = getDomElementRect( this._editingRootElement! ).width;\n\t\tconst minimapContainerWidth = getDomElementRect( minimapContainerElement ).width;\n\t\tconst minimapScaleRatio = minimapContainerWidth / editingRootElementWidth;\n\n\t\tconst minimapView = this._minimapView = new MinimapView( {\n\t\t\tlocale,\n\t\t\tscaleRatio: minimapScaleRatio,\n\t\t\tpageStyles: getPageStyles(),\n\t\t\textraClasses: editor.config.get( 'minimap.extraClasses' ),\n\t\t\tuseSimplePreview,\n\t\t\tdomRootClone: cloneEditingViewDomRoot( editor )\n\t\t} );\n\n\t\tminimapView.render();\n\n\t\t// Scrollable ancestor scroll -> minimap position update.\n\t\tminimapView.listenTo( global.document, 'scroll', ( evt, data ) => {\n\t\t\tif ( scrollableRootAncestor === global.document.body ) {\n\t\t\t\tif ( data.target !== global.document ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else if ( data.target !== scrollableRootAncestor ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._syncMinimapToEditingRootScrollPosition();\n\t\t}, { useCapture: true, usePassive: true } );\n\n\t\t// Viewport resize -> minimap position update.\n\t\tminimapView.listenTo( global.window, 'resize', () => {\n\t\t\tthis._syncMinimapToEditingRootScrollPosition();\n\t\t} );\n\n\t\t// Dragging the visible content area -> document (scrollable) position update.\n\t\tminimapView.on<MinimapDragEvent>( 'drag', ( evt, movementY ) => {\n\t\t\tlet movementYPercentage;\n\n\t\t\tif ( minimapView.scrollHeight === 0 ) {\n\t\t\t\tmovementYPercentage = 0;\n\t\t\t} else {\n\t\t\t\tmovementYPercentage = movementY / minimapView.scrollHeight;\n\t\t\t}\n\n\t\t\tconst absoluteScrollProgress = movementYPercentage *\n\t\t\t\t( scrollableRootAncestor.scrollHeight - getClientHeight( scrollableRootAncestor ) );\n\t\t\tconst scrollable = getScrollable( scrollableRootAncestor );\n\n\t\t\tscrollable.scrollBy( 0, Math.round( absoluteScrollProgress ) );\n\t\t} );\n\n\t\t// Clicking the minimap -> center the document (scrollable) to the corresponding position.\n\t\tminimapView.on<MinimapClickEvent>( 'click', ( evt, percentage ) => {\n\t\t\tconst absoluteScrollProgress = percentage * scrollableRootAncestor.scrollHeight;\n\t\t\tconst scrollable = getScrollable( scrollableRootAncestor );\n\n\t\t\tscrollable.scrollBy( 0, Math.round( absoluteScrollProgress ) );\n\t\t} );\n\n\t\tminimapContainerElement.appendChild( minimapView.element! );\n\t}\n\n\t/**\n\t * @private\n\t */\n\tprivate _syncMinimapToEditingRootScrollPosition(): void {\n\t\tconst editingRootElement = this._editingRootElement!;\n\t\tconst minimapView = this._minimapView!;\n\n\t\tminimapView.setContentHeight( editingRootElement.offsetHeight );\n\n\t\tconst editingRootRect = getDomElementRect( editingRootElement );\n\t\tconst scrollableRootAncestorRect = getDomElementRect( this._scrollableRootAncestor! );\n\t\tlet scrollProgress;\n\n\t\t// It's possible that at some point elements do not intersect, e.g. when entering the fullscreen mode.\n\t\t// Prevent the minimap from being updated in such case.\n\t\tif ( !scrollableRootAncestorRect.getIntersection( editingRootRect ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// @if CK_DEBUG_MINIMAP // RectDrawer.clear();\n\t\t// @if CK_DEBUG_MINIMAP // RectDrawer.draw( scrollableRootAncestorRect, { outlineColor: 'red' }, 'scrollableRootAncestor' );\n\t\t// @if CK_DEBUG_MINIMAP // RectDrawer.draw( editingRootRect, { outlineColor: 'green' }, 'editingRoot' );\n\n\t\t// The root is completely visible in the scrollable ancestor.\n\t\tif ( scrollableRootAncestorRect.contains( editingRootRect ) ) {\n\t\t\tscrollProgress = 0;\n\t\t} else {\n\t\t\tif ( editingRootRect.top > scrollableRootAncestorRect.top ) {\n\t\t\t\tscrollProgress = 0;\n\t\t\t} else {\n\t\t\t\tscrollProgress = ( editingRootRect.top - scrollableRootAncestorRect.top ) /\n\t\t\t\t\t( scrollableRootAncestorRect.height - editingRootRect.height );\n\n\t\t\t\tscrollProgress = Math.max( 0, Math.min( scrollProgress, 1 ) );\n\t\t\t}\n\t\t}\n\n\t\t// The intersection helps to change the tracker height when there is a lot of padding around the root.\n\t\t// Note: It is **essential** that the height is set first because the progress depends on the correct tracker height.\n\t\tminimapView.setPositionTrackerHeight( scrollableRootAncestorRect.getIntersection( editingRootRect )!.height );\n\t\tminimapView.setScrollProgress( scrollProgress );\n\t}\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-minimap",
3
- "version": "45.0.0-alpha.9",
3
+ "version": "45.1.0-alpha.0",
4
4
  "description": "Content minimap feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,11 +13,11 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "@ckeditor/ckeditor5-core": "45.0.0-alpha.9",
17
- "@ckeditor/ckeditor5-engine": "45.0.0-alpha.9",
18
- "@ckeditor/ckeditor5-ui": "45.0.0-alpha.9",
19
- "@ckeditor/ckeditor5-utils": "45.0.0-alpha.9",
20
- "ckeditor5": "45.0.0-alpha.9"
16
+ "@ckeditor/ckeditor5-core": "45.1.0-alpha.0",
17
+ "@ckeditor/ckeditor5-engine": "45.1.0-alpha.0",
18
+ "@ckeditor/ckeditor5-ui": "45.1.0-alpha.0",
19
+ "@ckeditor/ckeditor5-utils": "45.1.0-alpha.0",
20
+ "ckeditor5": "45.1.0-alpha.0"
21
21
  },
22
22
  "author": "CKSource (http://cksource.com/)",
23
23
  "license": "SEE LICENSE IN LICENSE.md",
package/src/minimap.js CHANGED
@@ -153,6 +153,11 @@ export default class Minimap extends Plugin {
153
153
  const editingRootRect = getDomElementRect(editingRootElement);
154
154
  const scrollableRootAncestorRect = getDomElementRect(this._scrollableRootAncestor);
155
155
  let scrollProgress;
156
+ // It's possible that at some point elements do not intersect, e.g. when entering the fullscreen mode.
157
+ // Prevent the minimap from being updated in such case.
158
+ if (!scrollableRootAncestorRect.getIntersection(editingRootRect)) {
159
+ return;
160
+ }
156
161
  // @if CK_DEBUG_MINIMAP // RectDrawer.clear();
157
162
  // @if CK_DEBUG_MINIMAP // RectDrawer.draw( scrollableRootAncestorRect, { outlineColor: 'red' }, 'scrollableRootAncestor' );
158
163
  // @if CK_DEBUG_MINIMAP // RectDrawer.draw( editingRootRect, { outlineColor: 'green' }, 'editingRoot' );