We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i have worked with tui image editor and there are some features that tui image editor does not have but glfx.js has how do i combine both of them? `
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/[email protected]/js/magic-wand.js"></script> <script src="https://cdn.jsdelivr.net/npm/[email protected]/js/magic-wand.js"></script> <!-- <script src="https://code.jquery.com/jquery-2.1.1.min.js"></script> --> <script src="https://code.jquery.com/jquery-1.9.1.min.js"></script> <style> @import url(http://fonts.googleapis.com/css?family=Noto+Sans); html, body { height: 100%; margin: 0; }
.wrapper { width: 400px !important; height: 350px !important; overflow: auto !important; } .content { position: relative !important; } .canvas { position: absolute; } .canvas:hover { cursor: default; } .picture { position: absolute; } .button { padding: 4px; margin: 4px; border: 1px solid black; float: left; } .button:hover { background-color: blue; color: white; cursor: pointer; } #threshold { width: 95px; float: left; } #file-upload { display: none; } .add-mode { cursor: copy !important; } #imgcanvas { position: relative; }
#imgcanvas .wrapper { position: absolute; top: 86.5px; /* left: 50%; / / top: calc(333px - var(--img-height) / 2) ; / left: calc(874px - var(--img-width) / 2) ; transform: translateX(-50%); z-index: 9999; / width: 400px; / / height: 350px; */ overflow: auto; }
#imgcanvas .content { position: relative; }
</style>
<script> let hue_num = 1; var imageEditor = new tui.ImageEditor('#tui-image-editor-container', { includeUI: { loadImage: { path: 'image2.png', name: 'SampleImage', }, // theme: blackTheme, initMenu: 'filter', menuBarPosition: 'bottom', }, cssMaxWidth: 700, cssMaxHeight: 500, usageStatistics: false, }); window.onresize = function () { imageEditor.ui.resizeEditor(); }; setTimeout(() => { try { var canvas_glfx = fx.canvas(); // alert(canvas_glfx) alert("ink funciton part 3") } catch (e) { alert(e); return; } // var image_glfx = document.getElementById('image'); var image_glfx = imageEditor._graphics.getCanvas();
var texture_glfx = canvas_glfx.texture(image_glfx);
canvas_glfx.draw(texture_glfx).ink(0.95).update(); image_glfx.parentNode.insertBefore(canvas_glfx, image_glfx); image_glfx.parentNode.removeChild(image_glfx); }, 2000);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
i have worked with tui image editor and there are some features that tui image editor does not have but glfx.js has how do i combine both of them?
<title>0. Design</title>`
.wrapper {
width: 400px !important;
height: 350px !important;
overflow: auto !important;
}
.content {
position: relative !important;
}
.canvas {
position: absolute;
}
.canvas:hover {
cursor: default;
}
.picture {
position: absolute;
}
.button {
padding: 4px;
margin: 4px;
border: 1px solid black;
float: left;
}
.button:hover {
background-color: blue;
color: white;
cursor: pointer;
}
#threshold {
width: 95px;
float: left;
}
#file-upload {
display: none;
}
.add-mode {
cursor: copy !important;
}
#imgcanvas {
position: relative;
}
#imgcanvas .wrapper {
position: absolute;
top: 86.5px;
/* left: 50%; /
/ top: calc(333px - var(--img-height) / 2) ; /
left: calc(874px - var(--img-width) / 2) ;
transform: translateX(-50%);
z-index: 9999;
/ width: 400px; /
/ height: 350px; */
overflow: auto;
}
#imgcanvas .content {
position: relative;
}
var texture_glfx = canvas_glfx.texture(image_glfx);
The text was updated successfully, but these errors were encountered: