You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The viewer-impl.js is bloated. Any component that talks to the Search Viewer adds methods there. It doesn't just make the Viewer one-thousand line of code, it also had business logic scattered around.
We plan to bring back a slim viewer-impl.js, which should just provide basic methods like receiveMessagesendMessagegetParamhasCapability.
We plan to move the methods to their own business components:
history related methods => history-impl.js
baseCid => cid-impl.js
overlay, getPaddingTop => viewport-impl.js
tick => performance-impl.js
postDocumentLoaded => resources-impl.js
etc.
A typical usage of the new viewer code will be like:
if (viewer.hasCapability('cid')) {
viewer.sendMessage('cid', data).then(...);
}
The text was updated successfully, but these errors were encountered:
The
viewer-impl.js
is bloated. Any component that talks to the Search Viewer adds methods there. It doesn't just make the Viewer one-thousand line of code, it also had business logic scattered around.We plan to bring back a slim
viewer-impl.js
, which should just provide basic methods likereceiveMessage
sendMessage
getParam
hasCapability
.We plan to move the methods to their own business components:
history-impl.js
cid-impl.js
viewport-impl.js
performance-impl.js
resources-impl.js
etc.
A typical usage of the new viewer code will be like:
The text was updated successfully, but these errors were encountered: