Skip to content

[Help for Bounty] Calculate Inner Border Radius of Wrapped Object #10065

Closed Answered by asturur
ralphcode asked this question in Q&A
Discussion options

You must be logged in to vote
// Frame settings
let frameRoundingPercentX = 0.06;
let frameRoundingPercentY = 0.03;
let frameStrokePercent = 0.01;
let framePaddingPercent = 0.00;

let strokeRange = document.getElementById('stroke');
strokeRange.onchange = function (e) { 
  frameStrokePercent = strokeRange.value; 
  render(); 
  document.getElementById('strokeVal').innerText = (frameStrokePercent * 100) + '%';
};
strokeRange.value = frameStrokePercent;
let paddingRange = document.getElementById('padding');
paddingRange.onchange = function (e) { 
  framePaddingPercent = paddingRange.value; 
  render(); 
  document.getElementById('paddingVal').innerText = (framePaddingPercent * 100) + '%';
};
paddingRange.value = framePa…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ralphcode
Comment options

@asturur
Comment options

Answer selected by ralphcode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants