Comments (10)
Did you go through our migration guide?
What are these 18 errors in the console?
from joint.
I am following the migration guide.
Console errors are related to api fetch error as I am running the app on local.
I am able to get the cells but position is not correct . If I use
scroller.zoomToFit({ padding: 10, useModelGeometry: true });
the cells not coming at all.
Also I tried to add pan and pinch event same as kitchesink demo app.
paper.on("paper:pan", (evt, tx, ty) => {
evt.preventDefault();
paperScroller.el.scrollLeft += tx;
paperScroller.el.scrollTop += ty;
});
paper.on("paper:pinch", (_evt, ox, oy, scale) => {
// the default is already prevented
const zoom = paperScroller.zoom();
paperScroller.zoom(zoom * scale, {
min: 0.2,
max: 5,
ox,
oy,
absolute: true,
});
});
paperScroller.zoom() is not working at all.
from joint.
It's hard to say without a reproducible example.
The shapes seem to be rendered (they exist in the DOM). Perhaps they don't have their attributes set (d
, width
, height
, etc.)? Could you check?
That could be related to the Disable useCSSSelectors by default breaking change.
from joint.
It has all attributes available.
It seems the position is not correct.
If I do
scroller.zoomToFit({ padding: 10, useModelGeometry: true });
It is not even showing in the viewport. If do a mousescrool zoom
function mousewheelZoom(evt: any, x: any, y: any, delta: any) {
evt.preventDefault();
let origin = paperScroller.getVisibleArea().center();
paperScroller.zoom(delta * 0.12, {
min: 0.1,
max: 2,
grid: 0.2,
ox: x,
oy: y,
});
}
```
It is going out of the paper.
Any idea how to fit the cells in current viewport?
Can you take a reference to demo of yours https://www.jointjs.com/demos/dwdm-circuit and make a upgradation to 4.0?
from joint.
The DWDM demo does not use the paper scroller plugin.
from joint.
I am facing multiple issue. Previously
joint-paper-scroller css class is taking width height by deafult 100%
Now migrating to 4.0 the joint-paper-scroller css class has no height width and it is having lots of space down. which is affecting zoom and other user events.
CSS i used for both
.canvas {
width: 100%;
height: 100%;
}
.joint-widget {
padding: 2px;
}
body {
height: 100%;
width: 100%;
margin: 0;
overflow: hidden;
background-color: var(--bg-color);
}
.joint-paper-scroller {
top: auto;
}
from joint.
Is joint-plus.css
imported at all?
from joint.
joint-plus.css
checking
from joint.
Ok, please let me rephrase it. You didn't import joint-plus.css
properly. You are missing JointJS+
related CSS.
from joint.
This issue is stale because it has been open 60 days with no activity. Please remove stale label or comment or this will be closed in 14 days.
from joint.
Related Issues (20)
- Issue with JointJS in Typescript when integrated in own project
- [Bug]: Ports positioning in jointJS with angular HOT 1
- Vectorizer: can not convert zero-length arc to curve HOT 1
- [Bug]: Angular 17, Builder Application or Esbuild, does not provide an export named "dia" HOT 2
- SVG's height is overlapped by uikit.js HOT 3
- type(ui.Toolbar): wrong `widgetNamespace` type HOT 1
- jointjs+ in angular project v8.2.14 HOT 2
- Stencil Label not rendering HOT 1
- [Bug]: renderFieldContent Function Not Working as Expected HOT 2
- [Bug]: Each object assigned to portProp makes the diagram slower to render HOT 2
- [Bug]: Unsupported URL Type "workspace on @joint/[email protected] HOT 1
- Unable to get Selectors to animate my Customized Link HOT 2
- Rendering issue when paper is loaded in background. HOT 1
- [Bug]: Grid-layer display only one when two or more papers exist at the same time
- [Bug]: contextmenu in V4 is not default-preventable HOT 11
- [Bug]: JJ+ stopped rendering CSS when exporting to PNG (possibly other formats too) HOT 7
- [Bug]: texWrap does not take SVG attributes into account HOT 13
- Command manager is saving the entire attrs object on each attr() call (unexpected behaviour?) HOT 1
- linkTools.Vertices: prevent vertex creation on labels
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from joint.