Re: Re: Geom.js

From disqus.com, 2 Months ago, written in JavaScript, viewed 3 times. This paste is a reply to Re: Re: domUtils.js from disqus.com - view diff
URL https://pastebin.freepbx.org/view/29aa452b Embed
Download Paste or View Raw
  1.  
  2.  
  3. 1
  4.  
  5. // Adapted from https://github.com/DeviantArt/Safeframe/blob/master/src/host/geom.js
  6.  
  7. 2
  8.  
  9. define('core/ads/Geom',[
  10.  
  11. 3
  12.  
  13.     'core/ads/domUtils',
  14.  
  15. 4
  16.  
  17.     'core/ads/safeFrameUtils',
  18.  
  19. 5
  20.  
  21. ], function (
  22.  
  23. 6
  24.  
  25.     dom,
  26.  
  27. 7
  28.  
  29.     utils
  30.  
  31. 8
  32.  
  33. ) {
  34.  
  35. 9
  36.  
  37.     'use strict';
  38.  
  39. 10
  40.  
  41.  
  42. 11
  43.  
  44.     const ELEMENT_NODE = 1;
  45.  
  46. 12
  47.  
  48.  
  49. 13
  50.  
  51.     /**
  52.  
  53. 14
  54.  
  55.      * Class that calculates the expand rectangle as specified in
  56.  
  57. 15
  58.  
  59.      * [IAB SafeFrames v1.1 Draft](https://www.iab.com/wp-content/uploads/2014/08/SafeFrames_v1.1_final.pdf)
  60.  
  61. 16
  62.  
  63.      * 5.4 Function $sf.ext.geom
  64.  
  65. 17
  66.  
  67.      *
  68.  
  69. 18
  70.  
  71.      * The algorithm to determine the visible portion of the base element can be
  72.  
  73. 19
  74.  
  75.      * split into several steps:
  76.  
  77. 20
  78.  
  79.      *
  80.  
  81.  
  82. // https://c.disquscdn.com/next/next-core/core/ads/Geom.js

Replies to Re: Re: Geom.js rss

Title Name Language When
Re: Re: NodeRect.js disqus.com javascript 2 Months ago.

Reply to "Re: Re: Geom.js"

Here you can reply to the paste above