last day (474 days later) » 

09:29
hello
@Geethika Hi
room for villan and geethika
you are working for?
gramco engineering pvt ltd
@Geethika remove it
09:31
and u
BCIPL
in hyd
remove it wat
1 min ago, by Geethika
room for villan and geethika
it is default name
given by so
ok
on which platform u r working
html5 & android
u only on html5?
09:34
yep same im on android and html5 at the same time im working on mvc3 with html5
@Geethika exp?
6mnths im pretty new to this field
0
Q: How to highlight the borders of image with resizable

GeethikaI want to highlight the image borders with anchors like whenever we select the image it should highlight the border according to anchors. I have done with anchors but unable to highlight the image according to it.here is the code which i have done.The below code is working perfectly only one thin...

could you check this once
@villan wt abt ur exp?
@Geethika try to give strokeWidth: 2 in the function where you are setting your image
1+
its not about stroke
its about highlight the borders of image after drop in to container or canvas
how r u adding border to image?
09:42
i didnt add border its like i have anchors according to image bt my boss asked me to keep the border according to anchors so that whenever he select the image border and anchors should highlight
@Geethika can u set stoke on mouse over so that it will look as highlighting border na
@Geethika there?
ya @villan
see there in the example in your link
example
in that on mouseout they are setting stroke for the anchor similar you also implement in the same for the images?
got it>?
09:51
that is for anchors i can do it that i dnt want like that
i vl show u waiit
http://www.html5canvastutorials.com/labs/html5-canvas-drag-and-drop-multiple-images-with-kineticjs/
check this like this i want both anchors and border
its clear there na ! @Geethika using that u can highlight na
sorry where
niku akada border higlight aynatu avali anthena?
@Geethika
10:00
motam image ki border highlight avali anchors tho patu adi ma boss naku chepindi
@Geethika layer.on('mouseover', function(evt) {
var shape = evt.shape;
document.body.style.cursor = 'pointer';
shape.enableStroke();
layer.draw();
});
layer.on('mouseout', function(evt) {
var shape = evt.shape;
document.body.style.cursor = 'default';
shape.disableStroke();
layer.draw();
});
adhi chusava?
andhuklo
shape.enableStroke();
shape.disableStroke();
avi work avatam ledu petanu kani
ok image dagara stoke set chesava?
 var yodaImg = new Kinetic.Image({
      image: images.yoda,
      x: 350,
      y: 55,
      width: 93,
      height: 104,
      draggable: true,
      stroke: 'red',
      strokeWidth: 10,
      strokeEnabled: false
    });
andhulo
draggable: true,
stroke: 'red',
strokeWidth: 10,
strokeEnabled: false
aalines petava?
adi try chesanu na code tho kani naku work avaledu petanu nina anta adey try chesanu
niku emani display vastundhi?
10:04
stroke vastundi ante adi disable avatam ledu
ante mouseout apudu disable avatleda?
ledu stroke lane untundi
so ni mouseot function chupinchu okasari
okk
// On click make the image selected
kimggroup.on("mousedown", function () {
wasSelected = selected;
selected = this;
updateSelected();
this.moveToTop();
stage.draw();
});

kimg.on("mouseover", function () {
var kimgkids = kimggroup.getChildren();
for (var i = 1; i < kimgkids.length; i++)
kimgkids[i].hide();
layer.draw();
document.body.style.cursor = "move";
});

kimg.on("mouseout", function () {
document.body.style.cursor = "default";
});
shape.disableStroke();
hey show me complete code i will try to modify it
10:11
i cant post here
use pastie.org
and then delte it
just a sec
okk
u want scripts also
10:28
@Geethika no need
var kimggroup = new Kinetic.Group({
x: 0,
y: 0,
draggable: false
stroke: 'red',
strokeWidth: 10,
strokeEnabled: false
});

// Make the img and add it to the group
var kimg = new Kinetic.Image({
x: 0,
y: 0,
image: img,
width: img.width,
height: img.height,
name: "image"
stroke: 'red',
strokeWidth: 10,
strokeEnabled: false
});
kimggroup.add(kimg);

return kimggroup;
keep this in init backgroung
function
kimg.on("mouseover", function (event) {

var kimgkids = kimggroup.getChildren();
var shape=event.kimgkids;
for (var i = 1; i < kimgkids.length; i++)
kimgkids[i].hide();

document.body.style.cursor = "move";
shape.enableStroke();
layer.draw();

});

kimg.on("mouseout", function (event) {
var shape=event.shape;
document.body.style.cursor = "default";
shape.disableStroke();
layer.draw();
});
*replace those lines with the above code *
one sec
unexpected identifier it showing the error
is it on var shape=event.kimgkids;
its not working
yes
error gone but still its not working
not working that sense? atleast highlight avtunda?
10:41
cool
var shape=event.shape;
remove this line
and add this.disableStroke();
in mouseout
and var shape=event.kimgkids; remove this
and add this.enableStroke() in mouseover and check
ipudu resize kuda avatam ledu jst display awtundi
screen shot chupiyana
vadhule ardam ayndhi !
disable avtunda ipudu?
nope
then undo it once !
lets try another way
okk
which way
10:48
wait lemme think ! searching on it !
1 message moved to recycle bin
1 message moved to recycle bin
detd
@Geethika when did u start kinetic js?
actually my boss asked me to learn html5 from there i started learning canvas kinetic.js etc
@villan nduku ala adigav konchem critical ga undi kada anta
11:00
@Geethika no its easy ! why do you opt that antuna! whats yout exactly requirement
kineticjs compulsory na?
ha compulsory actually nenu chestuna project almost like paint anamata
okay got it!
dropdowns lo default images untayi akada nunchi canvas lo ki drag drop resize
etc ani cheyali
but i am not finding crap in your code dono why it is not happeing
drag drop raledu clickable ochindi
im working on this past 3 days searched all over google
need experts help;
11:04
@Geethika drag and drop rakapovadam enti?
drop down nunchi canvas ki drag drop avadu so nenu em chesanu antey container lo oka div tisukoni daniki drag drop chesanu
so aa dropzone lo images ni clic cheste canvas lo ki drop ayi migata operations jarugutayi
ala avtunaya at present?
ha
solution emana telisinda
searching
..
hmmm
11:12
@Geethika mouseout vuna prathi chota diable stroke chesi chudu okasari
apudu anchors work avavu
just give a try
indaka chesina exp ki ee anchors work avaledu @villan
wats ur name
hahaha villan bagundhi kada
bavundi bt wats ur actual name
11:16
hehe
1 message moved to recycle bin
nenu motam name anta pedda ga undi
anduke mudhuga villan :)
@Geethika nenu chepinatu try chesava?
doing
11:18
good
anchors ki una stroke potundi
hello
11:36
@Geethika sorry i am away from desk !
so migilindi work avtunda?
i mean stoke highlight and disable
nuv chepinatu chesanu kani anchors ki una stroke disable awtundi border avatam ledu
@Geethika so enable ayi disable avtundi kada anchors ki?
anchors awtunayi ante
naku ela kavalo oka pic chupistanu agu
11:41
@Geethika u sure niku kavalsinatu anchors vachesay kada so ipudu image ravali ante na?
adi chudu ala kavali exact kadu kani anchors with border
use postimage.org for pasting pics
and pastie.org for code
@Geethika ipatiki anchors apoyaya ?
anchors naku mundu nunchey vastunayi border matrame ravatam ledu
image ki border set chey
chesanu kani adi enable awtundi ante disable matam avatam ledu
11:47
1
Q: How to show a border around an image in kineticjs v4.0.5

Jey KeuBy default, Kineticjsv4.0.5 does not support image border, therefore .shoBorder() and .hideBorder() would result in error saying Uncaught TypeError: Object # has no method 'showBorder' But when I included the Image Plugin v1.0.1 javascript file, my game did not appear at all while FireBug r...

dani answer help avtadi emo chudu
one more thing make sure program flow antha line by line velletatu chusuko !
ya check chesanu
implement cheyadaniki try chey okasari
may be i should write one more function only for border
kani adi work awtundo ledo telidu becoz aa code lo anta kimggroup use chesanu adi anta only anchors ke work awtundi
hmm ! ekado sentence misplace ayi vuntademo anukuntunanu
antey
11:54
pidi kinda kindadi pyna
corect ee rasanu
niku ardam kaledu anukunta
@Geethika aha okasari check chesuko antunanu
12:09
okkk chustunanu
okk gota go now
bye
thanks for help
bye

  last day (474 days later) »